php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1489 php Crashes at the end
Submitted: 1999-06-03 08:16 UTC Modified: 1999-06-24 08:37 UTC
From: bonis at solution-service dot de Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0 Latest CVS (03/06/1999) OS: Linux 2.0.36 glibc 2.0
Private report: No CVE-ID: None
 [1999-06-03 08:16 UTC] bonis at solution-service dot de
I have the following crash everytime i invoke the file:

Core was generated by `/opt/src/php-cvs/php3/php main.php3 &server=2'.
Program terminated with signal 11, Segmentation fault.

#0  0x401067e2 in ?? () from /lib/libc.so.6
(gdb) where
#0  0x401067e2 in ?? () from /lib/libc.so.6
#1  0x401066a1 in ?? () from /lib/libc.so.6
#2  0x80606e9 in _efree (ptr=0x811c3d0) at alloc.c:173
#3  0x805d86f in pval_destructor (pvalue=0x40178860) at variables.c:89
#4  0x805f4c2 in tc_destroy (tc=0x80e8880) at token_cache.c:319
#5  0x805f502 in tcm_destroy (tcm=0x80d4438) at token_cache.c:333
#6  0x80592af in php3_request_shutdown (dummy=0x0) at main.c:790
#7  0x805aac5 in main (argc=3, argv=0xbffff790) at main.c:1867

It hardly to reproduce what causes the bug. Minor changes in the code (eg. removing some html outside of ?php) and the core dump goes away. But it is reproduceable everytime with this script and the parameters.

With php-3.0.7 everything is working. The bug started with php-3.0.8 and is still in the latest cvs.

./configure  --enable-debugger --enable-track-vars --with-dbase --with-mysql=/opt/mysql --with-iodbc=/opt/mysql --with-config-file -path=/Web/config --with-ldap=/opt/ldap --enable-force-cgi-redirect

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-18 12:04 UTC] sas at cvs dot php dot net
Does the script use MySQL functions? If so, the bug is probably fixed. Please update your CVS checkout and try again.
 [1999-06-24 08:37 UTC] sas at cvs dot php dot net
fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 00:01:30 2024 UTC