"Fatal trap 12" while debugging a 4.11 kernel with remote gdb

From: Björn König (bkoenig_at_cs.tu-berlin.de)
Date: 06/29/05

  • Next message: Matt Juszczak: "Re: FreeBSD -STABLE servers repeatedly crashing"
    Date: Wed, 29 Jun 2005 00:04:26 +0200
    To: freebsd-stable@freebsd.org
    
    

    Hello,

    I'm trying to debug a FreeBSD 4.11 kernel that has been compiled with

         makeoptions DEBUG=-g
         options DDB

    The remote machine is running FreeBSD 5.4 and I'm using devel/gdb6. I
    have no problems as long as I escape to the debugger after the kernel
    was loaded, but I like to trace something during the initialisation. I
    type 'boot -d', 'gdb' and 's' on the 4.11 machine and the following
    commands on the 5.4 machine:

    (kgdb) s
    Reply contains invalid hex digit 84
    (kgdb) s
    Warning:
    Cannot insert breakpoint -1.
    Error accessing memory address 0xc02f09a8: Input/output error.

    At the same time of the second 'step' this happens with the 4.11 kernel:

    Fatal trap 12: page fault while in kernel mode
    fault virtual address = 0xf0010502
    fault code = supervisor read, page not present
    intruction pointer = 0x8:0xc02ed6b6
    stack pointer = 0x10:0xc045de3c
    frame pointer = 0x10:0xc045de48
    code segment = base 0x0, limit 0xfffff, type 0x1b
                             = DPL 0, pres 1, def32 1, gran 1
    processor eflags = interrupt enabled, resume, IOPL = 0
    current process = Idle
    interrupt mask = net tty bio cam

    Does anyone has a hint for me to prevent this?

    Thanks in advance
    Björn
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: Matt Juszczak: "Re: FreeBSD -STABLE servers repeatedly crashing"

    Relevant Pages

    • Re: Issue on netconsole vs. Linux kernel oops
      ... >> kernel's final messages (i.e. oops) to remote machine ... >> send some loacl kernel messages to the remote machine. ... >> syslogd in remote machine). ...
      (Linux-Kernel)
    • re: upgrading 4.0 to stable
      ... succeeded to update a remote machine from 4.3 to 4.8 without consol ... `make installkernel KERNCONF=YOUR_KERNEL_HERE' ... * Make sure that the kernel is as simpel as possible. ... restart sshd and test from another ...
      (freebsd-stable)
    • Re: Issue on netconsole vs. Linux kernel oops
      ... > I'd like to use netconsole to send local Linux ... > send some loacl kernel messages to the remote machine. ... > syslogd in remote machine). ...
      (Linux-Kernel)
    • Issue on netconsole vs. Linux kernel oops
      ... I'd like to use netconsole to send local Linux ... send some loacl kernel messages to the remote machine. ... 192.168.0.1.syslog: UDP, length 48 ...
      (Linux-Kernel)
    • Re: Issue on netconsole vs. Linux kernel oops
      ... >> I'd like to use netconsole to send local Linux ... >> machine when the kernel crashes. ... >> syslogd in remote machine). ...
      (Linux-Kernel)