[OpenAFS-devel] client klog coreing (Segmentation Fault) on openafs-1.2.13
Cynthia Oldham
cynthia.oldham@contec.ca
Mon, 8 May 2006 17:37:46 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_002A_01C672C6.1E446E10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hi,
I am working on my first afs cell and have run into some troubles with klog
coreing on the client?
First Background:
I have an openafs server (bayan) which is FedoraCore5 x86_64 runing
openafs-1.4.1rc10 (I recompiled the RPMs from the Fedora Core 5 .src.rpm).
I also have a client (foxglove) which is exactly the same OS configuration
FedoraCore5 x86_64, runing openafs-1.4.1rc10. These two seem to work okay
together (only basic functionality tested, e.g. logging in with klog, get
token, reading and writting files.) They were installed following the
Quick Beginnings documentation, (With a little bit of head scratching).
They are therefore using kaserver.
I also have a Redhat 8.0 Server (named chengdu) that needs to interact with
the AFS server. So I re-compiled the openafs-1.2.13-rh8.0.1.src.rpm to
make new RPMS. When I did this I made two changes to the SPEC file:
-- Turned off krb5support
-- Turned on bootkernelsupport
"
# Set 'krb5support' to 1 if you want to build the openafs-krb5 package
# to distribute aklog and asetkey
%define krb5support 0
# Set 'bootkernelsupport' to 1 if you want to build the
# kernel module for RedHat BOOT Kernels on x86.
%define bootkernelsupport 1
"
This cell client seems to be okay (eg read the filesystem), except that klog
cores
"[root@chengdu ]# klog admin
Password:
Segmentation fault (core dumped)
" (See gdb output below)
Also " kas examine -name admin -admin_username admin" also coredumps (with a
very similar "gdb where").
Questions:
Do I need krb5support enabled for klog?
Is there a RedHat RPM that I need to have installed for klog to work?
Instead of 1.2.13 should I be trying to get 1.4.1 to make on the redhat 8.0?
Thank-you for your thoughts on the matter,
Cynthia Oldham
Systems Engineer, Contec Innovations.
-- Log from gdb on klog core --
[root@chengdu bin]# gdb klog core
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...(no debugging symbols
found)...
Core was generated by `klog'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libresolv.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/libresolv.so.2
< trace deleted, Loading and reading
Reading symbols from /usr/lib/sasl/libplain.so...done.
Loaded symbols for /usr/lib/sasl/libplain.so
#0 0x42073cd0 in _int_malloc () from /lib/i686/libc.so.6
(gdb) where
#0 0x42073cd0 in _int_malloc () from /lib/i686/libc.so.6
#1 0x42073155 in malloc () from /lib/i686/libc.so.6
#2 0x0806f802 in xdr_array ()
#3 0x0806eeb1 in xdr_array ()
#4 0x0806e653 in xdr_array ()
#5 0x08061a45 in strcpy ()
#6 0x0804afc2 in strcpy ()
#7 0x0804e73a in strcpy ()
#8 0x0804be4a in strcpy ()
#9 0x0804c149 in strcpy ()
#10 0x0804a1d6 in strcpy ()
#11 0x08073e27 in xdr_array ()
#12 0x08049ddc in strcpy ()
#13 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) quit
------=_NextPart_000_002A_01C672C6.1E446E10
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2873" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D777114523-08052006>I am =
working on my=20
first afs cell and have run into some troubles with klog coreing on the=20
client?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D777114523-08052006>First=20
Background:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D777114523-08052006>I have =
an openafs=20
server (bayan) which is FedoraCore5 x86_64 runing =
openafs-1.4.1rc10 (I=20
recompiled the RPMs from the Fedora Core 5 .src.rpm). I also have =
a client=20
(foxglove) which is exactly the same OS =
configuration FedoraCore5=20
x86_64, runing openafs-1.4.1rc10. These two seem to work okay =
together=20
(only basic functionality tested, e.g. logging in with klog, get token, =
reading=20
and writting files.) They were=20
installed following the Quick Beginnings documentation, (With a little =
bit of=20
head scratching). They are therefore using=20
kaserver.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D777114523-08052006>I also =
have a Redhat=20
8.0 Server (named chengdu) that needs to interact with the AFS=20
server. So I re-compiled the =
openafs-1.2.13-rh8.0.1.src.rpm to=20
make new RPMS. When I did this I made two changes to the =
SPEC=20
file:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D777114523-08052006>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006> &nbs=
p; =20
-- Turned off krb5support</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006> &nbs=
p; =20
-- Turned on bootkernelsupport</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006>"</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D777114523-08052006># Set =
'krb5support'=20
to 1 if you want to build the openafs-krb5 package<BR># to distribute =
aklog and=20
asetkey<BR>%define krb5support 0</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D777114523-08052006># Set=20
'bootkernelsupport' to 1 if you want to build the<BR># kernel module for =
RedHat=20
BOOT Kernels on x86.<BR>%define bootkernelsupport 1</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006>"</SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D777114523-08052006>This =
cell client=20
seems to be okay (eg read the filesystem), except that klog=20
cores</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D777114523-08052006>"[root@chengdu ]#=20
klog admin<BR>Password:<BR>Segmentation fault (core dumped)<BR>" =
(See gdb=20
output below)</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D777114523-08052006>Also " =
kas examine=20
-name admin -admin_username admin" also coredumps (with a very similar =
"gdb=20
where").</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006>Questions:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D777114523-08052006>Do I =
need=20
krb5support enabled for klog?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D777114523-08052006>Is =
there a RedHat=20
RPM that I need to have installed for klog to work?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D777114523-08052006>Instead of 1.2.13=20
should I be trying to get 1.4.1 to make on the redhat =
8.0?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D777114523-08052006>Thank-you for your=20
thoughts on the matter, </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D777114523-08052006></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D777114523-08052006>Cynthia=20
Oldham</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D777114523-08052006>Systems Engineer,=20
Contec Innovations.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><SPAN class=3D777114523-08052006><FONT face=3DArial size=3D2>-- Log =
from gdb on=20
klog core --</FONT></SPAN></DIV>
<DIV><FONT face=3DArial size=3D2>[root@chengdu bin]# gdb klog =
core<BR>GNU gdb Red=20
Hat Linux (5.2.1-4)<BR>Copyright 2002 Free Software Foundation, =
Inc.<BR>GDB is=20
free software, covered by the GNU General Public License, and you =
are<BR>welcome=20
to change it and/or distribute copies of it under certain =
conditions.<BR>Type=20
"show copying" to see the conditions.<BR>There is absolutely no warranty =
for=20
GDB. Type "show warranty" for details.<BR>This GDB was configured =
as=20
"i386-redhat-linux"...(no debugging symbols found)...<BR>Core was =
generated by=20
`klog'.<BR>Program terminated with signal 11, Segmentation =
fault.<BR>Reading=20
symbols from /lib/libresolv.so.2...(no debugging symbols=20
found)...done.<BR>Loaded symbols for /lib/libresolv.so.2<BR><SPAN=20
class=3D777114523-08052006></SPAN><<SPAN class=3D777114523-08052006> =
trace=20
deleted, Loading and reading </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D777114523-08052006>Reading symbols from=20
/usr/lib/sasl/libplain.so...done.<BR>Loaded symbols for=20
/usr/lib/sasl/libplain.so<BR></SPAN></FONT><FONT face=3DArial =
size=3D2>#0 =20
0x42073cd0 in _int_malloc () from /lib/i686/libc.so.6<BR>(gdb) =
where<BR>#0 =20
0x42073cd0 in _int_malloc () from /lib/i686/libc.so.6<BR>#1 =
0x42073155 in=20
malloc () from /lib/i686/libc.so.6<BR>#2 0x0806f802 in xdr_array=20
()<BR>#3 0x0806eeb1 in xdr_array ()<BR>#4 0x0806e653 in =
xdr_array=20
()<BR>#5 0x08061a45 in strcpy ()<BR>#6 0x0804afc2 in strcpy=20
()<BR>#7 0x0804e73a in strcpy ()<BR>#8 0x0804be4a in strcpy=20
()<BR>#9 0x0804c149 in strcpy ()<BR>#10 0x0804a1d6 in strcpy =
()<BR>#11=20
0x08073e27 in xdr_array ()<BR>#12 0x08049ddc in strcpy ()<BR>#13 =
0x420158d4 in=20
__libc_start_main () from /lib/i686/libc.so.6<BR>(gdb)=20
quit</FONT></DIV></BODY></HTML>
------=_NextPart_000_002A_01C672C6.1E446E10--