tar SEGFAULT problem

tar SEGFAULT problem

Post by Karlos Z. Smi » Sun, 01 Dec 1996 04:00:00

Computer:       Dell Optiplex GMT+ 5100 (Pentium 100)
RAM:            64MB
NIC:            Integrated 3Com 3C509b-tpo
Distribution:   Slackware '96
tar version:    GNU 1.11.8
Command:        tar -tvf sprite:/dev/st0
Problem:        Anytime I try to execute a tar statement that uses a
remote machine tar SEGFAULTs and dumps core on me.


1. tar segfaults reading remote tape device based on TAPE variable


I've found a strange behavior of Gnu tar 1.13 (used as provided for
RedHat Linux 7.2, versions 1.13.19, 1.13.25.

If I put a remote tape drive designation into TAPE variable, like:

and then invoke:

It fails immediately returning Segmentation Fault (core dumped)
The output of "gdb /bin/tar core" is given below.

But, quite strangely, if I use "-f" option, everything is working FINE:

I'm not sure whether this is related to 'tar' itself or somehow to the
system, as the same procedure using tar 1.13.17 on a Solaris machine
works fine, both with and without "-f $TAPE" option.

with best regards, Michal.


  Warsaw University Observatory, Warszawa, POLAND

Core was generated by `tar x'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x400b7d24 in __memchr () at __memchr:-1
-1      __memchr: No such file or directory.
        in __memchr
(gdb) where
#0  0x400b7d24 in __memchr () at __memchr:-1
#1  0xbffff374 in ?? ()
#2  0x08055b15 in strcpy () at strcpy:-1
#3  0x0805dac6 in strcpy () at strcpy:-1
#4  0x4004b657 in __libc_start_main (main=0x805d94c <strcpy+80480>,
    ubp_av=0xbffff374, init=0x8049794, fini=0x80656a0 <__umoddi3+928>,
    rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffff36c)
    at ../sysdeps/generic/libc-start.c:129


  Warsaw University Observatory, Warszawa, POLAND

2. Cluster Patches and 1.1.0

3. tar 1.11.8 segfaults in 2.0.32

4. RS/6000 Assembler instructions

5. tar problems - tar:couldn't get uname for uid 5200 - problems installing emacs 19.20

6. newbie can't add user

7. tar -xvf mozilla.tar = tar: directory checksum error

8. VA - Senior Unix Software Design Engineer - Wanted!!

9. Wanted: rcmd host tar x_?_vqf file.tar file1 ... fileN | tar xvf -

10. RH5 problems with tar (yes, tar!!)

11. un-tar src.tar.gz problem

12. Lone-Tar / Tar / Tape backup problems

13. Segfault problems.