[haiku-bugs] Re: [Haiku] #10279: random binary crashes, generally while compiling or doing other port work

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Tue, 17 Dec 2013 16:17:05 -0000

#10279: random binary crashes, generally while compiling or doing other port 
work
-----------------------------+----------------------------
   Reporter:  kallisti5      |      Owner:  axeld
       Type:  bug            |     Status:  new
   Priority:  high           |  Milestone:  R1/beta1
  Component:  System/Kernel  |    Version:  R1/Development
 Resolution:                 |   Keywords:  vm
 Blocked By:                 |   Blocking:
Has a Patch:  0              |   Platform:  All
-----------------------------+----------------------------

Comment (by bonefish):

 Mmh, curious. That means that the instruction that has actually been
 executed is not the one Debugger and later the kernel see. Please copy the
 `dprintf()` from [http://cgit.haiku-
 os.org/haiku/tree/src/system/kernel/vm/vm.cpp#n4235] and insert a modified
 version farther below before the `user_debug_exception_occurred()`
 invocation at [http://cgit.haiku-
 os.org/haiku/tree/src/system/kernel/vm/vm.cpp#n4308]. In the new line the
 `dprintf` would be replaced by `panic` and it should look like `||
 (panic(...), false)` to work in the `if` condition.

 This will cause the kernel to panic immediately when a userland team
 crashes, so we'll hopefully see what was actually executed. The
 information to retrieve would be the same: `mapping` for both fault
 address and IP (both in the panic message), `dis` -- for neither command
 the thread has to be specified anymore (i.e. omit the `in_context
 <thread>` before `dis`) -- and the debug report that can be captured after
 leaving KDL.

--
Ticket URL: <http://dev.haiku-os.org/ticket/10279#comment:26>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: