php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59963 malloc error when shutting down the new built-in web server in php 5.4
Submitted: 2011-09-21 04:42 UTC Modified: 2012-04-13 09:18 UTC
Votes:4
Avg. Score:4.5 ± 0.5
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:4 (100.0%)
From: scott at aubrey dot org dot uk Assigned: pajoye (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5_4 SVN-2011-09-21 (dev) OS: Mac OS X Lion 10.7.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: scott at aubrey dot org dot uk
New email:
PHP Version: OS:

 

 [2011-09-21 04:42 UTC] 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.

Commenting APC extension out in php.ini does not cause this 
issue.

previously reported against PHP-core at 
https://bugs.php.net/bug.php?id=55740

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
> 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-23 16:51 UTC] tsteiner at nerdclub dot net
After getting this error using apc 3.1.9 and php 5.4.0RC8 on OS X 10.6.8, I tried the current apc trunk (r323450) and the error does not seem to be present.
 [2012-04-13 09:18 UTC] pajoye@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 [2012-04-13 09:18 UTC] pajoye@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pajoye
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 11:01:34 2024 UTC