php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20841 php segfaults all the time
Submitted: 2002-12-05 16:21 UTC Modified: 2002-12-06 06:18 UTC
From: danne at wiberg dot nu Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.0RC2 OS: FreeBSD 4.6.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: danne at wiberg dot nu
New email:
PHP Version: OS:

 

 [2002-12-05 16:21 UTC] danne at wiberg dot nu
everything seems to work, but php segfaults afterwards.

How I compiled it:

./configure --with-apxs2=/usr/local/sbin/apxs --with-tsrm-pth \
--with-config-file-path=/usr/local/etc --enable-versioning --with-regex=system \
--with-gd=/usr/local --enable-gd-native-ttf \
--with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local --with-zlib --with-bz2=/usr --with-mcrypt=/usr/local \
--with-mhash=/usr/local --with-pdflib=/usr/local --with-zlib-dir=/usr \
--with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-tiff-dir=/usr/local\
--with-imap=/usr/local --with-mysql=/usr/local --with-ldap=/usr/local \
--with-snmp=/usr/local --enable-ucd-snmp-hack \
--with-openssl=/usr --with-expat-dir=/usr/local --enable-ftp \
--with-iconv=/usr/local --enable-sockets --enable-sysvsem --enable-sysvshm \
--enable-trans-sid --prefix=/usr/local --with-gettext

gdb backtrace:

#0  0x813cccd in _efree (ptr=0x81ac30c)
    at /usr/home/danne/tmp/php-4.3.0RC2/Zend/zend_alloc.c:229
229             REMOVE_POINTER_FROM_LIST(p);
(gdb) back
#0  0x813cccd in _efree (ptr=0x81ac30c)
    at /usr/home/danne/tmp/php-4.3.0RC2/Zend/zend_alloc.c:229
#1  0x814aaa5 in _zval_dtor (zvalue=0x82573c0)
    at /usr/home/danne/tmp/php-4.3.0RC2/Zend/zend_variables.c:44
#2  0x81423c6 in free_zend_constant (c=0x82573c0)
    at /usr/home/danne/tmp/php-4.3.0RC2/Zend/zend_constants.c:31
#3  0x8150063 in zend_hash_destroy (ht=0x81a8180)
    at /usr/home/danne/tmp/php-4.3.0RC2/Zend/zend_hash.c:543
#4  0x8142798 in zend_shutdown_constants ()
    at /usr/home/danne/tmp/php-4.3.0RC2/Zend/zend_constants.c:151
#5  0x814b6fd in zend_shutdown ()
    at /usr/home/danne/tmp/php-4.3.0RC2/Zend/zend.c:552
#6  0x8123d5f in php_module_shutdown ()
    at /usr/home/danne/tmp/php-4.3.0RC2/main/main.c:1196
#7  0x81653bc in main (argc=6, argv=0xbfbff5f4)
    at /usr/home/danne/tmp/php-4.3.0RC2/sapi/cli/php_cli.c:809
#8  0x806c4c9 in _start ()

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-05 19:26 UTC] sniper@php.net
Do you happen to have session.auto_start=1 in your php.ini?

 [2002-12-06 01:22 UTC] danne at wiberg dot nu
Yes, changed it and it stops segfaulting.
 [2002-12-06 06:18 UTC] sniper@php.net
There's already a report about this problem:

  http://bugs.php.net/bug.php?id=20539

You can add your comments there.
Closing this one as this is duplicate.

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Jan 02 12:00:01 2026 UTC