[OpenAFS] klog Hang on PowerPC Linux

Mike Dopheide dopheide@ncsa.uiuc.edu
Fri, 13 Oct 2006 11:41:08 -0500 (CDT)


If you run klog with a username argument does it segfault after entering a 
password?

klog dopheide
Password:
Segmentation fault (core dumped)

We've seen a hang without the username and a segfault with on RHEL3.  This 
was after building OpenAFS 1.4.2-fc4 from a source rpm that was built on 
RHEL4 (found on openafs.org).

end of strace...
stat64("/usr/vice/etc/CellServDB", {st_mode=S_IFREG|0644, st_size=30175, 
...}) = 0
stat64("", 0xbfff1fac)                  = -1 ENOENT (No such file or 
directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++

I haven't had time to look at it anymore.  It was a production system so I 
copied in 'klog' from 1.2.13 for the time being.

-Mike

>   I am running openafs-1.4.2~fc4-2 on PowerPC Debian. I have a strange
> problem that when trying to
> klog, it hangs after I enter the password. The strace gives the following
> result before it hangs:
>
> gettimeofday({1160366363, 231048}, NULL) = 0
> time(NULL)                              = 1160366363
> gettimeofday({1160366363, 231196}, NULL) = 0
> time(NULL)                              = 1160366363
> sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(7004),
> sin_addr=inet_addr("171.64.7.246")},
> msg_iov(2)=[{"E)\311\33\24\2566\220\0\0\0\1\0\0\0\0\0\0\0\2\2!\0\0\0"...,
> 28}, {"\0\0\0\0\0\0\0\2\0\0\0\1\0\0\0\0\10\0\0\0\0\0\0\26<\0\0"..., 37}],
> msg_controllen=0, msg_flags=0}, 0) = 65
> time(NULL)                              = 1160366363
> time(NULL)                              = 1160366363
> time(NULL)                              = 1160366363
> time(NULL)                              = 1160366363
> stat64("/etc/openafs/CellServDB", {st_mode=S_IFREG|0644, st_size=30175,
> ...}) = 0
> time(NULL)                              = 1160366363
> stat64("/etc/openafs/CellServDB", {st_mode=S_IFREG|0644, st_size=30175,
> ...}) = 0
> stat64("/etc/openafs/CellServDB", {st_mode=S_IFREG|0644, st_size=30175,
> ...}) = 0
> stat64("rx_Listener/CellServDB", 0x7ff0da48) = -1 ENOENT (No such file or
> directory)
>
>  Can anyone help me?
>
> Thanks,
> Guanglei
>