Hi,

I noticed a problem of gnunet-download with SVN 5643 (2007-09-18).
Doesn't react to Ctrl+C even after a day or so of running.  Attached GDB
and did backtraces on all threads, see gdb.txt (attached).

One thread waits on another to quit via 'pthread_join'.  Other thread
waits on some mutex... looks like a deadlock.

Although I played quite a lot with gnunet-download, this only happened
once so far.

regards,

David
-- 
GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40

  4 Thread -1214596176 (LWP 5029)  0xb7e5eb3c in __nanosleep_nocancel ()
   from /lib/tls/libpthread.so.0
  3 Thread -1222984784 (LWP 5030)  0xb7e5e82e in send ()
   from /lib/tls/libpthread.so.0
  2 Thread -1231373392 (LWP 5031)  0xb7e5e189 in __lll_mutex_lock_wait ()
   from /lib/tls/libpthread.so.0
  1 Thread -1212242240 (LWP 5028)  0xb7e5a183 in pthread_join ()
   from /lib/tls/libpthread.so.0
[Switching to thread 4 (Thread -1214596176 (LWP 5029))]#0  0xb7e5eb3c in 
__nanosleep_nocancel () from /lib/tls/libpthread.so.0
#0  0xb7e5eb3c in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
#1  0xb7f90818 in PTHREAD_SLEEP (delay=0) at pthread.c:226
#2  0xb7d0825f in cron_main_method (ctx=0x804ea98) at cron.c:580
#3  0xb7e590bd in start_thread () from /lib/tls/libpthread.so.0
#4  0xb7dedace in clone () from /lib/tls/libc.so.6
[Switching to thread 3 (Thread -1222984784 (LWP 5030))]#0  0xb7e5e82e in send
    () from /lib/tls/libpthread.so.0
#0  0xb7e5e82e in send () from /lib/tls/libpthread.so.0
#1  0xb7f89053 in socket_send (s=0xb7d01eae, nc=NC_Complete, buf=0x81a8d60, 
    max=152, sent=0xb71ab038) at io.c:399
#2  0xb7d01eae in connection_write (sock=0x804f298, buffer=0x81a8d60)
    at tcpio.c:379
#3  0xb7c0492c in FS_start_search (ctx=0x804d950, target=0x0, type=1, 
    keyCount=1, keys=0x40, anonymityLevel=1, prio=1, 
    timeout=5256786001521793796, callback=0xb7f9e175 <nodeReceive>, 
    closure=0x80fd1d0) at fslib.c:277
#4  0xb7f9d90c in ECRS_downloadPartialFile (ectx=0x804f158, cfg=0x804d978, 
    uri=0x804d978, filename=0x804ee18 "[[censored]]", offset=0,
   length=[[also censored, somewhere above 600*10^6]]
    anonymityLevel=1, no_temporaries=0, 
    dpcb=0xb7faef0c <downloadProgressCallback>, dpcbClosure=0x804edb0, 
    tt=0xb7fade10 <testTerminate>, ttClosure=0xb7fade10) at download.c:1148
#5  0xb7f9df13 in ECRS_downloadFile (ectx=0x804f158, cfg=0x804d978, 
    uri=0x804ee28, filename=0x804ee18 "[[censored]]", anonymityLevel=1, 
    dpcb=0xb7faef0c <downloadProgressCallback>, dpcbClosure=0x804edb0, 
    tt=0xb7fade10 <testTerminate>, ttClosure=0x804edb0) at download.c:1289
#6  0xb7fae895 in downloadThread (cls=0x804edb0) at download.c:253
#7  0xb7e590bd in start_thread () from /lib/tls/libpthread.so.0
#8  0xb7dedace in clone () from /lib/tls/libc.so.6
[Switching to thread 2 (Thread -1231373392 (LWP 5031))]#0  0xb7e5e189 in 
__lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
#0  0xb7e5e189 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
#1  0xb7e5af79 in _L_mutex_lock_143 () from /lib/tls/libpthread.so.0
#2  0x00000000 in ?? ()
[Switching to thread 1 (Thread -1212242240 (LWP 5028))]#0  0xb7e5a183 in 
pthread_join () from /lib/tls/libpthread.so.0
#0  0xb7e5a183 in pthread_join () from /lib/tls/libpthread.so.0
#1  0xb7f90a33 in PTHREAD_JOIN_FL (handle=0x804db20, ret=0xbfff2a88, 
    file=0xb7fb36b1 "download.c", line=661) at pthread.c:148
#2  0xb7fadf96 in FSUI_stopDownload (ctx=0x804e908, dl=0x804edb0)
    at download.c:661
#3  0x0804976c in main (argc=Cannot access memory at address 0x0
) at gnunet-download.c:365
The program is running.  Quit anyway (and detach it)? (y or n) Detaching from 
program: /usr/local/bin/gnunet-download, process 5028
_______________________________________________
Help-gnunet mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnunet

Reply via email to