#19037 [Opn->Fbk]: Reproducable segfault with php 4.2.2 (+ sessions) + apache 1.3.26
| From: | sniper@php.net | Date: | Thu, 22 Aug 2002 10:16:52 +0000 |
| Subject: | #19037 [Opn->Fbk]: Reproducable segfault with php 4.2.2 (+ sessions) + apache 1.3.26 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17515@lists.php.net to get a copy of this message | ||
ID: 19037
Updated by: sniper@php.net
Reported By: nkukard@lbsd.net
-Status: Open
+Status: Feedback
-Bug Type: Reproducible crash
+Bug Type: Session related
Operating System: Linux (2.4.18 vanilla)
PHP Version: 4.2.2
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2002-08-22 05:46:49] nkukard@lbsd.net
sd wasn't NULL sorry, it referenced invalid memory address
------------------------------------------------------------------------
[2002-08-22 05:44:53] nkukard@lbsd.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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19037&edit=1