From:             
Operating system: Mac OS X 10.7.1 (Lion)
PHP version:      5.4.0beta1
Package:          Built-in web server
Bug Type:         Bug
Bug description:Built-in web server throws malloc error

Description:
------------
running the built-in web server and making 0 or 1 request, Then ctrl-c to 
shutdown throws out extra malloc error. This does not happen with more than
one 
request. The request can be empty PHP files, or even static resources.


Test script:
---------------
<?php

Expected result:
----------------
clean shutdown without malloc errors

Actual result:
--------------
> php -S 0.0.0.0:8000
PHP 5.4.0beta1 Development Server started at Tue Sep 20 14:33:11 2011
Listening on 0.0.0.0:8000
Document root is /Users/scottaubrey
Press Ctrl-C to quit.
[Tue Sep 20 14:33:14 2011] 127.0.0.1:49618 [200]: /testphp.php
^Cphp(469) malloc: *** error for object 0x101f19700: pointer being freed
was not 
allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
> php -S 0.0.0.0:8000
PHP 5.4.0beta1 Development Server started at Tue Sep 20 14:33:17 2011
Listening on 0.0.0.0:8000
Document root is /Users/scottaubrey
Press Ctrl-C to quit.
[Tue Sep 20 14:33:18 2011] 127.0.0.1:49619 [200]: /testphp.php
[Tue Sep 20 14:33:18 2011] 127.0.0.1:49620 [200]: /testphp.php
^C

-- 
Edit bug report at https://bugs.php.net/bug.php?id=55740&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55740&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55740&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55740&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55740&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55740&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55740&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55740&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55740&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55740&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55740&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55740&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55740&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55740&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55740&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55740&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55740&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55740&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55740&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55740&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55740&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55740&r=mysqlcfg

Reply via email to