php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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.

---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---

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-30 18:37 UTC] sterling@php.net
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: Fri Dec 27 04:01:29 2024 UTC