[OpenAFS-devel] Re: 1.4.0-rc6 backup volrestore broken

Joe Buehler jbuehler@spirentcom.com
Thu, 13 Oct 2005 09:40:39 -0400


Here's the problem.  VLDB_GetEntryByName is being called without
all the arguments it expects.  It expects 4, but the code in
vsprocs.c is only passing 2.  A SEGV results.

There are two routines with this name and the wrong one is being called.
There appears to be some overlap between the libadmin/vos code
and the volser/ code and tbutc is trying to use both.

If someone knows how to fix this please jump in...
-- 
Joe Buehler

Restore
Thanks, now proceeding with tape reading operation.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1142106560 (LWP 3918)]
0x0806c5df in VLDB_GetEntryByName (cellHandle=0x80fcb44,
    namep=0x44131dac "Ì\036\023DÌ\035\023DÌ\035\023D", entryp=0x0,
st=0x73786e6c)
    at vosutils.c:205
205		*st = tst;
(gdb) bt
bt
#0  0x0806c5df in VLDB_GetEntryByName (cellHandle=0x80fcb44,
    namep=0x44131dac "Ì\036\023DÌ\035\023DÌ\035\023D", entryp=0x0,
st=0x73786e6c)
    at vosutils.c:205
#1  0x08063fc2 in UV_RestoreVolume (toserver=526000138, topart=0,
tovolid=5382,
    tovolname=0x80fcb44 "tmp.testing", flags=3, WriteData=0x804d0b8
<restoreVolumeData>,
    rock=0x4413249c "°É\017\b") at ../volser/vsprocs.c:4097
#2  0x0804d89e in restoreVolume (taskId=2000001, restoreInfo=0x80fcac0,
rparamsPtr=0x4413249c)
    at ../butc/lwps.c:1726
#3  0x0804dd67 in Restorer (newNode=0x80fc9b0) at ../butc/lwps.c:1839
#4  0x400322b6 in start_thread () from /lib/tls/libpthread.so.0
(gdb)