Re: Assertion failed... function arena_run_reg_dalloc

From: Jason Evans <jasone_at_FreeBSD.org>
Date: Mon, 22 May 2006 07:53:00 -0700
Alexandre "Sunny" Kovalenko wrote:
> I get following message on today's (May 21) -CURRENT with up-to-date
> jpilot from ports:
> 
> Assertion failed: ((run->regs_mask[elm] & (1 << bit)) == 0), function
> arena_run_reg_dalloc, file /usr/src/lib/libc/stdlib/malloc.c, line 1638.

This assertion most likely failed due to trying to free an object that 
was already free (double free).

> Stack trace is:
> 
> (gdb) bt
> #0  0x28adbf97 in kill () from /lib/libc.so.6
> #1  0x289df7c7 in raise () from /lib/libpthread.so.2
> #2  0x28adaabc in abort () from /lib/libc.so.6
> #3  0x28ac31b6 in __assert () from /lib/libc.so.6
> #4  0x28a6548d in reallocf () from /lib/libc.so.6
> #5  0x28a67b19 in free () from /lib/libc.so.6
> #6  0x287f38b1 in g_free () from /usr/local/lib/libglib-2.0.so.0
> #7  0x0807cf6a in get_inline_pixbuf_data.0 () at jpilot.c:1375
> #8  0x0807d4cd in get_main_menu (window=0x82a5028, menubar=0xbfbfdee0,
> plugin_list=0x82b0830)
>     at jpilot.c:1382
> #9  0x0807f0eb in main (argc=1, argv=0xbfbfe770) at jpilot.c:2443

This stack trace is somehow wrong.  free() does not call reallocf().

Jason
Received on Mon May 22 2006 - 12:54:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:56 UTC