cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: make test fails on Fedore Core 4.0

From: Peter Sylvester <Peter.Sylvester_at_edelweb.fr>
Date: Thu, 07 Sep 2006 13:11:19 +0200

These tests fail when you have IPV6 because a sockaddr_in
structure is used (length 16) where the previous getsoickname
set 28 and this the accept fails and currupts your stack.

The current snapshots corrected the immediate problem by
replacing a sockaddr_in by a larger buffer which is a union
of sockaddr_in and 256 characters.

BG Mahesh wrote:
>
>
> On 9/6/06, *Daniel Stenberg* <daniel_at_haxx.se <mailto:daniel_at_haxx.se>>
> wrote:
>
> On Wed, 6 Sep 2006, BG Mahesh wrote:
>
> > TESTFAIL: These test cases failed: 253 255
>
> $ cd tests
> $ ./runtests.pl -g 253
>
> ... when the gdb prompt appears, type 'run'.
>
> See the sigsegv happen and investigate the cause. Both these tests
> are using
> EPRT/ipv6.
>
> It might be related to the getsockname() size stuff Peter
> Sylvester has
> brought up that I haven't had time to investigate or deal with.
>
> --
> Commercial curl and libcurl Technical Support:
> http://haxx.se/curl.html
>
>
>
> I did a "where" in gdb after crash...
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0082f330 in Curl_Transfer_at_plt () from
> /usr/local/src/curl-7.15.5/lib/.libs/libcurl.so.3
> (gdb) where
> #0 0x0082f330 in Curl_Transfer_at_plt () from
> /usr/local/src/curl-7.15.5/lib/.libs/libcurl.so.3
> #1 0x0083b187 in ftp_statemach_act (conn=0x8423ae0) at ftp.c:2198
> #2 0x0083b702 in ftp_easy_statemach (conn=0x8423ae0) at ftp.c:2776
> #3 0x0083b8f0 in Curl_ftp_nextconnect (conn=0x8423ae0) at ftp.c:3233
> #4 0x0083bb19 in ftp_dophase_done (conn=0x8423ae0, connected=1
> '\001') at ftp.c:3968
> #5 0x0083cc6c in Curl_ftp (conn=Variable "conn" is not available.
> ) at ftp.c:4046
> #6 0x0084247c in Curl_do (connp=0xbfc4c574, done=0xbfc4c57b
> "\001\204µ\205") at url.c:4130
> #7 0x0084bc57 in Curl_perform (data=0x841b328) at transfer.c:2239
> #8 0x0084c40f in curl_easy_perform (curl=0x841b328) at easy.c:470
> #9 0x0804e466 in main (argc=10, argv=0xbfc4caf4) at main.c:4024
> (gdb)
>
> --
> --
> B.G. Mahesh
> http://www.greynium.com/
> http://www.oneindia.in/
> http://www.click.in/ - Free Indian Classifieds

-- 
To verify the signature, see http://edelpki.edelweb.fr/ 
Cela vous permet de charger le certificat de l'autorité; 
die Liste mit zurückgerufenen Zertifikaten finden Sie da auch. 

Received on 2006-09-07