|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-03-31 10:34 UTC] nikspijkerman at gmail dot com
Description:
------------
Using the SoapClient option cache_wsdl: WSDL_CACHE_MEMORY and/or WSDL_CACHE_BOTH from the Symfony 2.8 Console causes a segmentation fault. Using WSDL_CACHE_DISK does not throw an error.
Simply executing the script from a plain PHP file does not seem to reproduce the fault.
[New LWP 29769]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `php app/console provider:generate_dfp_services'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f91f03700db in zend_hash_destroy ()
(gdb) bt
#0 0x00007f91f03700db in zend_hash_destroy ()
#1 0x00007f91dfaa7f31 in delete_type_persistent () from /usr/lib/php/20151012/soap.so
#2 0x00007f91f03701dd in zend_hash_destroy ()
#3 0x00007f91dfaaf3e1 in ?? () from /usr/lib/php/20151012/soap.so
#4 0x00007f91dfaaf44f in ?? () from /usr/lib/php/20151012/soap.so
#5 0x00007f91f03700d2 in zend_hash_destroy ()
#6 0x00007f91dfa7ff0b in zm_shutdown_soap () from /usr/lib/php/20151012/soap.so
#7 0x00007f91f0366313 in module_destructor ()
#8 0x00007f91f035eedc in ?? ()
#9 0x00007f91f0370c48 in zend_hash_graceful_reverse_destroy ()
#10 0x00007f91f035fea5 in zend_shutdown ()
#11 0x00007f91f0303f6b in php_module_shutdown ()
#12 0x00007f91f01f4486 in main ()
Test script:
---------------
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class MySoapClientCommand extends ContainerAwareCommand
{
protected function configure()
{
$this->setName('app:mysoapclient');
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$wsdl = 'https://ads.google.com/apis/ads/publisher/v201502/ActivityService?wsdl';
$client = new \SoapClient($wsdl, ['cache_wsdl' => WSDL_CACHE_MEMORY]);
}
}
Then from the CLI:
$ php app/console app:mysoapclient
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 07:00:02 2025 UTC |
Still present in 7.0.12 on MacOS X Process: php [62107] Path: /usr/local/Cellar/php70/7.0.12_5/bin/php Identifier: php Version: 0 Code Type: X86-64 (Native) Parent Process: zsh [701] Responsible: iTerm2 [696] User ID: 502 Date/Time: 2016-11-02 14:17:24.450 +0100 OS Version: Mac OS X 10.11.6 (15G1108) Report Version: 11 Anonymous UUID: 82D86DB1-0CCB-203A-1A50-3F1ED24A48DD Time Awake Since Boot: 17000 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000000010d6d6d75 VM Regions Near 0x10d6d6d75: VM_ALLOCATE 000000010d200000-000000010d400000 [ 2048K] rw-/rwx SM=PRV --> MALLOC_LARGE 000000010e400000-000000010e640000 [ 2304K] rw-/rwx SM=PRV Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 php 0x0000000109f5396c zend_hash_destroy + 348 1 php 0x0000000109dcbb43 delete_type_persistent + 342 2 php 0x0000000109f53895 zend_hash_destroy + 133 3 php 0x0000000109dd424c delete_psdl_int + 105 4 php 0x0000000109dd407a delete_psdl + 17 5 php 0x0000000109f53962 zend_hash_destroy + 338 6 php 0x0000000109da71b6 zm_shutdown_soap + 82 7 php 0x0000000109f4c1c7 module_destructor + 117 8 php 0x0000000109f43e5e module_destructor_zval + 17 9 php 0x0000000109f531e8 _zend_hash_del_el_ex + 308 10 php 0x0000000109f544d1 zend_hash_graceful_reverse_destroy + 175 11 php 0x0000000109f43fe5 zend_shutdown + 225 12 php 0x0000000109ee7117 php_module_shutdown + 42 13 php 0x0000000109fd1ff4 main + 1381 14 libdyld.dylib 0x00007fff8c3e55ad start + 1 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x00007fff7989f420 rbx: 0x0000010000000000 rcx: 0x00000000001f8100 rdx: 0x0000000000132480 rdi: 0x000000010d6d6d70 rsi: 0x000000010abe9200 rbp: 0x00007fff560e5d10 rsp: 0x00007fff560e5ce0 r8: 0x0000000000000000 r9: 0x00007faa79c2be80 r10: 0x000000008c2dd4b2 r11: 0x00007faa79c00000 r12: 0x00007faa7a03fa80 r13: 0x000000010a532db2 r14: 0x00007faa79c78fc0 r15: 0x00007faa7a03fe20 rip: 0x0000000109f5396c rfl: 0x0000000000010202 cr2: 0x000000010d6d6d75 Logical CPU: 0 Error Code: 0x00000004 Trap Number: 14 lldb (lldb) bt * thread #1: tid = 0x442c0, 0x00007fff9c37d8ea libsystem_kernel.dylib`__kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSEGV * frame #0: 0x00007fff9c37d8ea libsystem_kernel.dylib`__kill + 10 frame #1: 0x0000000101dcc1cb php`zend_mm_panic + 52 frame #2: 0x0000000101dcd2a2 php`zend_mm_free_heap + 733 frame #3: 0x0000000101e0099b php`zend_hash_destroy + 395 frame #4: 0x0000000101c78b43 php`delete_type_persistent + 342 frame #5: 0x0000000101e00895 php`zend_hash_destroy + 133 frame #6: 0x0000000101c8124c php`delete_psdl_int + 105 frame #7: 0x0000000101c8107a php`delete_psdl + 17 frame #8: 0x0000000101e00962 php`zend_hash_destroy + 338 frame #9: 0x0000000101c541b6 php`zm_shutdown_soap + 82 frame #10: 0x0000000101df91c7 php`module_destructor + 117 frame #11: 0x0000000101df0e5e php`module_destructor_zval + 17 frame #12: 0x0000000101e001e8 php`_zend_hash_del_el_ex + 308 frame #13: 0x0000000101e014d1 php`zend_hash_graceful_reverse_destroy + 175 frame #14: 0x0000000101df0fe5 php`zend_shutdown + 225 frame #15: 0x0000000101d94117 php`php_module_shutdown + 42 frame #16: 0x0000000101e7eff4 php`main + 1381 frame #17: 0x00007fff8c3e55ad libdyld.dylib`start + 1 frame #18: 0x00007fff8c3e55ad libdyld.dylib`start + 1