Bug #55740 [Fbk->Opn]: Built-in web server throws malloc error
| From: | scott at aubrey dot org dot uk | Date: | Tue, 20 Sep 2011 15:04:14 +0000 |
| Subject: | Bug #55740 [Fbk->Opn]: Built-in web server throws malloc error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163722@lists.php.net to get a copy of this message | ||
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: Feedback
+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:
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'
Previous Comments:
------------------------------------------------------------------------
[2011-09-20 13:59:16] laruence@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