Bug #11777 Updated: php apache dso coredumps using die() inside function for xslt_set_error_handler
| From: | sterling@php.net | Date: | Mon, 30 Jul 2001 22:37:59 +0000 |
| Subject: | Bug #11777 Updated: php apache dso coredumps using die() inside function for xslt_set_error_handler | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61600@lists.php.net to get a copy of this message | ||
ID: 11777
Updated by: sterling
Reported By: tom@minnesota.com
Old Status: Open
Status: Closed
Bug Type: Sablotron XSL
Operating System: NetBSD/Alpha 1.5W-current
PHP Version: 4.0 Latest CVS (2001-06-28)
New Comment:
please try the new XSLT extension (use the CVS version,
--enable-xslt --with-xslt-sablot) and let me know if this
still happens.
Previous Comments:
------------------------------------------------------------------------
[2001-06-28 09:36:26] tom@minnesota.com
function xsl_error($parser, $code, $level, $errors)
{
...
die("this will cause a coredump or fatal trap");
}
xslt_set_error_handler($parser, "xsl_error");
by calling die() inside a function for xslt_set_error_handler will cause my NetBSD/Alpha system to
either coredump or go to a fatal user trap. it coredumps if i didn't compile with
'--enable-debug'. with debug compiled in, it usually reports a fatal user trap. this only
happens with the PHP Apache DSO. as a cgi, it exits just fine.
i've verified and repeated this on PHP 4.0.5 and the latest cvs.
---cut---
Jun 28 08:17:06 ns01 /netbsd: CPU 0: fatal user trap:
Jun 28 08:17:08 ns01 /netbsd:
Jun 28 08:17:08 ns01 /netbsd: CPU 0 trap entry = 0x4 (unaligned access fault)
Jun 28 08:17:08 ns01 /netbsd: CPU 0 a0 = 0x2b5d3f5c5e5b5e27
Jun 28 08:17:08 ns01 /netbsd: CPU 0 a1 = 0x28
Jun 28 08:17:08 ns01 /netbsd: CPU 0 a2 = 0x1
Jun 28 08:17:08 ns01 /netbsd: CPU 0 pc = 0x1606b9c24
Jun 28 08:17:08 ns01 /netbsd: CPU 0 ra = 0x160731664
Jun 28 08:17:09 ns01 /netbsd: CPU 0 curproc = 0xfffffc00356af400
Jun 28 08:17:09 ns01 /netbsd: CPU 0 pid = 6108, comm = httpd
Jun 28 08:17:09 ns01 /netbsd:
Jun 28 08:17:09 ns01 /netbsd: pid 6108 (httpd), uid 71: exited on signal 11 (core not dumped, err
= 1)
---cut---
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=11777&edit=1