bin/158230: libdisk(3) segfault in Open_Disk() with "ada0"

Patrick Lamaiziere patfbsd at davenulle.org
Thu Jun 23 18:50:13 UTC 2011


>Number:         158230
>Category:       bin
>Synopsis:       libdisk(3) segfault in Open_Disk() with "ada0"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 23 18:50:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Lamaiziere
>Release:        8.2-STABLE / i386
>Organization:
>Environment:
FreeBSD roxette.lamaiziere.net 8.2-STABLE FreeBSD 8.2-STABLE #1: Wed Jun  1 20:18:11 CEST 2011     patrick at roxette.lamaiziere.net:/usr/obj/usr/src/sys/ROXETTE  i386

>Description:
When using sysintall(8), it crashes while "probing devices".

I've tracked down the problem to libdisk(3) and it appears that it crashes while getting disk info on my ada0 disk.

This is reproductible by using the libdisk test suite in /usr/src/lib/libdisk (tst01.c).

tst01 ada0
Gdb:
Starting program: /usr/src/lib/libdisk/tst01 ada0

Program received signal SIGSEGV, Segmentation fault.
0x08063032 in L1 ()
(gdb) bt
#0  0x08063032 in L1 ()
#1  0x28405400 in ?? ()
#2  0x0804bd8c in Int_Open_Disk (name=0xbfbfea1b "ada0", conftxt=Variable "conftxt" is not available.
)
    at open_disk.c:55
#3  0x08049dcd in Open_Disk (name=0xbfbfea1b "ada0") at disk.c:106
#4  0x08048438 in main (argc=Variable "argc" is not available.
) at tst01.c:140

Please tell me if you need more information.
Thanks, regards.

>How-To-Repeat:
# cd /usr/src/lib/libdisk
# tst01 ada0


>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list