|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71332 SoapClient crash with bus error
Submitted: 2016-01-10 20:22 UTC Modified: 2021-04-04 04:22 UTC
From: humbads at alum dot mit dot edu Assigned: cmb (profile)
Status: No Feedback Package: SOAP related
PHP Version: 5.6.17 OS: FreeBSD 10.2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-01-10 20:22 UTC] humbads at alum dot mit dot edu
PHP crashes with a "bus error" message when calling the SoapClient constructor with any WSDL URL and no options.  Everything works fine if WSDL caching is disabled.  Strangely, everything also works fine when running the sample code from the command line like this:
php -r 'var_dump(new SoapClient(""));'

Here are my SOAP settings - everything should be default:

php -i | grep -i soap
Soap Client => enabled
Soap Server => enabled
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400

* The test script is using a public/free WSDL URL.
* Permissions on the /tmp folder are "drwxrwxrwt", and cached wsdl temporary files are being created there fine.
* I think PHP is crashing because the error handler is not being triggered in my production code.

Test script:
// Disable wsdl cache for workaround
// ini_set('soap.wsdl_cache_enabled', 0);

var_dump(new SoapClient(""));

Expected result:
object(SoapClient)#1 (2) {
  resource(17) of type (Unknown)

Actual result:
Bus error


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-11 11:02 UTC]
-Status: Open +Status: Feedback
 [2016-01-11 11:02 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read for *NIX and for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I can not reproduce this.
 [2016-01-11 14:36 UTC] humbads at alum dot mit dot edu
-Status: Feedback +Status: Open
 [2016-01-11 14:36 UTC] humbads at alum dot mit dot edu
Here is the stack trace:

Core was generated by `php'.
Program terminated with signal SIGBUS, Bus error.
#0  0x00000008033cc1de in ?? () from /usr/local/lib/
(gdb) bt
#0  0x00000008033cc1de in ?? () from /usr/local/lib/
#1  0x000000080339f6ad in tdsdbopen () from /usr/local/lib/
#2  0x000000080a68b0d4 in ?? () from /lib/
#3  0x000000080a68a0a0 in ?? () from /lib/
#4  0x000000080a69dcff in nsdispatch () from /lib/
#5  0x000000080a68adae in ?? () from /lib/
#6  0x000000080a68abaf in ?? () from /lib/
#7  0x00000000009e09a2 in php_get_current_user ()
#8  0x000000000087dfc5 in ?? ()
#9  0x000000000082e0d2 in ?? ()
#10 0x0000000000ab64fb in ?? ()
#11 0x0000000000ab733f in ?? ()
#12 0x0000000000ab49e6 in execute_ex ()
#13 0x0000000000ab53d3 in zend_execute ()
#14 0x0000000000a70ceb in zend_execute_scripts ()
#15 0x00000000009e307f in php_execute_script ()
#16 0x0000000000b92b1c in ?? ()
#17 0x0000000000b93b2c in ?? ()
#18 0x0000000000446d9f in _start ()

If you want me to install the symbols, just send me the link to the instructions.
 [2016-01-15 16:23 UTC] erik5 at pair dot com
I believe this is a duplicate of #69184.  I'm not exactly sure how SOAP is related to the FreeTDS library, but recompiling that without --enable-sybase-compat seems to resolve this.
 [2021-03-23 16:41 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-03-23 16:41 UTC]
Is this still happening with any of the actively supported PHP

[1] <>
 [2021-04-04 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-2021 The PHP Group
All rights reserved.
Last updated: Mon May 10 19:01:24 2021 UTC