|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11777 php apache dso coredumps using die() inside function for xslt_set_error_handler
Submitted: 2001-06-28 09:36 UTC Modified: 2001-07-30 18:37 UTC
From: tom at minnesota dot com Assigned:
Status: Closed Package: Sablotron XSL
PHP Version: 4.0 Latest CVS (2001-06-28) OS: NetBSD/Alpha 1.5W-current
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: tom at minnesota dot com
New email:
PHP Version: OS:


 [2001-06-28 09:36 UTC] tom at minnesota dot 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.

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)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-30 18:37 UTC]
please try the new XSLT extension (use the CVS version, 
--enable-xslt --with-xslt-sablot) and let me know if this 
still happens.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 15:01:34 2024 UTC