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

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



Santiago Vila <sanvila@unex.es> (19/03/2010):
> 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

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(), see debian/patches/016_swapon.diff

I haven't got much time to dig deeper, sorry.

Mraw,
KiBi.

Attachment: signature.asc
Description: Digital signature


Reply to: