Edit report at https://bugs.php.net/bug.php?id=55740&edit=1
ID: 55740 User updated by: scott at aubrey dot org dot uk Reported by: scott at aubrey dot org dot uk Summary: Built-in web server throws malloc error Status: Open Type: Bug Package: Built-in web server Operating System: Mac OS X 10.7.1 (Lion) PHP Version: 5.4.0beta1 Block user comment: N Private report: N New Comment: Hi Laruence, The whole message is already there: php(469) malloc: *** error for object 0x101f19700: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap: 6 but after a little bit more experimenting, it seems it's APC causing the issue, which of course becomes active with the configure flags picking up my php.ini. disabling the extension then does not reproduce. Previous Comments: ------------------------------------------------------------------------ [2011-09-21 03:54:10] larue...@php.net I still can not reproduce with your configure flags, can you paste the whole warning message out? of course after ereasing your private info. ------------------------------------------------------------------------ [2011-09-20 15:04:14] scott at aubrey dot org dot uk a basic ./configure did not recreate, but when I build with my default configure it is still failing in the latest snapshot. my configure flags: './configure' '--prefix=/Users/scottaubrey/.usr/' '--with-config-file- path=/Users/scottaubrey/conf/php.ini' '--with-config-file-scan- dir=/Users/scottaubrey/conf/php.ini.d/' '--with-mysqli=mysqlnd' '--with-pdo- mysql=mysqlnd' ------------------------------------------------------------------------ [2011-09-20 13:59:16] larue...@php.net Please try using this snapshot: http://snaps.php.net/php5.4-latest.tar.gz For Windows: http://windows.php.net/snapshots/ I can not reproduce this, could you test again with the svn-trunk? thanks ------------------------------------------------------------------------ [2011-09-20 13:40:41] scott at aubrey dot org dot uk 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 this bug report at https://bugs.php.net/bug.php?id=55740&edit=1