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: Germain Le Chapelain <german%free.fr@localhost>
To: 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, 21 Oct 2015 17:12:01 +0000
christos%zoulas.com@localhost (Christos Zoulas) writes:
> | > 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.
> |
> | Thanks !
> |
> |
> | I deleted the offending lines.
> |
> | Now I get similar results with getaddrinfo()
> |
> |
> | [Switching to LWP 1]
> | 0x00007f7fef49f65a in ___lwp_park60 () from /usr/lib/libc.so.12
> | (gdb) bt
> | #0 0x00007f7fef49f65a in ___lwp_park60 () from /usr/lib/libc.so.12
> | #1 0x00007f7fef80ad55 in pthread.park () from /usr/lib/libpthread.so.1
> | #2 0x00007f7fef807f43 in ?? () from /usr/lib/libpthread.so.1
> | #3 0x00007f7fef4f31b3 in nsdispatch () from /usr/lib/libc.so.12
> | #4 0x00007f7fef4db0ea in getaddrinfo () from /usr/lib/libc.so.12
> | #5 0x00000000005e0761 in resolve_hostname (net=NET_TYPE_NONE,
> | host=0x7f7ff7efa0d0 "germ") at host_addr.c:1315
> | #6 name_to_host_addr (host=host@entry=0x7f7ff7efa0d0 "germ",
> | net=net@entry=NET_TYPE_NONE) at host_addr.c:1456
> | #7 0x00000000005c9042 in entropy_collect_host (ctx=0x7f7ff7fa4ad0)
> | at entropy.c:1012
> | #8 0x000000000069952c in entropy_array_cb_collect (len=26,
> | ary=0x7f7ff7fa4b40, ctx=0x7f7ff7fa4ad0) at entropy.c:366
> | #9 entropy_collect_internal (digest=digest@entry=0x7f7ff7fa4ca0,
> | can_malloc=can_malloc@entry=1, slow=1) at entropy.c:1167
> | #10 0x00000000006996d3 in entropy_do_collect (digest=0x7f7ff7fa4ca0)
> | at entropy.c:1476
> | #11 0x00000000005c96f7 in entropy_do_fill (buffer=0xb2ca90 <aje_state+16>,
> | len=16) at entropy.c:1574
> | #12 0x00000000005b441d in aje_init (as=as@entry=0xb2ca80 <aje_state>)
> | at aje.c:693
> | #13 0x00000000005b44c3 in aje_default_init () at aje.c:729
> | #14 0x000000000069c5c1 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
> | #15 0x00000000005f5c28 in once_flag_run_internal (recursive=0,
> | routine=routine@entry=0x5b44b5 <aje_default_init>,
> | flag=flag@entry=0xb2ca64 <aje_initialized>) at once.c:169
> | #16 once_flag_run (flag=flag@entry=0xb2ca64 <aje_initialized>,
> | routine=routine@entry=0x5b44b5 <aje_default_init>) at once.c:170
> | #17 0x00000000005b48d3 in aje_addrandom (src=src@entry=0xb38080 <data>,
> | len=len@entry=256) at aje.c:749
> | #18 0x0000000000602fa9 in random_add (data=data@entry=0xb38080 <data>,
> | datalen=datalen@entry=256) at random.c:1067
> | #19 0x00000000006030ab in random_add_pool (len=2, buf=0x7f7ff7fa4ece)
> | at random.c:735
> | #20 random_pool_append (buf=buf@entry=0x7f7ff7fa4eee, len=len@entry=2)
> | at random.c:838
> | #21 0x00000000005c9a51 in entropy_harvest_time () at entropy.c:1726
> | #22 0x00000000005bec7b in cq_run_idle (cq=0x7f7ff7fb4000) at cq.c:1885
> | #23 0x00000000005bfa48 in cq_idle (cq=<optimized out>) at cq.c:1307
> | #24 0x00000000005ccd75 in evq_thread_main (unused_arg=unused_arg@entry=0x0)
> | at evq.c:205
> | #25 0x000000000062c192 in thread_launch_trampoline (arg=0x7f7ff7fb9020)
> | at thread.c:7482
> | #26 0x00007f7fef80a9cc in ?? () from /usr/lib/libpthread.so.1
> |
> |
> | One other thing too: my getaddrinfo wasn't able to find "germ",
> | the name returned by calls to `hostname'.
> |
> | I added it to my /etc/hosts and it seemed to do the trick,
> | however gtk-gnutella still hangs :(
>
> Do you know where it hangs? In getaddrinfo() like you are showing above?
I think so !
This is exactly the call stack I see in gdb when attaching to the process after waiting
a few minutes of nothing.
I can try with the debug on from your earlier suggestion,
From the look of it it seems more precisely locked in that nsdispatch() function,
Germain
--
Germain
http://german.free.fr
Home |
Main Index |
Thread Index |
Old Index