cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Program goes into infinite state.

From: Yuvi yuvi <testandroidos51_at_gmail.com>
Date: Wed, 18 Apr 2012 13:42:45 +0530

Hi,

Yes the program goes into the infinite loop, Following is the log, which I
have taken using *strace* command, core dump is not able to show anything.
I think there is an internal retry counter, can we set that counter value
by anyhow? please suggest me any solution.

open("/dev/urandom", O_RDONLY|O_NONBLOCK|O_NOCTTY) = 4

fstat64(4, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 9), ...}) = 0

poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 10) = 1

read(4, "n9\314l\270+\3066\33\366T\3657\262\322<\231\373\\\22\177"..., 32)
= 32

close(4) = 0

getuid32() = 0

gettimeofday({1301020875, 599243}, NULL) = 0

SYS_289(0x3, 0x293aa8, 0x288, 0x4000, 0x28f950) = 648

gettimeofday({1301020875, 600494}, NULL) = 0

SYS_291(0x3, 0x28fa80, 0x4000, 0x4000, 0x28f950) = 416

gettimeofday({1301020875, 600799}, NULL) = 0

SYS_289(0x3, 0x293aa8, 0x90, 0x4000, 0x28f950) = 144

gettimeofday({1301020875, 628418}, NULL) = 0

SYS_291(0x3, 0x28fa80, 0x4000, 0x4000, 0x28f950) = -1 EAGAIN (Resource
temporarily unavailable)

timer_delete(0x1) = 0

timer_delete(0x1) = 0

timer_delete(0x1) = 0

timer_delete(0x1) = 0

poll([{fd=3, events=POLLIN|POLLPRI, revents=POLLIN}], 1, 1000) = 1

gettimeofday({1301020876, 106384}, NULL) = 0

SYS_291(0x3, 0x28fa80, 0x4000, 0x4000, 0x28f950) = 464

SYS_289(0x3, 0x293aa8, 0x10, 0x4000, 0x28f950) = 16

gettimeofday({1301020876, 149292}, NULL) = 0

SYS_289(0x3, 0x293aa8, 0x34, 0x4000, 0x28f950) = 52

gettimeofday({1301020876, 150085}, NULL) = 0
SYS_291(0x3, 0x28fa80, 0x4000, 0x4000, 0x28f950) = -1 EAGAIN (Resource
temporarily unavailable)

>
> > Hi,
> >
> > I have wifi DD-WRT router that has USB Storage support.
> > I have configured that router to support SFTP protocol.
> > My problem is that during downloading if somebody removed the USB storage
> > then my sample program to download file goes into the infinite state.
>
> what is an infinite state? do you mean an infinete loop?
>
> I suggest you to try to run your program in a linux box. Configure your
> shell so as to produce core dumps. then run the program, remove USB storage
> to cause infinite loop. Kill your program with ctrl-c. Core will be dumped,
> then you are ready to go with launching gdb and telling us what is wrong.
> Probably it is nothing but a pourly written router SW.
>
> If the text above does not mean something to you, I do not know how you
> can solve this problem w/o hiring someone to do it for you.
>
> Thanks
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 16 Apr 2012 22:47:49 +0200 (CEST)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: the curl tool <curl-users_at_cool.haxx.se>
> Subject: Re: SFTP : Problem with special character # on target file
> Message-ID: <alpine.DEB.2.00.1204162247010.15394_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-18