|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-07-08 07:46 UTC] simon dot minotto at gmail dot com
Description:
------------
Bug report.
I have a segmentation fault using soap_client
I didn't success reproducing it outside my framework (based on symfony 1.0) with a simple script
Code around the exception :
file_put_contents("/tmp/doing", "\nconstucting soap client with url ".$wsdl."\n", FILE_APPEND);
$soapClient = new SoapClient($wsdl);
file_put_contents("/tmp/doing", "\nsoap client constructed\n", FILE_APPEND);
Content of /tmp/doing after execution :
(I replace http by h ttp to avoid ticketing spam detection)
constucting soap client with url h ttp://trunk-tv1-services-php7test1.brainsonic.com/wsdl_test
soap client constructed
constucting soap client with url h ttp://trunk-tv1-services-php7test1.brainsonic.com/wsdl_test
<ENDOFFILE>
strace of first soap_client construct call : (with strace php <myscript>)
http://pastebin.com/XvnknwrN
strace of second soap_client construct call (jsut before crash) :
http://pastebin.com/jALzymJ6
My configure line : './configure' '--with-apxs2=/usr/bin/apxs' '--with-mysqli' '--enable-soap' '--enable-sockets' '--enable-sysvsem' '--with-xsl' '--enable-zip' '--enable-mbstring' '--with-curl' '--with-mcrypt' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/lib' '--enable-exif' '--with-openssl' '--enable-pcntl'
on Ubuntu 15
Test script:
---------------
http://pastebin.com/bBZ0iPqu
-> Not reproducing the issue with this code
Actual result:
--------------
http://pastebin.com/kYnMQEqB
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 12:00:01 2025 UTC |
Hmm, I can not reproduce this. valgrind clean as well(could you please try run with latest master snapshot?): $ USE_ZEND_ALLOC=0 valgrind sapi/cli/php /tmp/1.php ==29654== Memcheck, a memory error detector ==29654== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==29654== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==29654== Command: sapi/cli/php /tmp/1.php ==29654== before first soap client construct after first soap client construct array(9) { ["playlistFolderId"]=> int(1) ["maxPerPage"]=> int(5) ["page"]=> int(1) ["additionnalParameters"]=> string(0) "" ["sessionId"]=> string(0) "" ["APIKey"]=> string(10) "brainsonic" ["format"]=> string(0) "" ["login_username"]=> string(0) "" ["login_password"]=> string(0) "" } string(114) "<playlist_menu version="1.0"> <playlist_folder_config> <items> </items> </playlist_folder_config> </playlist_menu>" end soap client construct ==29654== ==29654== HEAP SUMMARY: ==29654== in use at exit: 7,338 bytes in 79 blocks ==29654== total heap usage: 79,500 allocs, 79,421 frees, 6,789,427 bytes allocated ==29654== ==29654== LEAK SUMMARY: ==29654== definitely lost: 40 bytes in 1 blocks ==29654== indirectly lost: 0 bytes in 0 blocks ==29654== possibly lost: 0 bytes in 0 blocks ==29654== still reachable: 7,298 bytes in 78 blocks ==29654== suppressed: 0 bytes in 0 blocks ==29654== Rerun with --leak-check=full to see details of leaked memory ==29654== ==29654== For counts of detected and suppressed errors, rerun with: -v ==29654== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) thanks