curl-users
Problem in Curl_connecthost() .
Date: Mon, 21 Jul 2003 13:31:36 +0200
Hello,
I have been using the curl library on RedHat 7.2 and during load
test (trafic) I have some crash (core) on
curl library at specific time (eg: 22:00 , 15:00). I don't know why :
Is there some trouble on the DNS at this time? or sometime
special on the
system that make something wrong when we call the request
gethostbyname_r() ?
Core result:
where
#0 0x400a6a01 in __kill () from /lib/i686/libc.so.6
#1 0x4002a5bb in raise (sig=6) at signals.c:65
#2 0x400a7f82 in abort () at ../sysdeps/generic/abort.c:88
#3 0x080954a2 in allsig (signum=11) at ../main/rs_main.c:135
#4 0x4002a8d5 in pthread_sighandler (signo=11, ctx={gs = 231, __gsh =
0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, __dsh = 0, edi =
136608544, esi = 1211102695, ebp = 1211102564, esp = 1211102412, ebx =
1181771448, edx = 135986336, ecx = 0, eax = 16, trapno = 14, err = 4,
eip = 134773073, cs = 35, __csh = 0, eflags = 66118, esp_at_signal =
1211102412, ss = 43, __ssh = 0, fpstate = 0x482ff250, oldmask =
2147483648, cr2 = 16}) at signals.c:97
#5 <signal handler called>
#6 0x08087951 in Curl_connecthost (conn=0x467066b8,
remotehost=0x81afca0, port=8080, sockconn=0x46706958, addr=0x482ff598,
connected=0x482ff5e7 "") at connect.c:579
#7 0x0807e921 in ConnectPlease (conn=0x467066b8, hostaddr=0x81afca0,
connected=0x482ff5e7 "") at url.c:1565
#8 0x080800e9 in CreateConnection (data=0x8247b20,
in_connect=0x482ff834) at url.c:2783
#9 0x080801a4 in Curl_connect (data=0x8247b20, in_connect=0x482ff834)
at url.c:2822
#10 0x08086f06 in Curl_perform (data=0x8247b20) at transfer.c:1561
#11 0x08079d4a in curl_f_ProcessingThread (p=0x46d07814) at
../curl/curl_f.c:256
#12 0x40027b9c in pthread_start_thread (arg=0x482ffbe0) at manager.c:274
remotehost (struct Curl_dns_entry *) 0x81afca0
remotehost->addr = 0x81e0e60
remotehost->timestamp = 1075496496
remotehost->inuse = 16
remotehost->addr->hname = 0x22563544 ,Error reading address ...>
remotehost->addr->h_aliases = 0x11
remotehost->addr->h_addrtype = 136368408
remotehost->addr->h_length = 135986328
remotehost->addr->h_addr_list = 0x10 ---------> NOK
the value for h_addr_list is incorrect and when we made the test
if(!remotehost->addr->h_addr_list[0])
in the procedure Curl_connecthost in connect.c we have a crash ...
If you have some idea to fix or to prevent this problem?
Thanks,
Eric.
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
Received on 2003-07-21