rpc.gssd locks up with -vv or higher
Subsystems (2)
See https://bugzilla.redhat.com/show_bug.cgi?id=667770
Running rpc.gssd with -vvv, it will eventually hang. Back trace of hung process:
#0 0x00ae8416 in __kernel_vsyscall ()
#1 0x004be5d1 in __lll_lock_wait_private () from /lib/libc.so.6
#2 0x0044985c in _L_lock_12621 () from /lib/libc.so.6
#3 0x00447797 in malloc () from /lib/libc.so.6
#4 0x0043a398 in open_memstream () from /lib/libc.so.6
#5 0x004a9ae5 in __vsyslog_chk () from /lib/libc.so.6
#6 0x0017d15f in vsyslog (kind=512,
fmt=0x1806cc "dir_notify_handler: sig %d si %p data %p\n", args=0xbfc03938"%")
at /usr/include/bits/syslog.h:48
#7 xlog_backend (kind=512, fmt=0x1806cc "dir_notify_handler: sig %d si %p data %p\n",
args=0xbfc03938 "%") at xlog.c:150
#8 0x001777d4 in printerr (priority=2,
format=0x1806cc "dir_notify_handler: sig %d si %p data %p\n") at
err_util.c:64
#9 0x00177c9e in dir_notify_handler (sig=37, si=0xbfc0396c, data=0xbfc039ec)
at gssd_main_loop.c:66#10 <signal handler called>
#11 0x00444984 in _int_malloc () from /lib/libc.so.6 #12 0x004477a0 in malloc () from /lib/libc.so.6
#13 0x0046db77 in __alloc_dir () from /lib/libc.so.6 #14 0x0046dc5a in opendir () from /lib/libc.so.6
#15 0x0046e7ef in scandir64@@GLIBC_2.2 () from /lib/libc.so.6 #16 0x00179285 in process_pipedir () at gssd_proc.c:565 #17 update_client_list () at gssd_proc.c:594
#18 0x00177f40 in gssd_run () at gssd_main_loop.c:216 #19 0x00177bf9 in main (argc=2, argv=0xbfc04134) at gssd.c:187
Looks like malloc is getting called from a signal handler called while in a malloc call, which is verboten. Not sure what the best way around this, but it looks like dir_notify_handler cannot call printerr. I suppose this only occurs when -vv or greater is given. Path looks a little different in 1.2.5, but looks like xlog_backend still calls vsyslog which can do the same thing.
Quoted 33 lines · Orion Poplawski
See https://bugzilla.redhat.com/show_bug.cgi?id=667770
Running rpc.gssd with -vvv, it will eventually hang. Back trace of hung process:
#0 0x00ae8416 in __kernel_vsyscall () #1 0x004be5d1 in __lll_lock_wait_private () from /lib/libc.so.6 #2 0x0044985c in _L_lock_12621 () from /lib/libc.so.6 #3 0x00447797 in malloc () from /lib/libc.so.6 #4 0x0043a398 in open_memstream () from /lib/libc.so.6 #5 0x004a9ae5 in __vsyslog_chk () from /lib/libc.so.6 #6 0x0017d15f in vsyslog (kind=512, fmt=0x1806cc "dir_notify_handler: sig %d si %p data %p\n", args=0xbfc03938"%")
at/usr/include/bits/syslog.h:48
#7xlog_backend(kind=512, fmt=0x1806cc "dir_notify_handler: sig %d si %p data %p\n",args=0xbfc03938 "%") at xlog.c:150 #8 0x001777d4 in printerr (priority=2, format=0x1806cc "dir_notify_handler: sig %d si %p data %p\n") at err_util.c:64 #9 0x00177c9e in dir_notify_handler (sig=37, si=0xbfc0396c, data=0xbfc039ec) at gssd_main_loop.c:66#10 <signal handler called>
#110x00444984in_int_malloc() from/lib/libc.so.6#120x004477a0in malloc () from/lib/libc.so.6
#130x0046db77in__alloc_dir() from/lib/libc.so.6#140x0046dc5ain opendir () from/lib/libc.so.6
#150x0046e7efin scandir64@@GLIBC_2.2 () from/lib/libc.so.6#160x00179285inprocess_pipedir() at gssd_proc.c:565 #17update_client_list() at gssd_proc.c:594
#180x00177f40ingssd_run() at gssd_main_loop.c:216 #190x00177bf9in main (argc=2, argv=0xbfc04134) at gssd.c:187
Quoted 5 lines
Looks like malloc is getting called from a signal handler called while in a malloc call, which is verboten. Not sure what the best way around this, but it looks like
dir_notify_handlercannot call printerr. I suppose this only occurs when -vv or greater is given. Path looks a little different in 1.2.5, but looks likexlog_backendstill calls vsyslog which can do the same thing.
Ha, that's interesting.
Maybe we should just delete that printerr.
(If someone wanted to know when the notification came then it should be enough to add a printerr in update_client_list(), I think.)
--b.
Quoted 40 lines · J. Bruce Fields
Quoted 33 lines · Orion Poplawski
See https://bugzilla.redhat.com/show_bug.cgi?id=667770
Running rpc.gssd with -vvv, it will eventually hang. Back trace of hung process:
#0 0x00ae8416 in __kernel_vsyscall () #1 0x004be5d1 in __lll_lock_wait_private () from /lib/libc.so.6 #2 0x0044985c in _L_lock_12621 () from /lib/libc.so.6 #3 0x00447797 in malloc () from /lib/libc.so.6 #4 0x0043a398 in open_memstream () from /lib/libc.so.6 #5 0x004a9ae5 in __vsyslog_chk () from /lib/libc.so.6 #6 0x0017d15f in vsyslog (kind=512, fmt=0x1806cc "dir_notify_handler: sig %d si %p data %p\n", args=0xbfc03938"%")
at/usr/include/bits/syslog.h:48
#7xlog_backend(kind=512, fmt=0x1806cc "dir_notify_handler: sig %d si %p data %p\n",args=0xbfc03938 "%") at xlog.c:150 #8 0x001777d4 in printerr (priority=2, format=0x1806cc "dir_notify_handler: sig %d si %p data %p\n") at err_util.c:64 #9 0x00177c9e in dir_notify_handler (sig=37, si=0xbfc0396c, data=0xbfc039ec) at gssd_main_loop.c:66#10 <signal handler called>
#110x00444984in_int_malloc() from/lib/libc.so.6#120x004477a0in malloc () from/lib/libc.so.6
#130x0046db77in__alloc_dir() from/lib/libc.so.6#140x0046dc5ain opendir () from/lib/libc.so.6
#150x0046e7efin scandir64@@GLIBC_2.2 () from/lib/libc.so.6#160x00179285inprocess_pipedir() at gssd_proc.c:565 #17update_client_list() at gssd_proc.c:594
#180x00177f40ingssd_run() at gssd_main_loop.c:216 #190x00177bf9in main (argc=2, argv=0xbfc04134) at gssd.c:187Quoted 5 lines
Looks like malloc is getting called from a signal handler called while in a malloc call, which is verboten. Not sure what the best way around this, but it looks like
dir_notify_handlercannot call printerr. I suppose this only occurs when -vv or greater is given. Path looks a little different in 1.2.5, but looks likexlog_backendstill calls vsyslog which can do the same thing.
Quoted 3 lines
Ha, that's interesting.
Maybe we should just delete that printerr.
I agree... That printerr was probably useful during the initial debugging but now it is probably just noise...
steved.
Quoted 9 lines
(If someone wanted to know when the notification came then it should be enough to add a printerr in
update_client_list(), I think.)--b.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html