#38134 [Opn->Fbk]: segfault while calling xslt_process

2006-08-17 Thread tony2001
 ID:   38134
 Updated by:   [EMAIL PROTECTED]
 Reported By:  gerome dot fournier at infomaniak dot ch
-Status:   Open
+Status:   Feedback
 Bug Type: XSLT related
 Operating System: Debian Sarge
 PHP Version:  4.4.2
 New Comment:

Please upgrade sablotron to the latest available version and see if it
helps.


Previous Comments:


[2006-08-17 11:17:41] gerome dot fournier at infomaniak dot ch

You can get the details about this server using the following URL:

http://imu60.infomaniak.ch/phpinfo.php

We're using sablotron version 1.0 as provided by Debian sarge, and the
configure command line is the following:

'./configure' '--disable-all' '--prefix=/opt/php'
'--with-apxs=/opt/apache/bin/apxs' '--disable-ipv6' '--with-pear'
'--enable-xml' '--with-expat-dir=/usr' '--with-pcre-regex'
'--enable-memory-limit' '--enable-ftp' '--with-mysql=/opt/misc/mysql'
'--with-zlib-dir=/usr' '--with-openssl=/usr' '--with-zlib=/usr'
'--enable-bcmath' '--enable-calendar' '--enable-ctype'
'--with-curl=/usr' '--with-dom' '--with-dom-xslt' '--with-dom-exslt'
'--enable-exif' '--with-gd' '--with-jpeg-dir' '--with-png-dir'
'--with-xpm-dir' '--with-ttf' '--with-freetype-dir'
'--enable-gd-native-ttf' '--with-gettext' '--with-iconv' '--with-imap'
'--with-kerberos' '--with-imap-ssl' '--enable-mbstring'
'--enable-mbregex' '--with-mcal=/usr' '--with-mcrypt' '--with-mhash'
'--enable-overload' '--enable-posix' '--enable-session'
'--enable-tokenizer' '--enable-wddx' '--enable-xml' '--enable-xslt'
'--with-xslt-sablot=/usr' '--with-zip' '--with-pdflib=/opt/misc/pdflib'
'--with-tiff-dir=/usr' '--with-ming=/opt/misc/ming'

I don't have a more detailed GDB backtrace to provide for the moment.



[2006-08-17 10:01:09] [EMAIL PROTECTED]

What is the version of Sablotron used?
Are you able to get a decent GDB backtrace (using PHP configured with
--enable-debug)?
What was your full configure line?

It works just fine here with 1.0.1 & Linux i386.



[2006-08-17 09:48:45] gabriel dot zerbib at protilab dot com

I'm sorry Tony, you were a little bit quick in closing with "can't
reproduce".

You can just try the online demo. You'll manage to achieve the 100
iterations for some time, but if you hit Refresh a few times, you sure
will run into the problem: the page will not come to you, your browser
will report some proxy error or some "Host not found" error, which is
in fact caused by a violent crash of the PHP script and PHP
interpreter, never returning a response to your browser.

Please do not close this bug report too fast, as sample data were
properly provided, and the target platform and system and version.

Thanks.



[2006-08-17 09:43:05] [EMAIL PROTECTED]

Can't reproduce.



[2006-08-17 09:42:11] gerome dot fournier at infomaniak dot ch

Re-opened as the owner of the web site provided new feedbacks.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/38134

-- 
Edit this bug report at http://bugs.php.net/?id=38134&edit=1


#38134 [Opn->Fbk]: segfault while calling xslt_process

2006-07-18 Thread tony2001
 ID:   38134
 Updated by:   [EMAIL PROTECTED]
 Reported By:  gerome dot fournier at infomaniak dot ch
-Status:   Open
+Status:   Feedback
 Bug Type: XSLT related
 Operating System: Debian Sarge
 PHP Version:  4.4.2
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.




Previous Comments:


[2006-07-18 13:52:27] gerome dot fournier at infomaniak dot ch

Description:

Making a simple xml transformation using xslt_process
gives from time to time a segfault. The  php code looks like this:

$xmlFile = "file.xml";
$xsl_url = "file.xsl";
$result = xslt_process($xh, $xmlFile, $xsl_url);
if ($result) {
echo $result;
} else {
echo "Error";
}
xslt_free($xh);

I provide hereafter a backtrace after the segfault occured:

Program received signal SIGPIPE, Broken pipe.
[Switching to Thread -120974 (LWP 4068)]
0xb7f1f5e8 in writev () from /lib/tls/libc.so.6
(gdb) bt
#0  0xb7f1f5e8 in writev () from /lib/tls/libc.so.6
#1  0xb6db9cbf in ssl_io_hook_writev () from
/opt/apache/libexec/libssl.so
#2  0xbf886f40 in ?? ()
#3  0x0002 in ?? ()
#4  0x081228c4 in ?? ()
#5  0x in ?? ()
#6  0x0017 in ?? ()
#7  0x in ?? ()
#8  0x3908 in ?? ()
#9  0x081228c4 in ?? ()
#10 0x in ?? ()
#11 0x080cbd04 in ?? ()
#12 0x0807f4a7 in ap_hook_call_func ()
#13 0xb7979494 in sapi_send_headers () at
/root/SOURCES/php4-debug/php-4.4.2/main/SAPI.c:813
#14 0xb7987c6e in php_ub_body_write_no_header (
str=0x84413b4 "http://www.w3.org/1999/xhtml\";
lang=\"fr\" xml:lang=\"fr\">\n  \nProtilab -
gestion\n