Re: Error 0

Daniel Grund <[email protected]> Wed, 16 Jan 2008 21:19:14 +0100
Newsgroups gmane.comp.archivers.star.user
Message-ID <[email protected]>
On 08.01.2008 11:23, Joerg Schilling wrote:

> > I call star-1.5a87 like this:
> >
> > star c -silent -no-statistics -M -multivol new-volume-script="/usr/local/bin/yacdbak.cdrecord root 1 noburn" VOLHDR="FreeBSD 7.0-RC1 2008-01-08 03:20+0100 Level 1" -dump level=1 -dumpmeta tardumps=/var/db/yacdbak/root.snapshots -wtardumps -p -match-tree -tsize=66534 -no-fifo -nodump artype=e xustar -sparse file=/var/tmp/yacdbak.image fs-name=/ dumpdate=/var/tmp/timestamp -dodesc -not .snap -not lost+found -C=/.snap/backupmount .

> -	You are not using star correctly.

> - You found a bug: star should not allow you to specify more than
>   one start directory.

> -	I recommend to first clean up the command line and check whether
> 	the incorrect command line is the reason for the problem.

Tweaking the command line did not help. I called star under gdb:

Starting program: /usr/local/bin/star -c -silent -no-statistics -M -multivol new-volume-script="/root/bin/yacdbak/bin/yacdbak.cdrecord root 1 noburn" VOLHDR="FreeBSD 7.0-RC1 2008-01-08 14:17+0100 Level 1" -dump level=1 -dumpmeta tardumps=/var/db/yacdbak/root.snapshots -wtardumps -p -match-tree -tsize=133068 -no-fifo -nodump artype=exustar -sparse file=/tmp/secure/yacdbak.image fs-name=/ dumpdate=/tmp/secure/timestamp -dodesc -not pattern=.snap -C "/.snap/backupmount" .
Type of this level 1P dump: partial
Date of this level 1P dump: Tue Jan  8 14:17:16 2008
Date of last level 0P dump: Fri Nov 30 16:44:31 2007
/usr/local/bin/star: Error 0. Error moving extended header '././@PaxHeader'.

Program received signal SIGSEGV, Segmentation fault.
movebytes (fromv=0x28300000, tov=0x28205800, cnt=10240) at movebytes.c:57
57                                              DO8 (*tol++ = *froml++);
(gdb) bt
#0  movebytes (fromv=0x28300000, tov=0x28205800, cnt=10240) at movebytes.c:57
#1  0x0806dc13 in move_to_arch (move=0xbfbf2a48, p=0x28205800 "", amount=10240)
    at movearch.c:74
#2  0x0805d851 in cr_file (info=0xbfbf2c54, func=0x806dbe0 <move_to_arch>,
    arg=0xbfbf2a48, amt=10240, text=0x808ac95 "moving extended header") at create.c:1321
#3  0x080588f8 in write_xhdr (type=Variable "type" is not available.
) at xheader.c:344
#4  0x0805917c in info_to_xhdr (info=0xbfbf53b4, ptb=0xbfbf3208) at xheader.c:549
#5  0x08053fbe in put_tcb (ptb=0xbfbf3208, info=0xbfbf53b4) at header.c:1098
#6  0x0805edf4 in createi (
    sname=0xbfbf4fb3 "usr/local/lib/perl5/site_perl/5.8.8/mach/auto",
    name=0xbfbf4fb3 "usr/local/lib/perl5/site_perl/5.8.8/mach/auto", namlen=45,
    info=0xbfbf53b4, last=0xbfbf546c) at create.c:1520
#7  0x0805f237 in createi (sname=0xbfbf62f3 "usr/local/lib/perl5/site_perl/5.8.8/mach",
    name=0xbfbf62f3 "usr/local/lib/perl5/site_perl/5.8.8/mach", namlen=41,
    info=0xbfbf66f4, last=0xbfbf67ac) at create.c:1639
#8  0x0805f237 in createi (sname=0xbfbf7633 "usr/local/lib/perl5/site_perl/5.8.8",
    name=0xbfbf7633 "usr/local/lib/perl5/site_perl/5.8.8", namlen=36, info=0xbfbf7a34,
    last=0xbfbf7aec) at create.c:1639
#9  0x0805f237 in createi (sname=0xbfbf8973 "usr/local/lib/perl5/site_perl",
    name=0xbfbf8973 "usr/local/lib/perl5/site_perl", namlen=30, info=0xbfbf8d74,
    last=0xbfbf8e2c) at create.c:1639
#10 0x0805f237 in createi (sname=0xbfbf9cb3 "usr/local/lib/perl5",
    name=0xbfbf9cb3 "usr/local/lib/perl5", namlen=20, info=0xbfbfa0b4, last=0xbfbfa16c)
    at create.c:1639
#11 0x0805f237 in createi (sname=0xbfbfaff3 "usr/local/lib",
    name=0xbfbfaff3 "usr/local/lib", namlen=14, info=0xbfbfb3f4, last=0xbfbfb4ac)
    at create.c:1639
#12 0x0805f237 in createi (sname=0xbfbfc333 "usr/local", name=0xbfbfc333 "usr/local",
    namlen=10, info=0xbfbfc734, last=0xbfbfc7ec) at create.c:1639
#13 0x0805f237 in createi (sname=0xbfbfd675 "usr", name=0xbfbfd675 "usr", namlen=4,
    info=0xbfbfda74, last=0xbfbfdb2c) at create.c:1639
#14 0x0805f237 in createi (sname=0xbfbfe8a4 ".", name=0xbfbfe8a4 ".", namlen=2,
    info=0xbfbfe178, last=0x0) at create.c:1639
#15 0x0805fb63 in create (name=0xbfbfe8a4 ".", Hflag=0, forceadd=1) at create.c:465
#16 0x0804bdd6 in star_create (ac=1, av=0xbfbfe5b8) at star_fat.c:766
#17 0x08051751 in main (ac=0, av=0x0) at star_fat.c:537


The command line does not seem to cause the problem.


I recompiled star again with smake COPTX="-ggdb -O0" LOPTX=-ggdb and
the sigsegv went away. Previously I had let smake choose the
optimization level itself. No CLFAGS was set in the shell or in
/etc/make.conf.

Could star be incompatible with this gcc:

gcc (GCC) 4.2.1 20070719  [FreeBSD]

> > I've already tried to unlimit core file size and to recompile with: 
> > smake COPTX=-g LDOPTX=-g
> >
> > star still does not dump core.

> Did you install star suid root and not call it as root?

No, star is not installed suid root, but I call it as root.


Daniel