#19037 [NEW]: Reproducable segfault with php 4.2.2 (+ sessions) + apache 1.3.26
| From: | nkukard at lbsd dot net | Date: | Thu, 22 Aug 2002 09:44:56 +0000 |
| Subject: | #19037 [NEW]: Reproducable segfault with php 4.2.2 (+ sessions) + apache 1.3.26 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17509@lists.php.net to get a copy of this message | ||
From: nkukard@lbsd.net
Operating system: Linux (2.4.18 vanilla)
PHP version: 4.2.2
PHP Bug Type: Reproducible crash
Bug description: Reproducable segfault with php 4.2.2 (+ sessions) + apache 1.3.26
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 bug report at http://bugs.php.net/?id=19037&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19037&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19037&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19037&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19037&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19037&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19037&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19037&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19037&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19037&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19037&r=globals