#37529 [Opn->Fbk]: Command line script leaks memory and segfaults
| From: | pajoye@php.net | Date: | Fri, 19 May 2006 20:39:50 +0000 |
| Subject: | #37529 [Opn->Fbk]: Command line script leaks memory and segfaults | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-97387@lists.php.net to get a copy of this message | ||
ID: 37529
Updated by: pajoye@php.net
Reported By: hiro at dusk dot org
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Ubuntu Linux
PHP Version: 5.1.4
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2006-05-19 20:36:56] hiro at dusk dot org
Description:
------------
A unit test for our application causes a segfault in a certain block of
code. I recompiled PHP 5.1.4. with debugging symbols and it reports a
number of memory leaks. On all systems I've tried it on it either
segfaults or produces a bus error.
Reproduce code:
---------------
This is happening deep inside one of the most complex parts of a pretty
big application (95,000 lines of PHP not even counting any HTML
templates and over 100 classes) and unfortunately I cannot see any way
to produce any sort of test case that does not include the entire
application.
Actual result:
--------------
[Fri May 19 13:34:56 2006] Script: 'planchangestackmull'
/home/adam/dl/php-5.1.4/Zend/zend_vm_execute.h(7531) : Freeing
0x025E83E8 (24 bytes), script=planchangestackmull
Last leak repeated 5 times
[Fri May 19 13:34:56 2006] Script: 'planchangestackmull'
/home/adam/dl/php-5.1.4/Zend/zend_variables.c(133) : Freeing
0x0253F608 (64 bytes), script=planchangestackmull
/home/adam/dl/php-5.1.4/Zend/zend_hash.c(169) : Actual location
(location was relayed)
Last leak repeated 5 times
[Fri May 19 13:34:56 2006] Script: 'planchangestackmull'
/home/adam/dl/php-5.1.4/Zend/zend_variables.h(45) : Freeing 0x024F4208
(72 bytes),
script=planchangestackmull/home/adam/dl/php-5.1.4/Zend/zend_variables.c(132)
: Actual location (location was relayed)
Last leak repeated 7 times
[Fri May 19 13:34:56 2006] Script: 'planchangestackmull'
/home/adam/dl/php-5.1.4/Zend/zend_hash.c(760) : Freeing 0x024F3EE8 (71
bytes), script=planchangestackmull
/home/adam/dl/php-5.1.4/Zend/zend_hash.c(383) : Actual location
(location was relayed)
Last leak repeated 9 times
[Fri May 19 13:34:56 2006] Script: 'planchangestackmull'
/home/adam/dl/php-5.1.4/ext/pgsql/pgsql.c(1968) : Freeing 0x024233D8
(7 bytes), script=planchangestackmull
Last leak repeated 7 times
[Fri May 19 13:34:56 2006] Script: 'planchangestackmull'
/home/adam/dl/php-5.1.4/Zend/zend_API.c(1065) : Freeing 0x021702C8 (24
bytes), script=planchangestackmull
Last leak repeated 7 times
[Fri May 19 13:34:56 2006] Script: 'planchangestackmull'
/home/adam/dl/php-5.1.4/Zend/zend_vm_execute.h(182) : Freeing
0x021844E8 (24 bytes), script=planchangestackmull
Last leak repeated 1 time
=== Total 48 memory leaks detected ===
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37529&edit=1