cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl coredump in autobuild

From: Tor Arntsen <tor_at_spacetec.no>
Date: Wed, 3 Sep 2008 11:13:12 +0200

On Wed, Sep 3, 2008 at 10:08, Yang Tse <yangsita_at_gmail.com> wrote:

> Yes. Since you mentioned that this started failing just after Jul-09.
>
> Do a manual CVS checkout of current CVS and apply to it the attached
> patch 'tes01.patch' and let's see what happens.
>
> This patch reverts the 'IPV6 c-ares' patch committed Jul-09. This is
> only for testing purposes to verify if this might be causing the
> problem.

With that patch the http tests started working. It still fails on the
ftp tests, i.e. it starts failing at test 100:

Program terminated with signal 11, Segmentation fault.
#0 0xb7efe4e0 in ftp_init (conn=0x8070960) at ftp.c:3019
3019 ftp = (struct FTP *)calloc(sizeof(struct FTP), 1);
(gdb) where
#0 0xb7efe4e0 in ftp_init (conn=0x8070960) at ftp.c:3019
#1 0xb7ef9514 in ftp_connect (conn=0x8070960, done=0xbfc1f840 "")
    at ftp.c:3067
#2 0xb7f03a03 in Curl_protocol_connect (conn=0x8070960,
    protocol_done=0xbfc1f840 "") at url.c:2842
#3 0xb7f03727 in setup_conn (conn=0xb7f2150f, hostaddr=0xf21a9008,
    protocol_done=0x7a9d8b <Address 0x7a9d8b out of bounds>) at url.c:4449
#4 0xb7f011c2 in Curl_connect (data=0x8068028, in_connect=0xbfc1f868,
    asyncp=0xbfc1f83c "", protocol_done=0xbfc1f840 "") at url.c:4525
#5 0xb7f0c230 in connect_host (data=0xb7f2150f, conn=0xf21a9008)
    at transfer.c:2357
#6 0xb7f0942f in Curl_perform (data=0x8068028) at transfer.c:2438
#7 0xb7f0c66b in curl_easy_perform (curl=0x8068028) at easy.c:538
#8 0x0804bb99 in operate (config=0xb7f2150f, argc=-233140216, argv=0x7a9d8b)
    at main.c:4792
#9 0x0804a437 in main (argc=7, argv=0xbfc1fed4) at main.c:5098

As seen before, it's the calloc() call itself that appears to be sigsegv'ing.

-Tor
Received on 2008-09-03