php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19037 Reproducable segfault with php 4.2.2 (+ sessions) + apache 1.3.26
Submitted: 2002-08-22 05:44 UTC Modified: 2002-09-21 02:02 UTC
From: nkukard at lbsd dot net Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.2.2 OS: Linux (2.4.18 vanilla)
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nkukard at lbsd dot net
New email:
PHP Version: OS:

 

 [2002-08-22 05:44 UTC] nkukard at lbsd dot net
sd was NULL, next = sd->next  segfaulted.

happened on multiple systems. configure line as follows....
(backtrace below)

tried different configure options, different compile optins.
sessions seem to trigger the segfault. random time intervals.


./configure \
        --prefix=%{_prefix} \
        --with-config-file-path=%{_sysconfdir} \
        --disable-debug \
        --enable-shared \
        --enable-pic \
        --with-db3 \
        --with-exec-dir=%{_bindir} \
        --with-gd \
        --with-gdbm \
        --with-imap-ssl \
        --with-jpeg-dir=%{_prefix} \
        --with-ldap \
        --with-pic \
        --with-pgsql=/usr \
        --with-png \
        --with-regex=system \
        --with-xml \
        --with-zlib \
        --enable-debugger \
        --enable-magic-quotes \
        --enable-inline-optimization \
        --enable-safe-mode \
        --enable-shmop \
        --enable-sysvsem \
        --enable-sysvshm \
        --enable-sockets \
        --enable-track-vars \
        --enable-yp \
        --enable-ftp \
        --enable-wddx \
        --without-mysql \
        --without-oracle \
        --without-oci8 \
        --with-mm \
        --with-pic \
        --with-apxs=%{_sbindir}/apxs

make

# Build individual PHP modules.
build_ext() {
%{__cc} -fPIC -shared $RPM_OPT_FLAGS \
        -DCOMPILE_DL_`echo $1 | tr '[a-z]' '[A-Z]'` \
        -DHAVE_`echo $1 | tr '[a-z]' '[A-Z]'` \
        -I. -I./TSRM -I./main -I`%{_sbindir}/apxs -q INCLUDEDIR` -I./Zend \
        -I/usr/include/freetype -I/usr/include/$1 \
        -I./ext/$1 -I./ext/$1/lib$1 \
        -I./ext/xml/expat/xmltok -I./ext/xml/expat/xmlparse \
        `grep ^CPPFLAGS Zend/Makefile | cut -f2- -d=` \
        $4 $2 -o $1.so -L.libs $3 -lc
}
build_ext imap ext/imap/php_imap.c "%{_libdir}/c-client.a $ssllibs -lpam -ldl"
build_ext ldap ext/ldap/ldap.c "-lldap -llber"
build_ext pgsql ext/pgsql/pgsql.c "-lpq" -DHAVE_PQCMDTUPLES


and here the backtrace.....


#0  ps_mm_destroy (data=0x81e04b8) at mod_mm.c:241
#1  0x405131f8 in zm_shutdown_ps_mm (type=1, module_number=19) at mod_mm.c:293
#2  0x404bcf30 in module_destructor (module=0x81e11c0) at zend_API.c:1127
#3  0x404bf648 in zend_hash_destroy (ht=0x405e3020) at zend_hash.c:541
#4  0x404b9079 in zend_shutdown () at zend.c:490
#5  0x404cb384 in php_module_shutdown () at main.c:1050
#6  0x404cb339 in php_module_shutdown_wrapper (sapi_globals=0x405c36a0) at main.c:1027
#7  0x404c808a in apache_php_module_shutdown_wrapper () at mod_php4.c:795
#8  0x08050a39 in run_cleanups ()
#9  0x0804f990 in ap_clear_pool ()
#10 0x0804fa06 in ap_destroy_pool ()
#11 0x0804f9e0 in ap_clear_pool ()
#12 0x0804fa06 in ap_destroy_pool ()
#13 0x0805aa01 in clean_parent_exit ()
#14 0x0805d13b in standalone_main ()
#15 0x0805d400 in main ()
#16 0x40144f6a in __libc_start_main (main=0x805d140 <main>, argc=42, ubp_av=0xbffff854, init=0x804ea38 <_init>,
    fini=0x40012c8c <_dl_debug_mask>, rtld_fini=0x1, stack_end=0x1ff) at ../sysdeps/generic/libc-start.c:129

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-22 05:46 UTC] nkukard at lbsd dot net
sd wasn't NULL sorry, it referenced invalid memory address
 [2002-08-22 06:16 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-09-21 02:02 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC