[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#574645: freebsd-utils: swapon segfaults on kfreebsd-amd64



Package: freebsd-utils
Version: 8.0-8

swapon and swapoff segfault after actually enabling or disabling swap.
They do not segfault if swap is already enabled (swapon) or disabled
(swapoff).

The segfault happens only on kfreebsd-amd64, not on kfreebsd-i386.
(In both cases I'm using kvm, not a real computer).

Also, the segfault does not happen with version 7.2-5 (the version
contained in debian-20090729-kfreebsd-amd64-install.iso which I used
to install the system).

I rebuilt the package using DEB_BUILD_OPTIONS=noopt,nostrip and this
is what gdb says:

(gdb) bt
#0  0x0000000800c7107c in _IO_vfprintf_internal (s=0x800f67aa0,
    format=<value optimized out>, ap=0x7fffffffe540) at vfprintf.c:1601
#1  0x0000000800c77c8a in __printf (
    format=0x4018fa "%s: %sing %s as swap device\n") at printf.c:35
#2  0x000000000040172b in main (argc=<value optimized out>,
    argv=0x7fffffffe7d0) at swapon.c:160


Thanks.



Reply to: