Date: Sat, 27 Jan 2001 04:36:38 -0800 (PST) From: sydney13@mail.com To: freebsd-gnats-submit@FreeBSD.org Subject: bin/24677: "mdconfig -t vnode -f floppy.bin" seg fault's Message-ID: <200101271236.f0RCacF08874@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 24677
>Category: bin
>Synopsis: "mdconfig -t vnode -f floppy.bin" seg fault's
>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: Sat Jan 27 04:40:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Duncan Idaho
>Release: FreeBSD 5.0-CURRENT
>Organization:
>Environment:
FreeBSD soleil 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Mon Jan 22 01:51:40 CET 2001 root@soleil:/usr/src/sys/compile/URANUS i386
>Description:
mdconfig seg fault's when called with "-t vnode -f someflp.bin"
# file floppy.bin
floppy.bin: x86 boot sector, system MSDOS5.0, FAT (12 bit)
# /tmp/mdconfig/mdconfig -a -t vnode -f floppy.bin -u 0
Segmentation fault (core dumped)
# gdb -core mdconfig.core /tmp/mdconfig/mdconfig
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
Core was generated by `mdconfig'.
Program terminated with signal 11, Segmentation fault.
#0 0x8048c52 in strncpy (dst=0x0, src=0xbfbffcda "floppy.bin", n=3)
at /usr/src/lib/libc/../libc/string/strncpy.c:59
59 if ((*d++ = *s++) == 0) {
(gdb) bt
#0 0x8048c52 in strncpy (dst=0x0, src=0xbfbffcda "floppy.bin", n=3)
at /usr/src/lib/libc/../libc/string/strncpy.c:59
#1 0x80483e0 in main (argc=8, argv=0xbfbffbb0) at mdconfig.c:87
#2 0x8048135 in _start ()
(gdb) quit
>How-To-Repeat:
Use the FreeBSD boot floppy image (or any other) and do:
mdconfig -a -t vnode -f boot.flp -u 0
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101271236.f0RCacF08874>
