cURL / Mailing Lists / curl-users / Single Mail

curl-users

crash in fgets

From: Jean-Francois Bertrand <jeffy_at_broadsoft.com>
Date: Mon, 20 Nov 2006 17:12:36 -0500

I periodically get a core dump when running libcurl 7.16.0 from a
multi-threaded test program. In this test program, there are 300
threads doing http get at the same time.

Have anyone seen this?

(gdb) bt
#0 0x00002aaaab9a4446 in fgets () from /lib/libc.so.6
#1 0x00000000007ad39f in pr_next (this=0x1132643) at lcl_pr.c:209
#2 0x00000000007ad5b0 in pr_byname (this=0x2aaaaaadf520, name=0x8fe59c
"tcp") at lcl_pr.c:158
#3 0x00000000007a4e34 in pr_byname (this=0x1132643, name=0x8fe59c
"tcp") at gen_pr.c:140
#4 0x000000000079161e in getprotobyname (name=0x8fe59c "tcp") at
getprotoent.c:111
#5 0x000000000075d59a in tcpnodelay () at connect.c:641
#6 0x000000000075dd00 in Curl_connecthost () at connect.c:871
#7 0x0000000000756515 in ConnectPlease () at url.c:2225
#8 0x000000000075640b in SetupConnection () at url.c:3927
#9 0x0000000000753d42 in Curl_connect () at url.c:3986
#10 0x000000000075c058 in Curl_connect_host () at transfer.c:2164
#11 0x0000000000759625 in Curl_perform () at transfer.c:2255
#12 0x000000000074d071 in curl_easy_perform () at easy.c:479
#13 0x0000000000565f48 in NetworkClient::performGet (this=0x1132643,
curlEasyHandle=0x23fd, url=@0x0) at networkclient.cpp:294
#14 0x0000000000565ade in NetworkClient::get (this=0x1132643,
url=@0x23fd, lastModifiedDate=0, networkObject=@0x2aaa00706374,
    updatedLastModifiedDate=@0xfefefefefefefeff, maxFileAge=@0x23fd) at
networkclient.cpp:239
#15 0x000000000055372a in try_end_0_1.0.38.171 () at
networkclientadapter.cpp:39

thanks
/JF
Received on 2006-11-20