Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jun 2011 18:48:25 GMT
From:      Patrick Lamaiziere <patfbsd@davenulle.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/158230: libdisk(3) segfault in Open_Disk() with "ada0"
Message-ID:  <201106231848.p5NImP5B083697@red.freebsd.org>
Resent-Message-ID: <201106231850.p5NIoCiu052562@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106231848.p5NImP5B083697>