[haiku-bugs] Re: [Haiku] #13160: Debugger crashes when loading debuginfo

  • From: "mmlr" <trac@xxxxxxxxxxxx>
  • Date: Sun, 08 Jan 2017 14:30:15 -0000

#13160: Debugger crashes when loading debuginfo
-------------------------------------+----------------------------
   Reporter:  KapiX                  |      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 mmlr):

 Replying to [ticket:13160 KapiX]:

1. `export LIBRARY_PATH=.:$LIBRARY_PATH`
2. `LD_PRELOAD=libroot_debug.so MALLOC_DEBUG=g Debugger svdemo`
3. `svdemo` crashes. Click Debug.
4. Debugger crashes almost immediately.

 The report with libroot_debug shows a debugger call due to failure to
 allocate a new memory area (i.e. the system's out of memory or the
 application ran out of address space). Considering that using
 libroot_debug with the guarded heap consumes a lot of extra memory, this
 isn't too surprising.

 It is possible that the original crash was also due to an out of
 memory/address space situation since both stack traces seem to be in the
 path of hoard resizing. The handling of such situations should then be
 reviewed.

 To avoid running out of address space you could try reproducing on a 64
 bit installation instead. If the used memory indication in the report is
 correct, available memory shouldn't be the problem.

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

Other related posts: