Want more features on Pastebin? Sign Up, it's FREE!
Guest

gdb output

By: a guest on Feb 13th, 2012  |  syntax: None  |  size: 1.52 KB  |  views: 55  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. (gdb) run
  2. Starting program: /path/to/my/program/foobar
  3. foobar: malloc.c:3097: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
  4.  
  5. Program received signal SIGABRT, Aborted.
  6. 0xb7fe2424 in __kernel_vsyscall ()
  7. (gdb) bt
  8. #0  0xb7fe2424 in __kernel_vsyscall ()
  9. #1  0xb7d7a781 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
  10. #2  0xb7d7dbb2 in *__GI_abort () at abort.c:92
  11. #3  0xb7dbb584 in __malloc_assert (assertion=<value optimized out>, file=<value optimized out>, line=3097, function=0xb7e72c1c "sYSMALLOc")
  12.     at malloc.c:352
  13. #4  0xb7dbe236 in sYSMALLOc (av=<value optimized out>, bytes=<value optimized out>) at malloc.c:3094
  14. #5  _int_malloc (av=<value optimized out>, bytes=<value optimized out>) at malloc.c:4747
  15. #6  0xb7dbfd8c in *__GI___libc_malloc (bytes=12) at malloc.c:3661
  16. #7  0xb7f99ba7 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6
  17. #8  0x080488d5 in MyClass (this=0x804a038, a=0xbffff504, b=0xbffff500) at src/MyClass.cpp:30
  18. #9  0x08048786 in main () at src/test.cpp:11
  19.  (gdb) frame 8
  20. #8  0x080488d5 in MyClass (this=0x804a038, a=0xbffff504, b=0xbffff500) at src/MyClass.cpp:30
  21.     30      myVector = new vector< vector<int>* >;
clone this paste RAW Paste Data