php.net |  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
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: humbads at alum dot mit dot edu
New email:
PHP Version: OS:

 

 [2016-01-10 20:22 UTC] humbads at alum dot mit dot edu
Description:
------------
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("http://www.webservicex.com/globalweather.asmx?wsdl"));'

Here are my SOAP settings - everything should be default:

php -i | grep -i soap
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

Notes:
* 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:
---------------
<?php
// Disable wsdl cache for workaround
// ini_set('soap.wsdl_cache_enabled', 0);

var_dump(new SoapClient("http://www.webservicex.com/globalweather.asmx?wsdl"));
?>

Expected result:
----------------
object(SoapClient)#1 (2) {
  ["_soap_version"]=>
  int(1)
  ["sdl"]=>
  resource(17) of type (Unknown)
}

Actual result:
--------------
Bus error

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-11 11:02 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2016-01-11 11:02 UTC] laruence@php.net
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
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php 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/libsybdb.so.5
(gdb) bt
#0  0x00000008033cc1de in ?? () from /usr/local/lib/libsybdb.so.5
#1  0x000000080339f6ad in tdsdbopen () from /usr/local/lib/libsybdb.so.5
#2  0x000000080a68b0d4 in ?? () from /lib/libc.so.7
#3  0x000000080a68a0a0 in ?? () from /lib/libc.so.7
#4  0x000000080a69dcff in nsdispatch () from /lib/libc.so.7
#5  0x000000080a68adae in ?? () from /lib/libc.so.7
#6  0x000000080a68abaf in ?? () from /lib/libc.so.7
#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] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-03-23 16:41 UTC] cmb@php.net
Is this still happening with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC