php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65245 Segmentation fault when compiling PHP with XSL enabled
Submitted: 2013-07-11 18:41 UTC Modified: 2021-02-21 04:22 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:0 of 3 (0.0%)
From: fra dot nospam dot nk at gmx dot de Assigned: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 5.3.27 OS: AIX
Private report: No CVE-ID: None
 [2013-07-11 18:41 UTC] fra dot nospam dot nk at gmx dot de
Description:
------------
Similar to bug #51216, a PHP build with "--with-xsl" unexpectedly ends with the intermediately build "sapi/cli/php" crashing with a segmentation fault when called in the "Generating phar.php" build step. The environment is:

AIX: 6100-08-01-1245
xlC: 11.01.0000.0009
php: 5.3.26
libxml2: 2.9.1
libxslt: 1.1.28

Disabling "--with-xsl" produces a successful PHP build though.

Test script:
---------------
Build PHP with the above platform/versions and the "--with-xsl" configure option.

Expected result:
----------------
Successful PHP build

Actual result:
--------------
$ dbx sapi/cli/php core 
Type 'help' for help.
[using memory image in core]
reading symbolic information ...

Segmentation fault in exsltRegisterAll at 0xd2dfa2b0 ($t1)
0xd2dfa2b0 (exsltRegisterAll+0x88) 800c0000         lwz   r0,0x0(r12)
(dbx) where
exsltRegisterAll() at 0xd2dfa2b0
exsltRegisterAll() at 0xd2dfa234
zm_startup_xsl() at 0x104c2400
zend_startup_module_ex@AF200_118() at 0x100287a0
zend_hash_apply() at 0x1002c814
zend_startup_modules() at 0x100261cc
php_module_startup() at 0x1012f150
php_cli_startup() at 0x10002314
php_cli.main() at 0x100006a0


$ gdb sapi/cli/php core
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.1.0.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /xxx/build-cli/sapi/cli/php...(no debugging symbols found)...done.
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
#0  0xd2dfa2b0 in ?? ()
(gdb) bt
#0  0xd2dfa2b0 in ?? ()
#1  0xd2dfa238 in ?? ()
#2  0x104c2404 in zm_startup_xsl ()
#3  0x100287a4 in zend_startup_module_ex@AF200_118 ()
#4  0x1002c818 in zend_hash_apply ()
#5  0x100261d0 in zend_startup_modules ()
#6  0x1012f154 in php_module_startup ()
#7  0x10002318 in php_cli_startup ()
#8  0x100006a4 in main ()

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-12 09:44 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-02-12 09:44 UTC] cmb@php.net
Does this still happen to you with any of the actively supported
PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-02-21 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC