Edit report at https://bugs.php.net/bug.php?id=55740&edit=1

 ID:                 55740
 Updated by:         larue...@php.net
 Reported by:        scott at aubrey dot org dot uk
 Summary:            Built-in web server throws malloc error
-Status:             Open
+Status:             Feedback
 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:

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


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to