There it is. Reentrancy problem, calling zlog from within the SIGHUP
handler.
sighup() in bgpd does various things it shouldn't be doing :( It's too
ugly in there for a simple fix, methinks.
(gdb) bt
#0 0xffffe002 in ?? ()
#1 0x080a0969 in vzlog ()
#2 0x080a0a35 in zlog ()
#3 0x0804a102 in sighup ()
#4 <signal handler called>
#5 0xffffe000 in ?? ()
#6 0x080a0969 in vzlog ()
#7 0x080a0a35 in zlog ()
#8 0x0805c6ce in bgp_update ()
#9 0x0805d75e in bgp_nlri_parse ()
#10 0x08072aac in bgp_update_receive ()
#11 0x08073d4a in bgp_read ()
#12 0x08098e94 in thread_call ()
#13 0x0804a582 in main ()
#14 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
On Sun, Dec 28, 2003 at 06:20:24PM -0500, buytenh wrote:
> Again it hangs on a mutex (???)..
>
> [root@noc root]# ps ax | grep bgpd | grep -v grep
> 12526 ? S 7:52 /usr/sbin/bgpd -d
> [root@noc root]# strace -p 12526
> futex(0x42133ccc, FUTEX_WAIT, 2, NULL
>
>
>
handler.
sighup() in bgpd does various things it shouldn't be doing :( It's too
ugly in there for a simple fix, methinks.
(gdb) bt
#0 0xffffe002 in ?? ()
#1 0x080a0969 in vzlog ()
#2 0x080a0a35 in zlog ()
#3 0x0804a102 in sighup ()
#4 <signal handler called>
#5 0xffffe000 in ?? ()
#6 0x080a0969 in vzlog ()
#7 0x080a0a35 in zlog ()
#8 0x0805c6ce in bgp_update ()
#9 0x0805d75e in bgp_nlri_parse ()
#10 0x08072aac in bgp_update_receive ()
#11 0x08073d4a in bgp_read ()
#12 0x08098e94 in thread_call ()
#13 0x0804a582 in main ()
#14 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6
On Sun, Dec 28, 2003 at 06:20:24PM -0500, buytenh wrote:
> Again it hangs on a mutex (???)..
>
> [root@noc root]# ps ax | grep bgpd | grep -v grep
> 12526 ? S 7:52 /usr/sbin/bgpd -d
> [root@noc root]# strace -p 12526
> futex(0x42133ccc, FUTEX_WAIT, 2, NULL
>
>
>