[haiku-bugs] Re: [Haiku] #11204: [Debugger] crashes in UiUtils::FunctionNameForFrame ()

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Fri, 05 Sep 2014 12:23:23 -0000

#11204: [Debugger] crashes in UiUtils::FunctionNameForFrame ()
-------------------------------------+----------------------------
   Reporter:  diver                  |      Owner:  anevilyak
       Type:  bug                    |     Status:  new
   Priority:  normal                 |  Milestone:  R1
  Component:  Applications/Debugger  |    Version:  R1/Development
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+----------------------------
Changes (by anevilyak):

 * cc: bonefish (added)


Comment:

 Right now I'm not entirely certain as to what to make of this one. If I'm
 reading the disassembly correctly, the crash appears to occur around
 http://cgit.haiku-
 os.org/haiku/tree/src/apps/debugger/user_interface/util/UiUtils.cpp#n113 .
 However, I see nothing obviously wrong with how things are being handled
 there. Looking further up the stack, The only potential problem I see is
 that http://cgit.haiku-
 os.org/haiku/tree/src/apps/debugger/controllers/DebugReportGenerator.cpp#n476
 can potentially exit the initial loop without reacquiring the team lock if
 it's interrupted while acquiring the team data semaphore, but then
 successfully gets the stack trace immediately after said continue.

 In that case, it would retrieve the statement corresponding to the IP from
 the team without having the team locked, which I suppose could possibly
 lead to one or the other of the pointers being passed into
 FunctionNameForFrame() being invalid, but I'm uncertain. A second pair of
 eyes would be helpful.

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

Other related posts: