Skip to content

Instantly share code, notes, and snippets.

@mischief
Created April 30, 2012 15:06
Show Gist options
  • Save mischief/2559078 to your computer and use it in GitHub Desktop.
Save mischief/2559078 to your computer and use it in GitHub Desktop.
Breakpoint 3, lmm_alloc (lmm=0x14a020, size=56, flags=0) at src/lmm/lmm_alloc.c:44 [27/911]
44 assert((node->next == 0) || (node->next > node));
(gdb) bt#0 lmm_alloc (lmm=0x14a020, size=56, flags=0) at src/lmm/lmm_alloc.c:44
#1 0x00102529 in mem_alloc (m=0x1381cc, size=49, flags=1) at src/clientos/mem.c:103
#2 0x001009fa in malloc (size=45) at src/libc/malloc/malloc.c:24
#3 0x0012fdb9 in realloc (buf=0x0, new_size=45) at src/libc/malloc/realloc.c:25
#4 0x00113d31 in l_alloc (ud=0x0, ptr=0x0, osize=4, nsize=45) at lua/src/lauxlib.c:924
#5 0x0011950b in luaM_realloc_ (L=0x1000074, block=0x0, osize=4, nsize=45) at lua/src/lmem.c:84#6 0x0011737a in luaC_newobj (L=0x1000074, tt=4, sz=45, list=0x1001224, offset=0) at lua/src/lgc.c:220
#7 0x0011e31a in newlstr (L=0x1000074, str=0x1001a5c "Processor Serial Number: no\n", l=28, h=4130708166) at lua/src/lstring.c:65#8 0x0011e470 in luaS_newlstr (L=0x1000074, str=0x1001a5c "Processor Serial Number: no\n", l=28) at lua/src/lstring.c:95
#9 0x0011e498 in luaS_new (L=0x1000074, str=0x1001a5c "Processor Serial Number: no\n") at lua/src/lstring.c:100#10 0x00110c83 in lua_pushstring (L=0x1000074, s=0x1001a5c "Processor Serial Number: no\n") at lua/src/lapi.c:513#11 0x001000d0 in luafmt (data=0x1000074, fmt=0x132573 "%s: %s\n") at example/lua.c:37#12 0x001044eb in cpu_info_format (id=0x14a4c0, formatter=0x10004c <luafmt>, data=0x1000074) at src/kern/x86/cpu_info_format.c:222#13 0x00100136 in lua_cpuid (L=0x1000074) at example/lua.c:47
#14 0x0011590c in luaD_precall (L=0x1000074, func=0x1000fe4, nresults=1) at lua/src/ldo.c:317#15 0x00125a8d in luaV_execute (L=0x1000074) at lua/src/lvm.c:702#16 0x00115c7e in luaD_call (L=0x1000074, func=0x1000fdc, nResults=-1, allowyield=0) at lua/src/ldo.c:393#17 0x0011194d in f_call (L=0x1000074, ud=0x149ee8) at lua/src/lapi.c:920#18 0x00115199 in luaD_rawrunprotected (L=0x1000074, f=0x11192a <f_call>, ud=0x149ee8) at lua/src/ldo.c:131
#19 0x00116291 in luaD_pcall (L=0x1000074, func=0x11192a <f_call>, u=0x149ee8, old_top=8, ef=0) at lua/src/ldo.c:591
#20 0x001119dd in lua_pcallk (L=0x1000074, nargs=0, nresults=-1, errfunc=0, ctx=0, k=0) at lua/src/lapi.c:946
#21 0x00100250 in main () at example/lua.c:102
(gdb) info locals
nodep = (struct lmm_node **) 0x1001a78node = (struct lmm_node *) 0x1001d00
reg = (struct lmm_region *) 0x14a0c0
(gdb) print node->next
$1 = (struct lmm_node *) 0x3b
(gdb) print *node
$2 = {next = 0x3b, size = 0}
(gdb) print node
$3 = (struct lmm_node *) 0x1001d00
(gdb) print ((node->next == 0) || (node->next > node))
$4 = 0
(gdb) print !((node->next == 0) || (node->next > node))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment