php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40561 call to soap-server produces segfault
Submitted: 2007-02-20 15:38 UTC Modified: 2007-02-28 01:00 UTC
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: andreas at dolleschal dot org Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.2.1 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-02-20 15:38 UTC] andreas at dolleschal dot org
Description:
------------
the following function produces a segmentation fault.

Reproduce code:
---------------
<?php
    $wsdl = "http://eval.jivesoftware.com/clearspace/rpc/soap/SearchService?wsdl";

    //try {
        $client = new SoapClient($wsdl, array('trace' => 1));

        $params->query = 'test';
        $params->startIndex = 0;
        $params->numResults = 10;

        print $client->quickSearch($params);
    //} // end try

    //catch(SOAPFault $f) {
    //    print 'Error: ' . $f->faultstring;
    //} // end catch
?>


Expected result:
----------------
at least not a segfault


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-20 15:44 UTC] tony2001@php.net
eval.jivesoftware.com does not respond by HTTP.
 [2007-02-20 15:50 UTC] andreas at dolleschal dot org
What else? If I try to call the URL directly I get the wsdl-descriptions?
 [2007-02-20 15:55 UTC] tony2001@php.net
Ah, I see. It's "localhost" in your WSDL.
I need a working reproduce case to investigate it.
 [2007-02-20 16:01 UTC] andreas at dolleschal dot org
sorry. use http://space.developer.at:8080/clearspace/rpc/soap/SearchService?wsdl as request-url.
 [2007-02-20 16:09 UTC] tony2001@php.net
Can't see any segfaults, only an uncaught exception:

Fatal error: Uncaught SoapFault exception: [HTTP] Internal Server Error in /tmp/4.php:12
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'http://space.de...', '', 1, 0)
#1 [internal function]: SoapClient->__call('quickSearch', Array)
#2 /tmp/4.php(12): SoapClient->quickSearch(Object(stdClass))
#3 {main}
  thrown in /tmp/4.php on line 12

 [2007-02-20 16:16 UTC] andreas at dolleschal dot org
true if you call the script with cli, if you call the script via apache the apache process get's an segmentation fault. how should one resolve this "[HTTP] Internal Server Error"?
 [2007-02-20 16:18 UTC] tony2001@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.


 [2007-02-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue May 18 18:01:23 2021 UTC