Hello,
the pthread butc crashes with SIGSEGV, when I restore to a volume
which already exists. This does happen with OpenAFS 1.4.7pre4 on
i386_linux26.
Looking into the code I think butc is using the wrong function
Lp_GetRwIndex (at volser/vsprocs.c:4394). It uses the one in the
library lib/libvosadmin.a, but should use the function defined
in volser/lockprocs.c.
The following patch should solve this problem.
===============================================================================
--- ./src/tbutc/Makefile.in.orig        Mon Oct 24 21:06:37 2005
+++ ./src/tbutc/Makefile.in     Mon Apr 28 16:30:43 2008
@@ -24,7 +24,7 @@
 BUCOORDOBJS=ubik_db_if.o ../bucoord/volstub.o ../bucoord/dlq.o \
            status.o ../bucoord/bucoord_errs.o
 
-VOLSEROBJS=vsprocs.o vsutils.o
+VOLSEROBJS=vsprocs.o vsutils.o lockprocs.o
 VOLSERLIBS=${TOP_LIBDIR}/libvosadmin.a ${TOP_LIBDIR}/libafsadminutil.a
 
 LWPOBJS     =lock.o
@@ -114,6 +114,9 @@
 
 vsprocs.o: ${VOLSER}/vsprocs.c
        ${CC} ${CFLAGS} -c ${VOLSER}/vsprocs.c
+
+lockprocs.o: ${VOLSER}/lockprocs.c
+       ${CC} ${CFLAGS} -c ${VOLSER}/lockprocs.c
 
 lock.o: ${LWP}/lock.c
        ${CC} ${CFLAGS} -c ${LWP}/lock.c
===============================================================================

HW
 
-- 
Hans-Werner Paulsen             [EMAIL PROTECTED]
MPI für Astrophysik             Tel 089-30000-2602
Karl-Schwarzschild-Str. 1       Fax 089-30000-2235      
D-85741 Garching
_______________________________________________
OpenAFS-devel mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-devel

Reply via email to