[haiku-bugs] Re: [Haiku] #4164: assertion fails in malloc (rev 31961)

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 07 Jan 2015 09:02:03 -0000

#4164: assertion fails in malloc (rev 31961)
---------------------------------+---------------------------
   Reporter:  Blub               |      Owner:  axeld
       Type:  bug                |     Status:  new
   Priority:  normal             |  Milestone:  R1
  Component:  System/libroot.so  |    Version:  R1/pre-alpha1
 Resolution:                     |   Keywords:
 Blocked By:                     |   Blocking:
Has a Patch:  0                  |   Platform:  All
---------------------------------+---------------------------

Comment (by pulkomandy):

 This assert is usually triggered by heap corruption, which can be caused
 by double free but also overwriting malloc guards.
 You can try running your program with libroot_debug to use a safer (but
 slower) allocator:
 {{{
 LD_PRELOAD=/system/lib/libroot_debug.so ./yourprogram
 }}}

 This one may be better at detecting the initial problem.

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

Other related posts: