[sr-dev] crash at f_malloc.c

Juha Heinanen jh at tutpro.com
Sun Sep 20 19:19:21 CEST 2015


Daniel-Constantin Mierla writes:

> Anyhow, can you give the output from gdb for:
> 
> frame 0
> list
> info locals
> p *qm
> p *frag
> p *n

below, juha

(gdb) frame 0
#0  fm_split_frag (size=104, frag=0x7fa1e3879fe8, qm=0x7fa1e187a000) at mem/f_malloc.c:285
285	in mem/f_malloc.c
(gdb) list
280	in mem/f_malloc.c
(gdb) info locals
rest = 18446744073709551512
n = 0x7fa1e387a068
(gdb) p *qm
$1 = {type = 0, size = 33554432, used = 6945608, real_used = 7824440, max_real_used = 10067232, 
  ffrags = 315, first_frag = 0x7fa1e1882478, last_frag = 0x7fa1e3879fe8, free_bitmap = {4100, 0, 
    17179869184, 0 <repeats 29 times>, 2054}, free_hash = {{first = 0x0, no = 18446744073709551615}, {
      first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e1eb63d0, no = 2}, {first = 0x7fa1e3879fe8, no = 0}, 
    {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {
      first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, 
    {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e24cb560, no = 1}, {
      first = 0x7fa1e3879fe8, no = 0} <repeats 149 times>, {first = 0x7fa1e3879fe8, 
      no = 18446744073709551613}, {first = 0x7fa1e3879fe8, no = 0} <repeats 785 times>, {first = 0x0, 
      no = 0}, {first = 0x7fa1e3879fe8, no = 0} <repeats 56 times>, {first = 0x0, no = 0}, {
      first = 0x7fa1e3879fe8, no = 0} <repeats 38 times>, {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, 
      no = 0} <repeats 102 times>, {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, 
      no = 0} <repeats 17 times>, {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, 
      no = 0} <repeats 291 times>, {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, 
      no = 0} <repeats 29 times>, {first = 0x0, no = 0}, {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, 
      no = 0} <repeats 40 times>, {first = 0x0, no = 0}, {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, 
      no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {
      first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, 
    {first = 0x7fa1e3879fe8, no = 0}, {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, 
      no = 0} <repeats 114 times>, {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, 
      no = 0} <repeats 13 times>, {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {
      first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, 
    {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {
      first = 0x7fa1e3879fe8, no = 0}, {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, 
      no = 0} <repeats 47 times>, {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {
      first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, 
    {first = 0x7fa1e3879fe8, no = 0}, {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {
      first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, 
    {first = 0x7fa1e3879fe8, no = 0}, {first = 0x0, no = 0}, {first = 0x0, no = 0}, {
      first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, 
    {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {
      first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, {first = 0x7fa1e3879fe8, no = 0}, 
---Type <return> to continue, or q <return> to quit---p *frag
    {first = 0x0, no = 0}, {first = 0x7fa1e3879fe8, no = 0} <repeats 22 times>, {first = 0x0, no = 0}, {
      first = 0x7fa1e3879fe8, no = 0} <repeats 20 times>...}}
(gdb) p *n
$2 = {size = 504, u = {nxt_free = 0x8, reserved = 8}, prv_free = 0x400000003}



More information about the sr-dev mailing list