Re: Segfault with every script

From: Date: Tue, 05 Sep 2000 21:47:58 +0000
Subject: Re: Segfault with every script
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-32253@lists.php.net to get a copy of this message
Zeev Suraski wrote: > The latest CVS should work fine. Any chance you got a CVS from a couple of > hours ago? Nope, CVS from half an hour ago, but I'll delete my copy and do a fresh checkout. Derick > > > At 00:39 06/09/2000, Derick Rethans wrote: > >But PHP4 now segfaults with every script: > > > ><?php > > printf ("OK"); > >?> > > > >crashes with a segfault: > > > >GNU gdb 4.17.0.11 with Linux support > >Copyright 1998 Free Software Foundation, Inc. > >GDB is free software, covered by the GNU General Public License, and you are > > > >welcome to change it and/or distribute copies of it under certain > >conditions. > >Type "show copying" to see the conditions. > >There is absolutely no warranty for GDB. Type "show warranty" for details. > >This GDB was configured as "i386-redhat-linux"... > >(gdb) run -X > >Starting program: /dat/APACHE-PHP4/apache_1.3.12/src/httpd -X > > > >Program received signal SIGSEGV, Segmentation fault. > >0x81170c5 in _zval_ptr_dtor (zval_ptr=0x82b7738, > > __zend_filename=0x81f6a49 "zend_variables.c", __zend_lineno=182) > > at zend_execute_API.c:259 > >259 (*zval_ptr)->refcount--; > >(gdb) bt > >#0 0x81170c5 in _zval_ptr_dtor (zval_ptr=0x82b7738, > > __zend_filename=0x81f6a49 "zend_variables.c", __zend_lineno=182) > > at zend_execute_API.c:259 > >#1 0x811c6a1 in _zval_ptr_dtor_wrapper (zval_ptr=0x82b7738) > > at zend_variables.c:182 > >#2 0x811ffb3 in zend_hash_destroy (ht=0x8295c4c) at zend_hash.c:564 > >#3 0x8116f42 in shutdown_executor () at zend_execute_API.c:165 > >#4 0x811cf07 in zend_deactivate () at zend.c:513 > >#5 0x80955dd in php_request_shutdown (dummy=0x0) at main.c:653 > >#6 0x8093706 in php_apache_request_shutdown () > >#7 0x81493de in run_cleanups () > >#8 0x8147c0d in ap_clear_pool () > >#9 0x8147c81 in ap_destroy_pool () > >#10 0x8147bfc in ap_clear_pool () > >#11 0x81570cf in child_main () > >#12 0x815766c in make_child () > >#13 0x81577c9 in startup_children () > >#14 0x8157df6 in standalone_main () > >#15 0x8158583 in main () > >#16 0x40216cb3 in __libc_start_main (main=0x815823c <main>, argc=2, > > argv=0xbffffcb4, init=0x8070c08 <_init>, fini=0x81da7c8 <_fini>, > > rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffcac) > > at ../sysdeps/generic/libc-start.c:78 > >(gdb) print zval_ptr > >$1 = (zval **) 0x82b7738 > >(gdb) print *zval_ptr > >$2 = (zval *) 0x0 > > > >configure-line: > > > >./configure --with-apache=/dat/APACHE-PHP4/apache_1.3.12 \ > >--with-gd --with-ttf --with-mysql --with-pdflib \ > >--with-config-file-path=/etc/httpd --enable-track-vars \ > >--enable-magiq-quotes --enable-memory-limit \ > >--with-mcrypt=../libmcrypt-2.4.4 --with-imap=../imap-4.7 \ > >--enable-debug --with-sablot --enable-sysvshm > > > > > >If someone needs more info, please ask. > > > >Derick Rethans > > > > > > > > > > I've a problem compiling PHP4 / Apache > > > > > > It has something to do with the tsrm_virtual_cwd. > > > > > > In main/php.h, line 294: > > > #include "tsrm_virtual_cwd.h" > > > > > > When compiling apache: > > > In file inculded from mod_php4.c:29: > > > /dat/APACHAE-PHP4/php4/main/php.h:294: tsrm_virtual_cwd.h: NO such file > > > or directory. > > > > > > When i change line 294 to: > > > #include "TSRM/tsrm_virtual_cwd.h" > > > > > > apache's mod_php4.c compiles fine (but I did not test if PHP still > > > compiles then). > > > > > > With kinf regards, > > > > > > -- > > > Derick Rethans > > > JDI Media Solutions > > > > > > H.v.Tussenbroekstraat 1 > > > 6952 BL Dieren > > > The Netherlands > > > > > > e-mail: d.rethans@jdimedia.nl > > > http://www.jdimedia.nl/ > > > > > > -- > > > PHP Development Mailing List > > > <http://www.php.net/> > > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-dev-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > >-- > >Derick Rethans > >JDI Media Solutions > > > >H.v.Tussenbroekstraat 1 > >6952 BL Dieren > >The Netherlands > > > >e-mail: d.rethans@jdimedia.nl > >http://www.jdimedia.nl/ > > > > > > > >-- > >PHP Development Mailing List <http://www.php.net/> > >To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > >For additional commands, e-mail: php-dev-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > Zeev Suraski <zeev@zend.com> > http://www.zend.com/ > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Derick Rethans JDI Media Solutions H.v.Tussenbroekstraat 1 6952 BL Dieren The Netherlands e-mail: d.rethans@jdimedia.nl http://www.jdimedia.nl/

« previous php.dev (#32253) next »