Skip to content

Instantly share code, notes, and snippets.

@luqmana
Created August 16, 2013 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luqmana/6248769 to your computer and use it in GitHub Desktop.
Save luqmana/6248769 to your computer and use it in GitHub Desktop.
-> % gdb --args x86_64-unknown-linux-gnu/stage2/bin/rustc --cfg stage2 -O --cfg debug -Z no-debug-borrows --target=arm-linux-androideabi --android-cross-path=/scratch/laden/android-dev/standalone -D warnings --out-dir x86_64-unknown-linux-gnu/stage2/lib/rustc/arm-linux-androideabi/lib /scratch/laden/rust/src/libstd/std.rs GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc...(no debugging symbols found)...done.
(gdb) b rust_begin_unwind
Function "rust_begin_unwind" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (rust_begin_unwind) pending.
(gdb) r
Starting program: /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc --cfg stage2 -O --cfg debug -Z no-debug-borrows --target=arm-linux-androideabi --android-cross-path=/scratch/laden/android-dev/standalone -D warnings --out-dir x86_64-unknown-linux-gnu/stage2/lib/rustc/arm-linux-androideabi/lib /scratch/laden/rust/src/libstd/std.rs
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff7fca700 (LWP 12128)]
[New Thread 0x7ffff2d1d700 (LWP 12129)]
[New Thread 0x7ffff2c1c700 (LWP 12130)]
[New Thread 0x7ffff2b1b700 (LWP 12131)]
[New Thread 0x7ffff2461700 (LWP 12132)]
[New Thread 0x7ffff2360700 (LWP 12133)]
[New Thread 0x7ffff225f700 (LWP 12134)]
[New Thread 0x7fffdbfff700 (LWP 12135)]
rustc: /export/scratch/laden/rust/src/llvm/lib/IR/Type.cpp:352: llvm::FunctionType::FunctionType(llvm::Type*, llvm::ArrayRef<llvm::Type*>, bool): Assertion `isValidArgumentType(Params[i]) && "Not a valid type for function argument!"' failed.
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff7fca700 (LWP 12128)]
0x00007ffff3671295 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 0x00007ffff3671295 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff3674438 in __GI_abort () at abort.c:90
#2 0x00007ffff366a322 in __assert_fail_base (fmt=0x7ffff37a7a40 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=assertion@entry=0x7ffff54eb210 "isValidArgumentType(Params[i]) && \"Not a valid type for function argument!\"",
file=file@entry=0x7ffff54eb160 "/export/scratch/laden/rust/src/llvm/lib/IR/Type.cpp", line=line@entry=352,
function=function@entry=0x7ffff54ecd20 "llvm::FunctionType::FunctionType(llvm::Type*, llvm::ArrayRef<llvm::Type*>, bool)") at assert.c:92
#3 0x00007ffff366a3d2 in __GI___assert_fail (assertion=0x7ffff54eb210 "isValidArgumentType(Params[i]) && \"Not a valid type for function argument!\"",
file=0x7ffff54eb160 "/export/scratch/laden/rust/src/llvm/lib/IR/Type.cpp", line=352,
function=0x7ffff54ecd20 "llvm::FunctionType::FunctionType(llvm::Type*, llvm::ArrayRef<llvm::Type*>, bool)") at assert.c:101
#4 0x00007ffff4e0922e in llvm::FunctionType::FunctionType(llvm::Type*, llvm::ArrayRef<llvm::Type*>, bool) ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustllvm.so
#5 0x00007ffff4e0c6a4 in llvm::FunctionType::get(llvm::Type*, llvm::ArrayRef<llvm::Type*>, bool) ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustllvm.so
#6 0x00007ffff4d61ad3 in LLVMFunctionType () from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustllvm.so
#7 0x00007ffff6245837 in middle::trans::foreign::lltype_for_fn_from_foreign_types::_3efcabcd646031bc::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#8 0x00007ffff61f8ef1 in middle::trans::foreign::register_foreign_item_fn::_e61730c5bda60ed::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#9 0x00007ffff60c7072 in middle::trans::base::get_item_val::_105f4fccc5a34258::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#10 0x00007ffff613ae6a in middle::trans::callee::trans_fn_ref_with_vtables::_b3fc9fe34183b8fd::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#11 0x00007ffff6134fff in middle::trans::callee::trans_fn_ref::_3bc7c5d473fb38e2::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#12 0x00007ffff6133816 in middle::trans::callee::trans::trans_def::_393fb21287b9de8a::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#13 0x00007ffff61331aa in middle::trans::callee::trans::_9f5cde934bc1c23::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#14 0x00007ffff6140371 in middle::trans::callee::trans_call::anon::expr_fn_28824 ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#15 0x00007ffff6154b5d in middle::trans::callee::trans_call_inner::anon::expr_fn_30060 ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#16 0x00007ffff6107f95 in middle::trans::base::with_scope_result::_3c37475ebd9d8f4e::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#17 0x00007ffff6140299 in middle::trans::callee::trans_call_inner::_6487564fced2e0f5::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#18 0x00007ffff613ff64 in middle::trans::callee::trans_call::_7b470c8b795336::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#19 0x00007ffff6166bf4 in middle::trans::expr::trans_rvalue_dps_unadjusted::_d32c51585fb33de::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#20 0x00007ffff60fd04d in middle::trans::expr::trans_into::_d32c51585fb33de::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#21 0x00007ffff610c0c0 in middle::trans::controlflow::trans_ret::_3e1fcfd939ae7dbe::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#22 0x00007ffff61697fe in middle::trans::expr::trans_rvalue_stmt_unadjusted::_864c579e85c1e6::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#23 0x00007ffff60fd18e in middle::trans::expr::trans_into::_d32c51585fb33de::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#24 0x00007ffff60fbf25 in middle::trans::base::trans_stmt::_23848dcd4ca4a65a::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#25 0x00007ffff60fab8f in middle::trans::controlflow::trans_block::_1849e222608921::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#26 0x00007ffff61eeffd in middle::trans::base::trans_closure::_90763adf39aa353::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#27 0x00007ffff60cba00 in middle::trans::base::trans_fn::_f17f8b2997424c81::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#28 0x00007ffff60c4acd in middle::trans::base::trans_item::_963c8e846ec1d7d3::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#29 0x00007ffff61f51bf in middle::trans::base::trans_mod::_b346ffabe25db3c::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#30 0x00007ffff60c473e in middle::trans::base::trans_item::_963c8e846ec1d7d3::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#31 0x00007ffff61f51bf in middle::trans::base::trans_mod::_b346ffabe25db3c::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#32 0x00007ffff60c473e in middle::trans::base::trans_item::_963c8e846ec1d7d3::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#33 0x00007ffff61f51bf in middle::trans::base::trans_mod::_b346ffabe25db3c::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#34 0x00007ffff60c473e in middle::trans::base::trans_item::_963c8e846ec1d7d3::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#35 0x00007ffff61f51bf in middle::trans::base::trans_mod::_b346ffabe25db3c::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#36 0x00007ffff6203e63 in middle::trans::base::trans_crate::_64fe861634d4eb8::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#37 0x00007ffff67e896a in driver::driver::phase_4_translate_to_llvm::_a1b35335ece8f3f1::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#38 0x00007ffff67e97d7 in driver::driver::compile_input::_f73aada72488c7b0::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#39 0x00007ffff6806735 in run_compiler::_9cbeaf4245dbd87c::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#40 0x00007ffff6817bbe in main::anon::expr_fn_101922 () from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#41 0x00007ffff6816105 in monitor::anon::expr_fn_101801 () from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#42 0x00007ffff68138be in task::__extensions__::try_101283::anon::expr_fn_101483 ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-d3cb8c2ccd84a7a7-0.8-pre.so
#43 0x00007ffff782f105 in task::spawn::spawn_raw_newsched::anon::expr_fn_21289 ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so
#44 0x00007ffff786b3ae in rt::task::__extensions__::build_start_wrapper::anon::anon::expr_fn_28284 ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so
#45 0x00007ffff786a1bd in rt::task::__extensions__::run::anon::expr_fn_28206 ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so
#46 0x00007ffff5d700a3 in rust_try (f=<optimized out>, fptr=<optimized out>, env=<optimized out>) at /scratch/laden/rust/src/rt/rust_builtin.cpp:552
#47 0x00007ffff786a074 in rt::task::__extensions__::meth_28204::try::_199ab8d6eb226980::_0$x2e8$x2dpre ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so
#48 0x00007ffff786b031 in rt::task::__extensions__::build_start_wrapper::anon::expr_fn_28268 ()
from /export/scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-6c65cf4b443341b1-0.8-pre.so
#49 0x0000000000000000 in ?? ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment