Skip to content

Instantly share code, notes, and snippets.

@burg
Created September 20, 2012 22:58
Show Gist options
  • Save burg/3758844 to your computer and use it in GitHub Desktop.
Save burg/3758844 to your computer and use it in GitHub Desktop.
boom crash
(gdb) run /Users/burg/repos/servo/src/rust-core-foundation/core_foundation.rc -o librustcorefoundation.dummy
Starting program: /usr/local/bin/rustc /Users/burg/repos/servo/src/rust-core-foundation/core_foundation.rc -o librustcorefoundation.dummy
Reading symbols for shared libraries .....+................................................................. done
Assertion failed: (S->getType()->isPointerTy() && "Invalid cast"), function CreatePointerCast, file /Users/burg/repos/rust/src/llvm/lib/VMCore/Instructions.cpp, line 2383.
Program received signal SIGABRT, Aborted.
[Switching to process 80740 thread 0x1d03]
0x00007fff8e233ce2 in __pthread_kill ()
(gdb) bt
#0 0x00007fff8e233ce2 in __pthread_kill ()
#1 0x00007fff8a7ec7d2 in pthread_kill ()
#2 0x00000001019cd5d6 in abort ()
#3 0x00000001019cd628 in __assert_rtn ()
#4 0x000000010195392c in llvm::CastInst::CreatePointerCast ()
#5 0x00000001018c82e2 in llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >::CreatePointerCast ()
#6 0x00000001018c2638 in LLVMBuildPointerCast ()
#7 0x0000000100d011d2 in LLVMBuildPointerCast__c_stack_shim ()
#8 0x000000010109c50e in __morestack () at rust_task.cpp:1327
#9 0x00000001010857a5 in rust_task::call_on_c_stack (this=0x1024010a0, args=0x1030c31e8, fn_ptr=0x1030c31e8) at rust_task.h:478
#10 0x00000001010863f9 in upcall_call_shim_on_c_stack (args=0x1030c31e8, fn_ptr=0x100d01190) at rust_upcall.cpp:51
#11 0x00000001007d3aad in middle::trans::build::PointerCast::_56ff51de0f7dedd::_04 ()
#12 0x0000000100806670 in middle::trans::callee::trans_call_inner::anon ()
#13 0x00000001007d32ed in middle::trans::base::with_scope::_06f4644b073fdf3::_04 ()
#14 0x00000001007fc0b4 in middle::trans::callee::trans_call_inner::_96cd685ce4967883::_04 ()
#15 0x00000001007fbf41 in middle::trans::callee::trans_call::_eec6ef8f9c8d4dc7::_04 ()
#16 0x0000000100811a6f in middle::trans::expr::trans_rvalue_dps_unadjusted::_1bc04771d3ad65e3::_04 ()
#17 0x0000000100d08f10 in __morestack ()
Previous frame inner to this frame (gdb could not unwind past this frame)
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment