Bug #78021 [Fbk->Opn]: Apache crashes with SegFault(11) in response of remote Soap server

From: Date: Mon, 20 May 2019 06:12:16 +0000
Subject: Bug #78021 [Fbk->Opn]: Apache crashes with SegFault(11) in response of remote Soap server
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220907@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78021&edit=1 ID: 78021 User updated by: marcel dot lerutte at vodafoneziggo dot com Reported by: marcel dot lerutte at vodafoneziggo dot com Summary: Apache crashes with SegFault(11) in response of remote Soap server -Status: Feedback +Status: Open Type: Bug Package: SOAP related Operating System: RHEL 7 PHP Version: 7.3.5 Block user comment: N Private report: N New Comment: wsdl: https://ufile.io/9o0321zd xsd 1: https://ufile.io/ftxts1lz xsd 2: https://ufile.io/0eyv2mto Previous Comments: ------------------------------------------------------------------------ [2019-05-18 14:25:25] sjon@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. could you post the actual wsdl as well? Without it a valid SoapClient cannot be created and I cannot reproduce this ------------------------------------------------------------------------ [2019-05-16 12:05:27] marcel dot lerutte at vodafoneziggo dot com Example response: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://www.ziggo.nl/Integration/ESB/Services/NetworkInventory/GetServiceConfiguration/2/Schema"> <soapenv:Header/> <soapenv:Body> <sch:Response xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://www.ziggo.nl/Integration/ESB/Services/Resource/CmrGetServiceConfiguration/2/Schema"> <sch:header xmlns:ns1="http://www.ziggo.nl/Integration/ESB/Generic/CMM/3.0"> <sch:businessTransactionID>0109_0005</sch:businessTransactionID> <sch:externalCorrelationID>d6d74d7a-e81e-4dec-80b5-f7643bf1139b</sch:externalCorrelationID> <sch:conversationID>83bc1d8f-798d-4559-bc06-40fef33af044</sch:conversationID> <sch:sentTimestamp>2019-01-09T10:34:04.617+01:00</sch:sentTimestamp> <sch:sourceContext> <sch:host>ESB-BW-WPV02</sch:host> <sch:application>adpCramer</sch:application> <sch:operation>CmrGetServiceConfiguration_2</sch:operation> </sch:sourceContext> <sch:attributes> <sch:attribute> <sch:key>origin</sch:key> <sch:value>tibco_fetch.pl_-s_internet_pro-137.010.666_-o_mdruyter_-d_0</sch:value> </sch:attribute> </sch:attributes> </sch:header> <sch:body> <sch:customer> <sch:externalIDs> <sch:externalID sch:keyField="cmr:externalRelationId">10107206</sch:externalID> </sch:externalIDs> <sch:fullName>GTVast Gemeente Tynaarlo</sch:fullName> </sch:customer> <sch:service> <sch:ID>Internet Pro-137.010.666</sch:ID> <sch:specification> <sch:localReference>0</sch:localReference> </sch:specification> </sch:service> <sch:serviceSpecifications> <sch:serviceSpecification> <sch:localReference>0</sch:localReference> <sch:name>Internet Pro</sch:name> <sch:characteristics> <sch:characteristic> <sch:name>ServiceSubType</sch:name> <sch:value> <sch:value>Single Homed</sch:value> </sch:value> </sch:characteristic> </sch:characteristics> </sch:serviceSpecification> <sch:serviceSpecification> <sch:localReference>1</sch:localReference> <sch:characteristics> <sch:characteristic> <sch:name>ServiceSubType</sch:name> <sch:value> <sch:value>Fiber</sch:value> </sch:value> </sch:characteristic> </sch:characteristics> </sch:serviceSpecification> </sch:serviceSpecifications> <sch:accessServices> <sch:accessService> <sch:ID>Access-137.010.668</sch:ID> <sch:specification> <sch:localReference>1</sch:localReference> <sch:name>Access</sch:name> </sch:specification> <sch:status>In Service</sch:status> <sch:resources> <sch:resource> <sch:type>PE</sch:type> </sch:resource> <sch:resource> <sch:type>DS</sch:type> </sch:resource> <sch:resource> <sch:type>CMTS</sch:type> </sch:resource> <sch:resource> <sch:type>CPE</sch:type> </sch:resource> </sch:resources> <sch:characteristics> <sch:characteristic> <sch:key>LAST_MODIFIED_DATE</sch:key> <sch:value>09-01-2019 10:04:57</sch:value> </sch:characteristic> <sch:characteristic> <sch:key>NUMBER_OF_SERVICES</sch:key> <sch:value>1</sch:value> </sch:characteristic> </sch:characteristics> </sch:accessService> </sch:accessServices> </sch:body> </sch:Response> </soapenv:Body> </soapenv:Envelope> ------------------------------------------------------------------------ [2019-05-16 11:57:31] marcel dot lerutte at vodafoneziggo dot com Description: ------------ After having setup a SOAP mock service with SoapUI and sending a request to this service Apache crashes with SegFault(11) upon receiving the response. Test script: --------------- $contextOptions = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) ); stream_context_set_default($contextOptions); $context = stream_context_create($contextOptions); $options = array("soap_version"=> 2, "cache_wsdl"=> 0, 'stream_context' => $context); $test = new SoapClient('http://localhost:8088/mockNetworkInventory?wsdl', $options); $obj = (object) array( 'header'=>array('businessTransactionID' =>'?', 'sentTimestamp' =>'?', 'sourceContext' => array('host' => '?', 'application' => '?') ), 'body'=>array('service' => array('ID'=>'123')) ); $test->GetServiceConfiguration_2($obj); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78021&edit=1

« previous php.bugs (#220907) next »