Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2005 17:49:24 +0200
From:      "Norbert Koch" <NKoch@demig.de>
To:        "Julian Elischer" <julian@elischer.org>
Cc:        "Freebsd-Hackers@Freebsd.Org" <freebsd-hackers@freebsd.org>
Subject:   RE: kernel panic in usb0; was: RE: using vkbd device
Message-ID:  <000001c5728a$f854fda0$4801a8c0@ws-ew-3.W2KDEMIG>
In-Reply-To: <42B084DA.7040702@elischer.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C5729B.BBDDCDA0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

> >In gdb "bt" only shows two entries. The function where the panic
> >occurred and 0x0!
> >
> >
>
> that is normal
> you don't want to jump into gdb that soon.
> there is hardly anything set up.
>
> use the sysctl to enter gdb later.
>
> >BTW, after boot -gd, when gdb attaches I have a kernel panic too.
> >But I can just enter "continue" and the kernel continues booting.
> >Is that ok?
> >
> >
>
> what do you mean "panic"?
> I never use -gd, just -g
>
> then hitting ^ALT-ESC  or using th esysctl makes me enter the debugger
> when I need to.
>
>
>

Ok,
may be, I am doing something stupidly wrong.

1. Added DIAGNOSTIC, USB_DEBUG, INVARIANT_SUPPORT, INVARIANTS to my
configuration
   and installed a new debug kernel.
2. Booted the target to the loader prompt.
   "unload kernel"
   "load kerneld"
   "boot -gd"
3. "gdb -k kernel.debug" & "target remote /dev/cuaa0" on my workstation.
4. Arrived in Debugger() and pressed "c".
5. The kernel booted. I saw the usual boot messages.
   After seeing "IP filtering initialized...", I saw:
   "panic: usb_cold_explore: busses to explore when !cold".
6. Found, that cold is indeed 0.
7. Booted again up to 4. and set a breakpoint at usb_cold_explore().
   Pressed "c" and got (from gdb):
     Continuing.
     Cannot insert breakpoint 1:
     Cannot access memory at address 0xc01e5a37.
   At the same time the target console showed twice:
   "Fatal trap 12: page fault..."
   "..."
   "supervisor read, page not present"
   "..."

So, do I have something very wrong in my kernel configuration? (See attached
file)
What about HZ=400 and NO_SWAPPING? Any known problems?
Can't I set a breakpoint at that early stage of booting?

Thanks for any help,

Norbert

------=_NextPart_000_0001_01C5729B.BBDDCDA0
Content-Type: application/octet-stream;
	name="MOPSD"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="MOPSD"

IwojIE1PUFMgLS0gS2VybmVsIGNvbmZpZ3VyYXRpb24gZmlsZSBmb3IgRnJlZUJTRC9pMzg2CiMg
JEhlYWRlcjogL3Vzci9sb2NhbC9jdnMvc3lzL2kzODYvY29uZi9NT1BTRCx2IDEuNyAyMDA1LzA2
LzA3IDExOjU3OjM1IG5rIEV4cCAkCiMKCm1hY2hpbmUJCWkzODYKY3B1CQlJNTg2X0NQVQpjcHUJ
CUk2ODZfQ1BVCmlkZW50CQlNT1BTCgptYXh1c2VycwkwCgpvcHRpb25zICAgICAgICAgSFo9NDAw
Cm9wdGlvbnMgICAgICAgICBERVZJQ0VfUE9MTElORwojI29wdGlvbnMgICAgICAgICBTSUdOQUxf
SU9DSEsKCm9wdGlvbnMgICAgICAgICBESUFHTk9TVElDCm9wdGlvbnMgICAgICAgICBJTlZBUklB
TlRfU1VQUE9SVApvcHRpb25zICAgICAgICAgSU5WQVJJQU5UUwpvcHRpb25zICAgICAgICAgVVNC
X0RFQlVHCgptYWtlb3B0aW9ucwlERUJVRz0tZwkJI0J1aWxkIGtlcm5lbCB3aXRoIGdkYigxKSBk
ZWJ1ZyBzeW1ib2xzCm1ha2VvcHRpb25zICAgICBNT0RVTEVTX09WRVJSSURFPSJzcGxhc2giCgpv
cHRpb25zIAlJTkVUCQkJI0ludGVyTkVUd29ya2luZwpvcHRpb25zIAlGRlMJCQkjQmVya2VsZXkg
RmFzdCBGaWxlc3lzdGVtCm9wdGlvbnMgCUZGU19ST09UCQkjRkZTIHVzYWJsZSBhcyByb290IGRl
dmljZSBba2VlcCB0aGlzIV0Kb3B0aW9ucyAJU09GVFVQREFURVMJCSNFbmFibGUgR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