Skip to content

Instantly share code, notes, and snippets.

@richo
Created April 27, 2015 09:42
Show Gist options
  • Select an option

  • Save richo/04322ed0af74adeb1606 to your computer and use it in GitHub Desktop.

Select an option

Save richo/04322ed0af74adeb1606 to your computer and use it in GitHub Desktop.
(gdb) r foo.rs
Starting program: /home/richo/rustbox/rust/rust-no-debug/powerpc-unknown-linux-gnu/stage2/bin/rustc foo.rs
warning: Could not load shared library symbols for linux-vdso32.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/powerpc-linux-gnu/libthread_db.so.1".
[New Thread 0xf7f9f280 (LWP 11308)]
*** Error in `/home/richo/rustbox/rust/rust-no-debug/powerpc-unknown-linux-gnu/stage2/bin/rustc': free(): invalid next size (fast): 0xf7600f00 ***
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xf7f9f280 (LWP 11308)]
0x1f9dac48 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x1f9dac48 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x1f9dc830 in __GI_abort () at abort.c:89
#2 0x1fa211b0 in __libc_message (do_abort=1, fmt=<optimized out>) at ../sysdeps/posix/libc_fatal.c:175
#3 0x1fa29440 in malloc_printerr (action=1, str=0x1faffce0 "free(): invalid next size (fast)", ptr=<optimized out>)
at malloc.c:4996
#4 0x1fa2a438 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=<optimized out>) at malloc.c:3840
#5 0x1fc0f0f0 in rt::unwind::rust_panic::exception_cleanup::h1e761ab6300b246cOZv ()
from ../../../x86_64-unknown-linux-gnu/stage2/lib/rustlib/powerpc-unknown-linux-gnu/lib/libstd-4e7c5e5c.so
#6 0x1a95fef8 in _Unwind_DeleteException () from /lib/powerpc-linux-gnu/libgcc_s.so.1
#7 0x201313ec in rt::unwind::try::h9295470197131620678 () from ../lib/librustc_driver.so
#8 0x20131170 in thread::Builder::spawn_inner::closure.24114 () from ../lib/librustc_driver.so
#9 0x2013273c in boxed::F.FnBox$LT$A$GT$::call_box::h13290320287310885895 () from ../lib/librustc_driver.so
#10 0x1fc0e230 in sys::thread::Thread::new::thread_start::h60d4eb529824f157U9u ()
from ../../../x86_64-unknown-linux-gnu/stage2/lib/rustlib/powerpc-unknown-linux-gnu/lib/libstd-4e7c5e5c.so
#11 0x1a997c3c in start_thread (arg=0xf7f9f280) at pthread_create.c:311
#12 0x1fa96470 in clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S:102
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment