|  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: -
Avg. Score:4.8 ± 0.4
Reproduced:0 of 3 (0.0%)
From: fra dot nospam dot nk at gmx dot de Assigned:
Status: Open Package: Compile Failure
PHP Version: 5.3.27 OS: AIX
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-07-11 18:41 UTC] fra dot nospam dot nk at gmx dot de
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 <>
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:
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 ()


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jan 23 11:01:26 2021 UTC