cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Segmentation fault

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 16 Jun 2002 15:22:10 +0200 (MET DST)

On Sat, 15 Jun 2002, Alan_at_barrltd.com wrote:

[Reply CC'ed to the curl-and-php list as well.]

> On the PHP code below, I'm getting a "segmentation fault". I've got this
> in a file and I'm invoking php from the command line to process the file.
> Neeedless to say, when ivoked via a browser and the page does this, its
> causeing some problems. Does anyone have any suggestions?

I do.

Please get a stack trace from the core dump, as it will tell us in great
detail exactly if this is a curl problem or a PHP problem. It would also help
us correct the problem a lot faster (wherever it turns out to be).

How to get a stack trace is described in the bottom of the BUGS document,
that is also available here:

        http://curl.haxx.se/docs/bugs.html

> CURL version: libcurl 7.9.7 (OpenSSL 0.9.6a)
> PHP version 4.1.2
> FreeBSD version 4.5-RELEASE-p4
>
> Thanks
>
> Alan
> alan_at_barrltd.com
>
> the offending code:
>
> <html>
> <body>
> <?
> print("starting curl \n");
>
> $ch = curl_init();
> curl_setopt ($ch,
> CURLOPT_URL,"https://secure.ibill.com/cgi-win/ccard/rssignup.exe?RequestType
> =SignupRevSharer&SuccessURL=http://www.mystats.com&MasterAccountID=12345&s4p
> lxrevsharereferredby=");
> curl_setopt ($ch, CURLOPT_VERBOSE, 1);
> curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 0);
> curl_setopt ($ch, CURLOPT_RETURNTRANSFER,1);
> $result = curl_exec ($ch);
> curl_close ($ch);
>
> print("ending curl \n");
> ?>
> done
> </body>
> </html>
>
>
>
>
> the result
>
> <html>
> <body>
> starting curl
> * About to connect() to secure.ibill.com:443
> * Connected to secure.ibill.com (12.8.9.40) port 443
> * SSL connection using DES-CBC3-SHA
> * Server certificate:
> * subject: /C=US/ST=Florida/L=Fort Lauderdale/O=Internet Billing
> Company Ltd./OU=ibill/CN=secure.ibill.com
> * start date: 2002-03-07 00:00:00 GMT
> * expire date: 2003-03-27 23:59:59 GMT
> * issuer: /C=US/O=RSA Data Security, Inc./OU=Secure Server
> Certification Authority
> > GET
> /cgi-win/ccard/rssignup.exe?RequestType=SignupRevSharer&SuccessURL=http://ww
> w.mystats.com&MasterAccountID=12345&s4plxrevsharereferredby= HTTP/1.1
> Host: secure.ibill.com
> Pragma: no-cache
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
>
> * Closing connection #0
> Segmentation fault (core dumped)
>

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
_______________________________________________________________
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
Received on 2002-06-16