pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/49851



The following reply was made to PR pkg/49851; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: Germain Le Chapelain <german%free.fr@localhost>, gnats-bugs%NetBSD.org@localhost
Cc: adam%NetBSD.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/49851
Date: Wed, 14 Oct 2015 20:41:49 -0400

 On Oct 14,  4:08pm, german%free.fr@localhost (Germain Le Chapelain) wrote:
 -- Subject: Re: pkg/49851
 
 | 
 | so I tried once more with the version 1.1.5
 | 
 | This one compiles without any patches,
 | 
 | 
 | it still gets into that `parked' state:
 | 
 | -bash-4.3$ gtk-gnutella
 | 15-10-14 15:08:36.220 (WARNING): could not auto-tune stacktrace offsets, using d
 | 
 | 
 | When I attach GDB to it, I see the following call stack right away (no need to stop.)
 | 
 | 
 | #0  0x00007f7fef49f65a in ___lwp_park60 () from /usr/lib/libc.so.12
 | #1  0x00007f7fef80ad55 in pthread.park () from /usr/lib/libpthread.so.1
 | #2  0x00007f7fef807dbc in ?? () from /usr/lib/libpthread.so.1
 | #3  0x00007f7fef4ae271 in __locatime50 () from /usr/lib/libc.so.12
 | #4  0x00000000005ecc39 in log_handler (domain=domain@entry=0x0, 
 |     level=level@entry=G_LOG_LEVEL_WARNING, 
 |     message=0x7f7ff7f98cf8 "getgateway(): route socket failed, using the netstat command", unused_data=unused_data@entry=0x0) at log.c:1994
 | #5  0x00000000005d4a8a in gl_logv (domain=0x0, flags=G_LOG_LEVEL_WARNING, 
 |     fmt=<optimized out>, args=args@entry=0x7f7ff7fa4608) at glog.c:85
 | #6  0x00000000005d4b73 in gl_log (domain=domain@entry=0x0, 
 |     flags=flags@entry=G_LOG_LEVEL_WARNING, 
 |     format=format@entry=0x775f30 "%s(): route socket failed, using the netstat command") at glog.c:100
 | #7  0x000000000069a5f7 in getgateway (addrp=addrp@entry=0x7f7ff7fa4a40)
 |     at getgateway.c:400
 | #8  0x00000000005c90f8 in entropy_collect_gateway (ctx=0x7f7ff7fa4ad0)
 |     at entropy.c:992
 | #9  0x00000000006995ec in entropy_array_cb_collect (len=26, 
 |     ary=0x7f7ff7fa4b40, ctx=0x7f7ff7fa4ad0) at entropy.c:366
 | #10 entropy_collect_internal (digest=digest@entry=0x7f7ff7fa4ca0, 
 |     can_malloc=can_malloc@entry=1, slow=1) at entropy.c:1167
 | #11 0x0000000000699793 in entropy_do_collect (digest=0x7f7ff7fa4ca0)
 |     at entropy.c:1476
 | #12 0x00000000005c96f7 in entropy_do_fill (buffer=0xb2ca90 <aje_state+16>, 
 |     len=16) at entropy.c:1574
 | #13 0x00000000005b441d in aje_init (as=as@entry=0xb2ca80 <aje_state>)
 |     at aje.c:693
 | #14 0x00000000005b44c3 in aje_default_init () at aje.c:729
 | #15 0x000000000069c681 in once_flag_run_internal (
 |     flag=flag@entry=0xb2ca64 <aje_initialized>, 
 |     routine=routine@entry=0x5b44b5 <aje_default_init>, 
 |     recursive=recursive@entry=0) at once.c:144
 | #16 0x00000000005f5ce8 in once_flag_run_internal (recursive=0, 
 |     routine=routine@entry=0x5b44b5 <aje_default_init>, 
 |     flag=flag@entry=0xb2ca64 <aje_initialized>) at once.c:169
 | #17 once_flag_run (flag=flag@entry=0xb2ca64 <aje_initialized>, 
 |     routine=routine@entry=0x5b44b5 <aje_default_init>) at once.c:170
 | #18 0x00000000005b48d3 in aje_addrandom (src=src@entry=0xb38080 <data>, 
 |     len=len@entry=256) at aje.c:749
 | #19 0x0000000000603069 in random_add (data=data@entry=0xb38080 <data>, 
 |     datalen=datalen@entry=256) at random.c:1067
 | #20 0x000000000060316b in random_add_pool (len=2, buf=0x7f7ff7fa4ece)
 |     at random.c:735
 | #21 random_pool_append (buf=buf@entry=0x7f7ff7fa4eee, len=len@entry=2)
 |     at random.c:838
 | #22 0x00000000005c9a51 in entropy_harvest_time () at entropy.c:1726
 | #23 0x00000000005bec7b in cq_run_idle (cq=0x7f7ff7fb4000) at cq.c:1885
 | #24 0x00000000005bfa48 in cq_idle (cq=<optimized out>) at cq.c:1307
 | #25 0x00000000005ccd75 in evq_thread_main (unused_arg=unused_arg@entry=0x0)
 |     at evq.c:205
 | #26 0x000000000062c252 in thread_launch_trampoline (arg=0x7f7ff7fb9020)
 |     at thread.c:7482
 | #27 0x00007f7fef80a9cc in ?? () from /usr/lib/libpthread.so.1
 | #28 0x00007f7fef483d90 in ?? () from /usr/lib/libc.so.12
 | #29 0x0000000000aae770 in prngs ()
 | #30 0x000000000078d018 in assertion_data_.16534 ()
 | #31 0x00000000000002d2 in ?? ()
 | #32 0x00007f7ff7fb1108 in ?? ()
 | 
 | 
 | So it's really locked onto here then ?
 | 
 | 
 | 	now = tv.tv_sec;
 |   =>	ct = localtime(&now);
 | 
 | 	prefix = log_prefix(level);
 | 
 | 
 | Is there a problem calling localtime from within a thread ?
 | 
 | or from a handler or something ?
 
 localtime() is not async-signal-safe...
 
 http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html
 Please install the debugging symbol libraries for the base system or build with
 MKDEBUG=yes.
 
 christos
 


Home | Main Index | Thread Index | Old Index