[haiku-bugs] Re: [Haiku] #12317: Debugger (silent?) crash, incomplete report

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Thu, 20 Aug 2015 20:44:11 -0000

#12317: Debugger (silent?) crash, incomplete report
-------------------------------------+----------------------------
Reporter: ttcoder | Owner: anevilyak
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Applications/Debugger | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------------------+----------------------------

Comment (by ttcoder):

Confirming...
- I mixed up two separate issues in this ticket: the Debugger segfault is
not reproducible here with the steps outlined above.
- the "disappearing thread" IS reproducible however. Good news!

To undo my mess we could close this ticket and open a clean one for each
separate issue; well actually I'm not too interested in the Debugger crash
right now as I only ever saw that once, but I'd like to dig on the
disappearing thread aspect :-)

Posting the source below (note: it's a modification of the file in #12319,
not the exact same file);

Steps to replicate the behavior:
- compile: `gcc class_NetworktimeprefletAsAddon.cpp -lbe`
- run
- *quickly* click the "debug" button on the alert that pops up when the
team crashes: if you look carefully, you will see the Debugger's listview
update live, going from 3 lines to 2 lines, removing the line with the
thread that is killed
- alternatively, do not click the "debug" button for 2 seconds, then when
you click it the listview listing threads only litsts 2 of them: the main
thread and the attached debugger thread.

Discussion (to continue in a new /clean ticket maybe):
- wouldn't it be better if the kernel "held tight" on the crashed thread,
instead of letting it go ?
- if it isn't, how could Debugger give a hint about what happened ? Seeing
a list of threads with no indication of any of them being stopped gives
the (false) impression that the Debugger report is spurious and the team
did not really crash. We probably don't want that.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12317#comment:7>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: