tar -t segmentation fault

Natanael Copa natanael.copa at gmail.com
Sun Feb 25 00:43:02 UTC 2007


On Sat, 24 Feb 2007 21:10:04 +0100
Alexander Kriegisch <Alexander at Kriegisch.name> wrote:

> I always get segmentation faults in busybox 1.4.1 on my MIPS-based box
> when listing tar archives, no matter whether they are uncompressed or
> compressed with -z (gzip) or -j (bzip2). I can un-tar them without any
> problems, though.
> 
> Could ba a bug. Please acknowledge or ask me for more information. I
> think it ought to be easily reproducible.

I can confirm this on x86/uclibc. I have tested with and wihtout the
patches for 1.4.1.

gdb output:

This GDB was configured as "i386-gentoo-linux-uclibc"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) set args tar -ztf /var/cache/distfiles/dnrd-2.20.1.tar.gz
(gdb) run
Starting program: /busybox/busybox-1.4.1/busybox_unstripped tar -ztf /var/cache/distfiles/dnrd-2.20.1.tar.gz
warning: Lowest section in system-supplied DSO at 0xffffe000 is .hash at ffffe0b4

Program received signal SIGSEGV, Segmentation fault.
tar_main (argc=3, argv=0xffd77798) at archival/tar.c:835
835                             llist_t *temp = excludes->link;
(gdb) bt
#0  tar_main (argc=3, argv=0xffd77798) at archival/tar.c:835
#1  0x08048342 in run_applet_by_name (name=0xffd77b74 "tar", argc=3, 
    argv=0xffd77798) at applets/applets.c:489
#2  0x08048491 in busybox_main (argc=4, argv=0xffd77794)
    at applets/busybox.c:143
#3  0x080482fb in run_applet_by_name (name=0xffd77b61 "busybox_unstripped", 
    argc=4, argv=0xffd77794) at applets/applets.c:480
#4  0x080483bd in main (argc=-2656364, argv=0xffd77794) at applets/busybox.c:72
(gdb) 

config:
al-1.5 busybox-1.4.1 # sed 's/\#.*//; /^$/d' .config
CONFIG_HAVE_DOT_CONFIG=y
CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
CONFIG_STATIC=y
CONFIG_DEBUG=y
CONFIG_DEBUG_PESSIMIZE=y
CONFIG_NO_DEBUG_LIB=y
CONFIG_INSTALL_APPLET_SYMLINKS=y
CONFIG_PREFIX="./_install"
CONFIG_PASSWORD_MINLEN=6
CONFIG_MD5_SIZE_VS_SPEED=2
CONFIG_BUNZIP2=y
CONFIG_GUNZIP=y
CONFIG_GZIP=y
CONFIG_TAR=y
CONFIG_FEATURE_TAR_CREATE=y
CONFIG_FEATURE_TAR_BZIP2=y
CONFIG_FEATURE_TAR_LZMA=y
CONFIG_FEATURE_TAR_FROM=y
CONFIG_FEATURE_TAR_GZIP=y
CONFIG_FEATURE_TAR_COMPRESS=y
CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y
CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y
CONFIG_FEATURE_LESS_MAXLINES=
CONFIG_FEATURE_SH_IS_NONE=y
CONFIG_FEATURE_COMMAND_HISTORY=
CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=



More information about the busybox mailing list