xfs
[Top] [All Lists]

[Bug 320] xfsinvutil -i crash with segfault

To: xfs-master@xxxxxxxxxxx
Subject: [Bug 320] xfsinvutil -i crash with segfault
From: bugzilla-daemon@xxxxxxxxxxx
Date: Fri, 26 Mar 2004 00:14:46 -0800
Sender: linux-xfs-bounce@xxxxxxxxxxx
http://oss.sgi.com/bugzilla/show_bug.cgi?id=320





------- Additional Comments From Nicolas.Kowalski@xxxxxxx  2004-26-03 00:14 PDT 
-------
After tweaking the Makefile to make xfsinvutil build with electric-fence
(-lpthread was missing to the linker), here is a gdb backtrace:

# gdb /usr/sbin/xfsinvutil
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) set args -i
(gdb) r
Starting program: /usr/sbin/xfsinvutil -i
[New Thread 1024 (LWP 2423)]

  Electric Fence 2.1 Copyright (C) 1987-1998 Bruce Perens.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 2423)]
0x400e1d85 in mempcpy () from /lib/libc.so.6
(gdb) bt
#0  0x400e1d85 in mempcpy () from /lib/libc.so.6
#1  0x400d8488 in _IO_default_xsputn () from /lib/libc.so.6
#2  0x400b90eb in vfprintf () from /lib/libc.so.6
#3  0x400d00c3 in vsprintf () from /lib/libc.so.6
#4  0x400c040d in sprintf () from /lib/libc.so.6
#5  0x080500dc in generate_stobj_menu (startnode=0x401a1ff4, level=2, 
    StObjFileName=0x401a9fb8
"/var/lib/xfsdump/inventory/6514a9bc-4180-40d2-9f94-59c2d590b3b7.StObj") at
stobj.c:437
#6  0x0804e8b2 in generate_invidx_menu (
    inv_path=0x80545a0 "/var/lib/xfsdump/inventory", startnode=0x40193ff4, 
    level=1, 
    idxFileName=0x40199fb4
"/var/lib/xfsdump/inventory/c184a2dc-6b9b-4d01-8181-c6fd34daa176.InvIndex") at
invidx.c:973
#7  0x0804c785 in generate_fstab_menu (
    inv_path=0x80545a0 "/var/lib/xfsdump/inventory", startnode=0x0, level=0, 
    fstabname=0x4018bfdc "/var/lib/xfsdump/inventory/fstab") at fstab.c:283
#8  0x0804bf73 in generate_menu (
    inv_path=0x80545a0 "/var/lib/xfsdump/inventory") at cmenu.c:532
#9  0x0804c0ae in invutil_interactive (
    inv_path=0x80545a0 "/var/lib/xfsdump/inventory", mountpt=0x0, uuidp=0x0, 
    timeSecs=0) at cmenu.c:587
#10 0x0804a0ed in main (argc=2, argv=0xbffffd34) at invutil.c:216





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


<Prev in Thread] Current Thread [Next in Thread>