Subject: Re: port-amd64/30828: amd64 unable to boot into DDB
To: None <port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Havard Eidnes <he@netbsd.org>
List: netbsd-bugs
Date: 07/25/2005 18:41:02
The following reply was made to PR port-amd64/30828; it has been noted by GNATS.

From: Havard Eidnes <he@netbsd.org>
To: M.Drochner@fz-juelich.de
Cc: port-amd64-maintainer@netbsd.org, gnats-bugs@netbsd.org
Subject: Re: port-amd64/30828: amd64 unable to boot into DDB 
Date: Mon, 25 Jul 2005 20:40:25 +0200 (CEST)

 >  I really don't want to offend you, but could it be just due to
 >  =
 
 >  zel459> grep "opt.*DDB" GENERIC
 >  #options        DDB             # in-kernel debugger
 >  #options        DDB_HISTORY_SIZE=3D512    # enable history editing i=
 n DDB
 
 I don't get offended easily, so no worry.  I'll admit that I
 assumed the amd64 GENERIC would be identical to the i386 GENERIC
 in this regard, and I was obviously wrong.
 
 With DDB defined, it drops into DDB alright, but not particularly
 cleanly:
 
 > boot netbsd -d
 booting hd0a:netbsd (howto 0x40)
 6366376+692136+383160 [483456+296239]=3D0x8d8310
 Stopped at      netbsd:kernel: page fault trap, code=3D0
 Stopped at      netbsd:com_common_putc+0xa7:    testb   $0x20,%al
 db> c
 cpu_Debugger+0x5:       leave
 db> c
 ckernel: privileged instruction fault trap, code=3D0
 Stopped at      netbsd:__qdivrem+0x61d51:       boundl  %fs:0(%rsi),%ed=
 i
 db> c
 
 Ugh!
 
 Maybe there's a bug to be found here after all? ;-)
 
 Another try, this time with a backtrace:
 
 > boot netbsd -d
 booting hd0a:netbsd (howto 0x40)
 6366376+692136+383160 [483456+296239]=3D0x8d8310
 Stopped at           kernel: page fault trap, code=3D0
 Stopped at      netbsd:com_common_putc+0xa7:    testb   $0x20,%al
 db> tra
 com_common_putc() at netbsd:com_common_putc+0xa7
 cnputc() at netbsd:cnputc+0x2c
 db_force_whitespace() at netbsd:db_force_whitespace+0x50
 db_putchar() at netbsd:db_putchar+0xbb
 kprintf() at netbsd:kprintf+0x44b
 db_printf() at netbsd:db_printf+0xb9
 db_printsym() at netbsd:db_printsym+0x9d
 db_print_loc_and_inst() at netbsd:db_print_loc_and_inst+0x20
 db_trap() at netbsd:db_trap+0xdb
 kdb_trap() at netbsd:kdb_trap+0x121
 trap() at netbsd:trap+0xc3
 kernel: page fault trap, code=3D0
 Faulted in DDB; continuing...
 db> =
 
 
 
 Regards,
 
 - H=E5vard