Bug#338207: xfs_db "frag" command gives segmentation fault

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#338207: xfs_db "frag" command gives segmentation fault

Martin Steigerwald
Package: xfsprogs
Version: 2.6.36-1
Severity: normal

Hello Nathan,

using the "frag" command in xfs_db gives a segmentation fault here:

root@deepdance:/ -> xfs_db -V
xfs_db version 2.6.36
root@deepdance:/ -> xfs_db -r /dev/hda5
xfs_db> label
label = "debian"
xfs_db> frag
Speicherzugriffsfehler
(^^^ german for segmentation fault)

Using an older version of xfs_db from an chroot'ed SuSE 9.3
environment (same kernel running, see below) works instead:

deepdance:/# xfs_db -V
xfs_db version 2.6.25
deepdance:/# xfs_db -r /dev/hda5
xfs_db> label
label = "debian"
xfs_db> frag
actual 324362, ideal 321705, fragmentation factor 0.82%
xfs_db> quit
deepdance:/#

I am using a self compiled vanilla 2.6.13.4 kernel with the
following XFS options compiled in:

root@deepdance:/ -> grep -i "XFS" /boot/config-2.6.13.4-tp23
# XFS support
CONFIG_XFS_FS=y
CONFIG_XFS_EXPORT=y
CONFIG_XFS_RT=y
CONFIG_XFS_QUOTA=y
CONFIG_XFS_SECURITY=y
CONFIG_XFS_POSIX_ACL=y
# well not really XFS related
# CONFIG_VXFS_FS is not set

This is an strace of the bug:

write(1, "xfs_db> ", 8xfs_db> )                 = 8
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(0, "f", 1)                         = 1
write(1, "f", 1f)                        = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(0, "r", 1)                         = 1
write(1, "r", 1r)                        = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(0, "a", 1)                         = 1
write(1, "a", 1a)                        = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(0, "g", 1)                         = 1
write(1, "g", 1g)                        = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(0, "\r", 1)                        = 1
write(1, "\n", 1
)                       = 1
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGINT, {0x80628f4, [], 0}, {0xb7fbae00, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL}, {0xb7fbae00, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {0xb7fbae00, [], 0}, 8) = 0
rt_sigaction(SIGALRM, {SIG_DFL}, {0xb7fbae00, [], 0}, 8) = 0
rt_sigaction(SIGTSTP, {SIG_DFL}, {0xb7fbae00, [], 0}, 8) = 0
rt_sigaction(SIGTTOU, {SIG_DFL}, {0xb7fbae00, [], 0}, 8) = 0
rt_sigaction(SIGTTIN, {SIG_DFL}, {0xb7fbae00, [], 0}, 8) = 0
rt_sigaction(SIGWINCH, {SIG_DFL}, {0xb7fba8f0, [], SA_RESTART}, 8) = 0
time(NULL)                              = 1131477764
_llseek(4, 512, [512], SEEK_SET)        = 0
read(4, "XAGF\0\0\0\1\0\0\0\0\0\4\0\0\0\0\5\230\0\1@\343\0\0\0\0"..., 512) = 512
_llseek(4, 1024, [1024], SEEK_SET)      = 0
read(4, "XAGI\0\0\0\1\0\0\0\0\0\4\0\0\0\0\270@\0\0\1T\0\0\0\2\0"..., 512) = 512
_llseek(4, 1392640, [1392640], SEEK_SET) = 0
read(4, "IABT\0\1\0\3\377\377\377\377\377\377\377\377\0\0\0\200"..., 4096) = 4096
_llseek(4, 741376, [741376], SEEK_SET)  = 0
read(4, "IABT\0\0\0\366\377\377\377\377\0\0\1\205\0\0\0\200\0\0"..., 4096) = 4096
_llseek(4, 32768, [32768], SEEK_SET)    = 0
read(4, "INA\355\1\2\0\25\0\0\0\0\0\0\0\0\0\0\0\25\0\0\0\0\0\0\0"..., 16384) = 16384
mmap2(NULL, 268443648, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7d59000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

The bug also happens when I use the "frag" command on a previously
unmounted partition.

Please tell me when you need any further informations.

Regards,
Martin Steigerwald

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13.4-tp23
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages xfsprogs depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libreadline5                  5.0-11     GNU readline and history libraries
ii  libuuid1                      1.38-2     universally unique id library

xfsprogs recommends no packages.

-- no debconf information


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Bug#338207: xfs_db "frag" command gives segmentation fault

Nathan Scott
On Tue, Nov 08, 2005 at 08:26:31PM +0100, Martin Steigerwald wrote:
> Package: xfsprogs
> Version: 2.6.36-1
> Severity: normal
>
> Hello Nathan,
>
> using the "frag" command in xfs_db gives a segmentation fault here:

Hi Martin,

I fixed this a little while ago in XFS CVS, but I've not yet
uploaded a new xfsprogs to the Debian archive.  I've got a few
other changes pending, so hopefully by weeks end I'll do this.

thanks.

--
Nathan


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]