Bug #71332 [Fbk->NoF]: SoapClient crash with bus error

From: Date: Sun, 04 Apr 2021 04:22:08 +0000
Subject: Bug #71332 [Fbk->NoF]: SoapClient crash with bus error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233147@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71332&edit=1 ID: 71332 Updated by: php-bugs@lists.php.net Reported by: humbads at alum dot mit dot edu Summary: SoapClient crash with bus error -Status: Feedback +Status: No Feedback Type: Bug Package: SOAP related Operating System: FreeBSD 10.2 PHP Version: 5.6.17 Assigned To: cmb Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2021-03-23 16:41:02] cmb@php.net Is this still happening with any of the actively supported PHP versions[1]? [1] <https://www.php.net/supported-versions.php> ------------------------------------------------------------------------ [2016-01-15 16:23:27] 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. ------------------------------------------------------------------------ [2016-01-11 14:36:17] 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-11 11:02:43] 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-10 20:22:16] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71332&edit=1

« previous php.bugs (#233147) next »