Opened 11 years ago

Closed 10 years ago

#1937 closed bug (invalid)

libroot: malloc bug - Thread 7445 called debugger(): _numBlocks > 0

Reported by: thorn Owned by: axeld
Priority: normal Milestone: R1
Component: System/libroot.so Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: x86

Description

env: haiku - hrev24413 texinfo-4.11 / makeinfo

backtrace:

This GDB was configured as "i586-pc-haiku"...
[tcsetpgrp failed in terminal_inferior: Invalid Argument]
Thread 7445 called debugger(): _numBlocks > 0
Reading symbols from /boot/beos/system/lib/libroot.so...done.
Loaded symbols for /boot/beos/system/lib/libroot.so
[tcsetpgrp failed in terminal_inferior: Invalid Argument]
[Switching to team makeinfo -I. ./autoconf.texi --no-split --output=autoconf.info (7445) thread makeinfo (7445)]
0xffff0104 in ?? ()
(gdb) bt full
#0  0xffff0104 in ?? ()
No symbol table info available.
#1  0x0026d326 in debugger () from /boot/beos/system/lib/libroot.so
No symbol table info available.
#2  0x00274491 in __assert_fail () from /boot/beos/system/lib/libroot.so
No symbol table info available.
#3  0x0027c84c in BPrivate::superblock::isValid ()
   from /boot/beos/system/lib/libroot.so
No symbol table info available.
#4  0x0027ac6c in BPrivate::threadHeap::malloc ()
   from /boot/beos/system/lib/libroot.so
No symbol table info available.
#5  0x0027b8c1 in malloc () from /boot/beos/system/lib/libroot.so
No symbol table info available.
#6  0x002371d0 in xmalloc (n=24) at xmalloc.c:50
        p = (void *) 0x9c
#7  0x00225e8e in remember_brace_1 (proc=0x20dcf8 <cm_code>, position=8)
    at makeinfo.c:2337
        new = (struct brace_element *) 0x248a14
#8  0x00225f7d in remember_brace (proc=0x20dcf8 <cm_code>) at makeinfo.c:2354
No locals.
#9  0x002255ab in read_command () at makeinfo.c:2075
        entry = (struct {...} *) 0x245cbc
        old_text_offset = 86164
  

and source:

void *
xmalloc (size_t n)
{
  void *p = malloc (n);
  if (!p && n != 0)
    xalloc_die ();
  return p;
} 

Change History (2)

comment:1 Changed 11 years ago by thorn

like #679

comment:2 Changed 10 years ago by axeld

Resolution: invalid
Status: newclosed
Version: R1/pre-alpha1R1/Development

This looks like a memory corruption of that application.

Note: See TracTickets for help on using tickets.