Bug #65802 [NEW]: Segmentation fault on creating new SoapClient

From: Date: Tue, 01 Oct 2013 16:25:50 +0000
Subject: Bug #65802 [NEW]: Segmentation fault on creating new SoapClient
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-181912@lists.php.net to get a copy of this message
From:             karen dot thompkins at americanlanternpress dot com
Operating system: Linux version 2.6.32-279.5.2.el6
PHP version:      5.4.20
Package:          SOAP related
Bug Type:         Bug
Bug description:Segmentation fault on creating new SoapClient

Description:
------------
Script ran fine until early this morning when cPanel ran its nightly
update. I am unable to track down what might be causing the issue.

Configure: Command 	'./configure' '--enable-bcmath'
'--enable-calendar'
'--enable-ftp' '--enable-libxml' '--enable-mbstring'
'--enable-pdo=shared'
'--enable-soap' '--enable-sockets' '--enable-zip'
'--prefix=/usr/local'
'--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/'
'--with-gd' '--with-imap=/opt/php_with_imap_client/'
'--with-imap-ssl=/usr'
'--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64'
'--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/'
'--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr'
'--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr'
'--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre'
'--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic'
'--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-zlib'
'--with-zlib-dir=/usr' 

cURL support 	enabled
cURL Information 	7.24.0
Age 	3
Features
AsynchDNS 	No
Debug 	No
GSS-Negotiate 	No
IDN 	Yes
IPv6 	Yes
Largefile 	Yes
NTLM 	Yes
SPNEGO 	No
SSL 	Yes
SSPI 	No
krb4 	No
libz 	Yes
CharConv 	No
Protocols 	dict, file, ftp, ftps, gopher, http, https, imap, imaps, pop3,
pop3s, rtsp, smtp, smtps, telnet, tftp
Host 	x86_64-unknown-linux-gnu
SSL Version 	OpenSSL/1.0.0
ZLib Version 	1.2.3 

libxml
libXML support 	active
libXML Compiled Version 	2.9.0
libXML Loaded Version 	20900
libXML streams 	enabled 

soap
Soap Client 	enabled
Soap Server 	enabled

Directive	Local Value	Master Value
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

Test script:
---------------
$wsdl = "https://api.verticalresponse.com/wsdl/1.0/VRAPI.wsdl";
//location
of the wsdl
$vr = new SoapClient($wsdl,
 array (
    // 'local_cert' => $cert,
    // 'passphrase' => $cert_pass
	)
);

Expected result:
----------------
Soap client assigned to variable

Actual result:
--------------
Segmentation fault

# gdb php
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
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 "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/php...done.
(gdb) run vr.php
Starting program: /usr/local/bin/php vr.php
warning: the debug information found in
"/usr/lib/debug//usr/lib64/libfreebl3.so.debug" does not match
"/usr/lib64/libfreebl3.so" (CRC mismatch).

warning: the debug information found in
"/usr/lib/debug/usr/lib64/libfreebl3.so.debug" does not match
"/usr/lib64/libfreebl3.so" (CRC mismatch).

Missing separate debuginfo for /usr/lib64/libfreebl3.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/68/195872ecfb188389d29aaf01031a976fd18168.debug
[Thread debugging using libthread_db enabled]


Program received signal SIGSEGV, Segmentation fault.
memcpy () at ../sysdeps/x86_64/memcpy.S:422
422             movq    16(%rsi), %r9
Missing separate debuginfos, use: debuginfo-install
libXau-1.0.5-1.el6.x86_64 libidn-1.18-2.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64 libxcb-1.5-1.el6.x86_64
(gdb) bt
#0  memcpy () at ../sysdeps/x86_64/memcpy.S:422
#1  0x000000000063f58f in sdl_deserialize_string (in=0x7fffffffa210) at
/home/cpeasyapache/src/php-5.4.20/ext/soap/php_sdl.c:1208
#2  0x0000000000644274 in sdl_deserialize_type (type=0x7ffff0640488,
types=0x7ffff062bc68, encoders=0x7ffff063add8, in=0x7fffffffa210)
    at /home/cpeasyapache/src/php-5.4.20/ext/soap/php_sdl.c:1329
#3  0x00000000006443ac in sdl_deserialize_type (type=0x7ffff063aa18,
types=0x7ffff062bc68, encoders=0x7ffff063add8, in=0x7fffffffa210)
    at /home/cpeasyapache/src/php-5.4.20/ext/soap/php_sdl.c:1378
#4  0x000000000064accf in get_sdl_from_cache (this_ptr=<value optimized
out>, uri=0x7ffff74ac360
"https://api.verticalresponse.com/wsdl/1.0/VRAPI.wsdl",
    cache_wsdl=<value optimized out>) at
/home/cpeasyapache/src/php-5.4.20/ext/soap/php_sdl.c:1642
#5  get_sdl (this_ptr=<value optimized out>, uri=0x7ffff74ac360
"https://api.verticalresponse.com/wsdl/1.0/VRAPI.wsdl",
cache_wsdl=<value
optimized out>)
    at /home/cpeasyapache/src/php-5.4.20/ext/soap/php_sdl.c:3250
#6  0x000000000061aa7d in zim_SoapClient_SoapClient (ht=2,
return_value=<value optimized out>, return_value_ptr=<value optimized
out>,
    this_ptr=0x7ffff75b5748, return_value_used=<value optimized out>) at
/home/cpeasyapache/src/php-5.4.20/ext/soap/soap.c:2512
#7  0x00007ffff13745af in xdebug_execute_internal
(current_execute_data=0x7ffff757c060, return_value_used=0) at
/root/tmp/pear/xdebug/xdebug.c:1547
#8  0x00000000007f3c05 in zend_do_fcall_common_helper_SPEC
(execute_data=<value optimized out>)
    at /home/cpeasyapache/src/php-5.4.20/Zend/zend_vm_execute.h:645
#9  0x00000000007e7d20 in execute (op_array=0x7ffff75b29c8) at
/home/cpeasyapache/src/php-5.4.20/Zend/zend_vm_execute.h:410
#10 0x00007ffff1374a09 in xdebug_execute (op_array=0x7ffff75b29c8) at
/root/tmp/pear/xdebug/xdebug.c:1435
#11 0x000000000077eaad in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /home/cpeasyapache/src/php-5.4.20/Zend/zend.c:1317
#12 0x0000000000722827 in php_execute_script (primary_file=0x7fffffffdc30)
at /home/cpeasyapache/src/php-5.4.20/main/main.c:2502
#13 0x0000000000829d8c in do_cli (argc=2, argv=0x7fffffffe038) at
/home/cpeasyapache/src/php-5.4.20/sapi/cli/php_cli.c:989
#14 0x000000000082a508 in main (argc=2, argv=0x7fffffffe038) at
/home/cpeasyapache/src/php-5.4.20/sapi/cli/php_cli.c:1365


-- 
Edit bug report at https://bugs.php.net/bug.php?id=65802&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=65802&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=65802&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=65802&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65802&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65802&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65802&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65802&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65802&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65802&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65802&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=65802&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=65802&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65802&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65802&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65802&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65802&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65802&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65802&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65802&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65802&r=mysqlcfg



Thread (6 messages)

« previous php.bugs (#181912) next »