Re: php4 segfault

From: Date: Wed, 28 Jun 2000 11:38:14 +0000
Subject: Re: php4 segfault
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-22663@lists.php.net to get a copy of this message
Here's the gdb output with the breakpoint set. It's kinda funna -- with the breakpoint set, I consistantly die with a SIGBUS, and without it, a SEGFAULT. Either way, I consistantly die whenever I try and grab a php page. ------------------------------------------------- gdb) break send_php Breakpoint 1 at 0x5b3e8: file mod_php4.c, line 446. (gdb) c Continuing. Breakpoint 1, send_php (r=0x2f746963, display_source_mode=-4262024, filename=0x1279fc "\177ÿÿ\206\001") at mod_php4.c:446 446 if (setjmp(EG(bailout))!=0) { (gdb) s 438 { (gdb) s 0x5abe8 in sigwait (__setp=0x4fffb8, __signo=0x0) at /usr/include/signal.h:201 201 } (gdb) s send_php (r=0x2f746963, display_source_mode=-4262024, filename=0x1279fc "\177ÿÿ\206\001") at mod_php4.c:446 446 if (setjmp(EG(bailout))!=0) { (gdb) s 438 { (gdb) s 446 if (setjmp(EG(bailout))!=0) { (gdb) s Program received signal SIGBUS, Bus error. 0xff3d1afc in ?? () (gdb) s On Wed, 28 Jun 2000, Zeev Suraski wrote: > Can you try setting a breakpoint on that line to figure what goes wrong > that makes it crash? > > Zeev > > On Wed, 28 Jun 2000, Michael L. Welles wrote: > > > > > > > I wrote about a week ago with problems using php4 with oci8 as a DSO on > > apache with mod_perl staticly linked. I finally just ran php as a cgi, > > and it did finally work. In order to improve speed, I gave a try at > > building php staticly linked, and it's causing segfaults now. Has this > > happened to anyone else? > > > > The details: > > > > OS: Solaris 8 > > Apache: 1.3.12 > > mod_perl: 1.23 (staticly linked) > > php: php4-200006190845 (staticly linked) > > oracle: 8.1.6 > > > > php build options: > > --without-mysql --prefix=/usr/local/apache-1.3.12 > > --with-apache=../apache_1.3.12 --with-oci8=/opt/oracle8i/OraHome > > --enable-track-vars --with-config-file-path=/usr/local/apache-1.3.12/conf > > --disable-magic-quotes > > > > When accessing a php page, apache segfaults. Follows is the stack trace: > > > > ---------------------------------------- > > > > Program received signal SIGSEGV, Segmentation fault. > > send_php (r=0x500100, display_source_mode=0, filename=0x0) at > > mod_php4.c:450 > > 450 zend_hash_apply((HashTable *) per_dir_conf, (int (*)(void > > *)) php_apache_alter_ini_entries); > > (gdb) where > > #0 send_php (r=0x500100, display_source_mode=0, filename=0x0) > > at mod_php4.c:450 > > #1 0x5b638 in send_parsed_php (r=0x500100) at mod_php4.c:524 > > #2 0x127fa8 in ap_invoke_handler () > > #3 0x14486c in process_request_internal () > > #4 0x1448f0 in ap_process_request () > > #5 0x138348 in child_main () > > #6 0x1386d4 in make_child () > > #7 0x1387f8 in startup_children () > > #8 0x1391e8 in standalone_main () > > #9 0x139de4 in main () > > > > > > > > Any ideas? Suggestions? > > > > > > > > > > -- > Zeev Suraski <zeev@zend.com> > http://www.zend.com/ >

« previous php.dev (#22663) next »