cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1618377 ] SIGSEGV, when using multi interface

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 19 Dec 2006 02:06:28 -0800

Bugs item #1618377, was opened at 2006-12-19 01:41
Message generated for change (Comment added) made by gibigaba
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1618377&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: crash
Status: Open
Resolution: None
Priority: 8
Private: No
Submitted By: Mikhail (gibigaba)
Assigned to: Daniel Stenberg (bagder)
Summary: SIGSEGV, when using multi interface

Initial Comment:
Multithread, software, that running for weeks - randomly crashes with SIGSEGV.
Valgrind reports following:

....
==13483== Thread 20:
==13483== Invalid read of size 4
==13483== at 0x4146781: Curl_done (url.c:4039)
==13483== by 0x41583C8: multi_runsingle (multi.c:1020)
==13483== by 0x4158FEE: curl_multi_perform (multi.c:1326)
....
==13483== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13483==
==13483== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==13483== Access not within mapped region at address 0x0
==13483== at 0x4146781: Curl_done (url.c:4039)
==13483== by 0x41583C8: multi_runsingle (multi.c:1020)
==13483== by 0x4158FEE: curl_multi_perform (multi.c:1326)
......

----------------------------------------------------------------------

>Comment By: Mikhail (gibigaba)
Date: 2006-12-19 15:06

Message:
Logged In: YES
user_id=1671616
Originator: YES

I'll try, after I check CVS

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2006-12-19 14:20

Message:
Logged In: YES
user_id=1110
Originator: NO

Just to clarify: are you using the multi interface in multiple threads?

Can you write up a small source code sample for us that we can work with
that would crash for you (assuming the crash is still present when you've
tested a recent CVS )?

----------------------------------------------------------------------

Comment By: Mikhail (gibigaba)
Date: 2006-12-19 14:17

Message:
Logged In: YES
user_id=1671616
Originator: YES

It downloads several files via http, through proxy at the same time, using
many threads.
I'll try CVS snapshot this week.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2006-12-19 13:01

Message:
Logged In: YES
user_id=1110
Originator: NO

So tell us more about your application and what we can do in our ends to
repepat this problem. Have you tried with a recent CVS snapshot to see if
it behaves the same?

----------------------------------------------------------------------

Comment By: Mikhail (gibigaba)
Date: 2006-12-19 04:04

Message:
Logged In: YES
user_id=1671616
Originator: YES

gcc (GCC) 4.1.1

----------------------------------------------------------------------

Comment By: Mikhail (gibigaba)
Date: 2006-12-19 04:03

Message:
Logged In: YES
user_id=1671616
Originator: YES

Linux testserver 2.6.18.2 #1 SMP Mon Nov 13 08:06:00 CST 2006 i686 i686
i386 GNU/Linux
curl version: libcurl/7.16.0 OpenSSL/0.9.7a zlib/1.2.1.2 c-ares/1.3.2
libidn/0.5.6

----------------------------------------------------------------------

Comment By: Dan Fandrich (dfandrich)
Date: 2006-12-19 01:50

Message:
Logged In: YES
user_id=236775
Originator: NO

What libcurl version, platform, OS, OS version, compiler?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1618377&group_id=976
Received on 2006-12-19

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET