[OpenAFS-devel] butc segfaults on dump

Ulrich Seidl Ulrich.Seidl@muneda.com
Mon, 23 Oct 2006 15:31:51 +0200


Since I've upgraded to openafs 1.4.2, the butc process segfaults every
time when i try do dump a volumeset (/usr/sbin/backup dump -volumeset
everything -dump /weekly -localauth). The butc is always started with
the arguments "-localauth -noautoquery -debuglevel 2"

When running the stripped butc (as from the compilation of the RedHat ES
3.0 SRPM) in gdb, after submitting the dump job I get:
Dump everything.weekly
Dump everything.weekly (DumpID 1161607414)
Warning: Tape error while reading label (will proceed with dump)
     butm: no label on tape: Input/output error

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1281459280 (LWP 2143)]
0x080aaeb3 in xdr_reference ()
(gdb) bt
#0  0x080aaeb3 in xdr_reference ()
#1  0x080ab164 in xdr_reference ()
#2  0x080540d1 in ?? ()
#3  0xb39e5450 in ?? ()
#4  0x453cb8fd in ?? ()
#5  0xffffff88 in ?? ()
#6  0x00000000 in ?? ()

When running the openafs-1.4.2/src/tbutc/butc within gdb, after
submitting the job, i get:
Dump everything.weekly
Dump everything.weekly (DumpID 1161609050)
Warning: Tape error while reading label (will proceed with dump)
     butm: no label on tape: Input/output error

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1281459280 (LWP 23281)]
0x080aaeb3 in ktimeDate_FromInt32 (timeSecs=3D-1281469476,
ktimePtr=3D0x80d68a0) at kreltime.c:131
131         ktimePtr->sec =3D timePtr->tm_sec;
(gdb) bt
#0  0x080aaeb3 in ktimeDate_FromInt32 (timeSecs=3D-1281469476,
ktimePtr=3D0x80d68a0) at kreltime.c:131
#1  0x080ab164 in Add_RelDate_to_Time (relDatePtr=3D0xb39e5450,
atime=3D-1281469476) at kreltime.c:299
#2  0x080540d1 in calcExpirationDate (expType=3D56, expDate=3D-1281469476=
,
createTime=3D1161609056) at ../butc/dump.c:162
#3  0x08055de1 in getDumpTape (dparamsPtr=3D0xb39e6d80, interactiveFlag=3D=
0,
append=3D0) at ../butc/dump.c:1753
#4  0x0805571b in Dumper (nodePtr=3D0x8988258) at ../butc/dump.c:1229
#5  0x00ab8dd8 in start_thread () from /lib/tls/libpthread.so.0
#6  0x004d1d1a in clone () from /lib/tls/libc.so.6

When running the openafs-1.4.2/src/butc/butc within gdb, after
submitting the job, i get:
Dump everything.weekly
Dump everything.weekly (DumpID 1161608268)
Detaching after fork from child process 23204.
Detaching after fork from child process 23205.
Warning: Tape error while reading label (will proceed with dump)
     butm: no label on tape: Input/output error

Program received signal SIGSEGV, Segmentation fault.
0x0809ebf7 in ktimeDate_FromInt32 (timeSecs=3D-1219745464,
ktimePtr=3D0x80c9600) at kreltime.c:131
131         ktimePtr->sec =3D timePtr->tm_sec;
(gdb) bt
#0  0x0809ebf7 in ktimeDate_FromInt32 (timeSecs=3D-1219745464,
ktimePtr=3D0x80c9600) at kreltime.c:131
#1  0x0809eea8 in Add_RelDate_to_Time (relDatePtr=3D0xb74c29bc,
atime=3D-1219745464) at kreltime.c:299
#2  0x080532c5 in calcExpirationDate (expType=3D55, expDate=3D-1219745464=
,
createTime=3D1161608275) at dump.c:162
#3  0x08054fd1 in getDumpTape (dparamsPtr=3D0xb74c42ec, interactiveFlag=3D=
0,
append=3D0) at dump.c:1753
#4  0x0805490b in Dumper (nodePtr=3D0x92c0810) at dump.c:1229
#5  0x0809aa9c in Create_Process_Part2 () at lwp.c:797
#6  0x0809b091 in savecontext (ep=3D0xb74c2948, savearea=3D0x20a8,
sp=3D0xb7526c94 "=EF=BF=BDlR=EF=BF=BDN=EF=BF=BD\005\b\\oR=EF=BF=BD=EF=BF=BD=
lR=EF=BF=BD=EF=BF=BDlR=EF=BF=BD") at process.c:188
#7  0x0809723e in rx_WriteProc32 (call=3D0x8093ce9, value=3D0x92be760) at
rx_rdwr.c:895
#8  0xb7526ce4 in ?? ()
#9  0xb7526f5c in ?? ()
#10 0x00000000 in ?? ()

Any ideas?

Ulrich