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

2010-03-19 Thread Santiago Vila
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

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

2010-03-19 Thread Cyril Brulebois
Santiago Vila (19/03/2010): > I rebuilt the package using DEB_BUILD_OPTIONS=noopt,nostrip and this > is what gdb says: > > (gdb) bt > #0 0x000800c7107c in _IO_vfprintf_internal (s=0x800f67aa0, > format=, ap=0x7fffe540) at vfprintf.c:1601 > #1 0x000800c77c8a in __printf ( > f

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

2010-03-20 Thread Petr Salinger
> Running it with no argument at all, I also get a segfault. It looks > like the getprogname() call is the culprit. [My crash is at > swapon.c:215, which like swapon.c:160 uses a getprogname() call.] > > That's a bit strange, since setprogname() gets called with argv[0] at > the beginning of main(