ID: 15131 Updated by: [EMAIL PROTECTED] -Reported By: [EMAIL PROTECTED] +Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Reproducible crash Operating System: RedHat 7.2 PHP Version: 4.1.1 New Comment:
I am getting this as well, driving me nuts. Copy of email sent to Sablotron list as well. Also: could this be due to PHP's bundled expat possibly at all? Something to look at I guess, but then again, I'm not that technical on the PHP internals. The machine is Redhat Linux 7.1, PHP 4.1.1, Sablotron 0.82, Apache 1.3.23. I have followed the directions every match of a segfault+php+sablotron+apache on google matched - recompile apache WITHOUT it's expat_lite. Well, I've done that. I renamed the expat_lite dir AND used the --disable-rule=EXPAT, and did a "strings httpd | grep -i expat" and grepped for xml as well, and did an "nm" on the binary as well - no trace of any of that. I also removed the whole apache hierarchy to install it fresh. However, my calls to xslt_process() still give me: [Sat Feb 16 01:46:55 2002] [notice] child pid 6871 exit signal Segmentation fault (11) [Sat Feb 16 01:46:56 2002] [notice] child pid 6894 exit signal Segmentation fault (11) [Sat Feb 16 01:46:58 2002] [notice] child pid 6867 exit signal Segmentation fault (11) [Sat Feb 16 01:47:01 2002] [notice] child pid 6868 exit signal Segmentation fault (11) in fact, now each page load reports TWO errors. the "sabcmd" command works fine, and is able to understand these. technically this shouldn't be a Sablotron bug, but I was hoping someone there would have more pointers to fix this, or find more information about it on their side... but I think the fix will be from the PHP team. php configure: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --enable-track-vars --with-curl --with-openssl --enable-sockets --enable-shmop --enable-sysvsem --enable-sysvshm --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-gd --with-zlib-dir=/usr --enable-xslt --with-expat-dir=/usr/local --with-xslt-sablot checking for XML support... yes checking external libexpat install dir... yes checking for XMLRPC-EPI support... no checking libexpat dir for XMLRPC-EPI... yes checking whether to enable xslt support... yes checking whether to enable the XSLT Sablotron backend... yes checking libexpat dir for Sablotron XSL support... yes checking for Sablotron libraries in the default path... found Sablotron in /usr/local checking for iconv_open in -lc... yes checking for SablotSetEncoding in -lsablot... yes checking for YAZ support... no ^^ i believe that's as good as it can look. it found my system expat, and sablotron. apache doesnt even care about expat. everything seems to be reading from this central expat, so why doesn't it work? Previous Comments: ------------------------------------------------------------------------ [2002-01-20 22:29:03] [EMAIL PROTECTED] Bug Trace, as best as I can get... root@dev:/usr/local/apache/bin# gdb /usr/local/apache/bin/httpd GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT) Copyright 2001 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"...(no debugging symbols found)... (gdb) run -X Starting program: /usr/local/apache/bin/httpd -X [New Thread 1024 (LWP 12186)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 12186)] 0x400a3f62 in Situation::generateMessage (this=0x6e617473, type=578643299, code=1667846974, arg1=@0x662f3c6b, arg2=@0x3e746e6f, theMessage=@0x68742f3c) at situa.cpp:279 279 if (messenger && !(flags & SAB_NO_ERROR_REPORTING)) Current language: auto; currently c++ (gdb) bt #0 0x400a3f62 in Situation::generateMessage (this=0x6e617473, type=578643299, code=1667846974, arg1=@0x662f3c6b, arg2=@0x3e746e6f, theMessage=@0x68742f3c) at situa.cpp:279 #1 0x6e49646f in ?? () Cannot access memory at address 0x6d247b64 (gdb) ------------------------------------------------------------------------ [2002-01-20 20:37:38] [EMAIL PROTECTED] I have repeatedly and on different physical machines compiled the following: Sablotron 0.81 Expat 1.95.2 Apache 1.3.22 PHP 4.1.1 When I run an XSLT Transform, Apache core dumps. I get, in the error log: [Sun Jan 20 15:12:33 2002] [notice] child pid 17404 exit signal Segmentation fault (11) I can use the sabcmd binary that comes with Sablotron, and successfully transform the XML/XSLT without incident, so I don't think I have a bad Sab compile. Any assistance is greatly appreciated. I am recompiling Apache with debugging, tonight. Please email me if I can be of any help. My configure line is : ./configure --with-apache=../apache_1.3.22/ --with-mysql --with-oci8=/home/oracle/OraHome/ --with-sybase=/usr/local/freetds/ --with-jpeg-dir=/usr/lib --with-png --enable-track-vars --enable-tr ans-sid --enable-sigchild --with-curl=/usr/local --with-xslt-sablot --enable-xslt Brandon ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15131&edit=1