Subject: [1] Trace/BPT trap (core dumped) /sbin/fdisk ${i}...
To: None <port-cobalt@netbsd.org>
From: NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
List: port-cobalt
Date: 07/13/2007 08:24:28
Hi,
I have COBALT Cache RaQ2 with NetBSD/cobalt 4.99.21.
I noticed the message
[1] Trace/BPT trap (core dumped) /sbin/fdisk ${i}...
in "daily insecurity output" mail.
I re-compiled fdisk with "-g" and checked with gdb, and found
(gdb) bt
#0 0x00402cc4 in intuit_translated_geometry ()
at /usr/src/sbin/fdisk/fdisk.c:1472
#1 0x00407564 in main (argc=2, argv=0x7fffddac)
at /usr/src/sbin/fdisk/fdisk.c:433
At fdisk.c:1472,
xsectors = a1 / (c1 * xheads + h1);
"divide-by-zero error" occurs.
(gdb) p c1
$13 = 61
(gdb) p xheads
$14 = 0
(gdb) p h1
$15 = 0
I don't know why xheads and h1 are zero here but I'm afraid something is
wrong with my RaQ2. The values of xheads and h1 must not be zero?
--
NAKAJI Hiroyuki