Skip to content

Instantly share code, notes, and snippets.

/-

Created February 29, 2016 07:58
Show Gist options
  • Save anonymous/ce698e93fd2aa84b30fd to your computer and use it in GitHub Desktop.
Save anonymous/ce698e93fd2aa84b30fd to your computer and use it in GitHub Desktop.
$ gdb --args ../usr/bin/julia.exe -C x86-64 --output-ji ../usr/lib/julia/inference0.ji -f coreimg.jl
GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
Copyright (C) 2015 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-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ../usr/bin/julia.exe...done.
(gdb) r
Starting program: /cygdrive/e/code/msys64/home/Tony/julia/usr/bin/julia.exe -C x86-64 --output-ji ../usr/lib/julia/inference0.ji -f coreimg.jl
[New Thread 7516.0x2840]
[New Thread 7516.0x18d8]
[New Thread 7516.0x25bc]
[New Thread 7516.0x204c]
Program received signal SIGSEGV, Segmentation fault.
0x000000007093ac40 in llvm::CastInst::castIsValid(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*) () from /cygdrive/e/code/msys64/home/Tony/julia/usr/bin/libjulia.dll
(gdb) bt
#0 0x000000007093ac40 in llvm::CastInst::castIsValid(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*) () from /cygdrive/e/code/msys64/home/Tony/julia/usr/bin/libjulia.dll
#1 0x000000007093cc08 in llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*, llvm::Twine const&, llvm::Instruction*) ()
from /cygdrive/e/code/msys64/home/Tony/julia/usr/bin/libjulia.dll
#2 0x0000000070650917 in combineStoreToNewValue(llvm::InstCombiner&, llvm::StoreInst&, llvm::Value*) [clone .isra.250] [clone .constprop.293] ()
from /cygdrive/e/code/msys64/home/Tony/julia/usr/bin/libjulia.dll
#3 0x00000000706547fe in llvm::InstCombiner::visitLoadInst(llvm::LoadInst&) ()
from /cygdrive/e/code/msys64/home/Tony/julia/usr/bin/libjulia.dll
#4 0x000000007061b2c7 in llvm::InstCombiner::run() ()
from /cygdrive/e/code/msys64/home/Tony/julia/usr/bin/libjulia.dll
#5 0x000000007061ce1f in combineInstructionsOverFunction(llvm::Function&, llvm::InstCombineWorklist&, llvm::AliasAnalysis*, llvm::AssumptionCache&, llvm::TargetLibraryInfo&, llvm::DominatorTree&, llvm::LoopInfo*) [clone .constprop.628] ()
from /cygdrive/e/code/msys64/home/Tony/julia/usr/bin/libjulia.dll
#6 0x000000007061d73f in (anonymous namespace)::InstructionCombiningPass::runOnFunction(llvm::Function&) () from /cygdrive/e/code/msys64/home/Tony/julia/usr/bin/libjulia.dll
#7 0x000000007094f773 in llvm::FPPassManager::runOnFunction(llvm::Function&) ()
from /cygdrive/e/code/msys64/home/Tony/julia/usr/bin/libjulia.dll
#8 0x000000007094fbeb in llvm::FPPassManager::runOnModule(llvm::Module&) ()
from /cygdrive/e/code/msys64/home/Tony/julia/usr/bin/libjulia.dll
#9 0x000000007094eb45 in llvm::legacy::PassManagerImpl::run(llvm::Module&) ()
from /cygdrive/e/code/msys64/home/Tony/julia/usr/bin/libjulia.dll
#10 0x000000006fda1652 in (anonymous namespace)::JuliaOJIT::<lambda(llvm::Module&)>::operator() (M=..., __closure=0x75112f8)
at E:/code/msys64/home/Tony/julia/src/jitlayers.cpp:288
#11 std::_Function_handler<llvm::object::OwningBinary<llvm::object::ObjectFile>(llvm::Module&), (anonymous namespace)::JuliaOJIT::JuliaOJIT(llvm::TargetMachine&)::<lambda(llvm::Module&)> >::_M_invoke(const std::_Any_data &, llvm::Module &) (__functor=..., __args#0=...)
at e:/code/msys64/home/tony/julia/usr/x86_64-w64-mingw32/sys-root/mingw/lib/gcc/x86_64-w64-mingw32/5.3.0/include/c++/functional:1857
#12 0x000000006fdb445c in std::function<llvm::object::OwningBinary<llvm::object::ObjectFile> (llvm::Module&)>::operator()(llvm::Module&) const (__args#0=..., this=0x75112f8)
at e:/code/msys64/home/tony/julia/usr/x86_64-w64-mingw32/sys-root/mingw/lib/gcc/x86_64-w64-mingw32/5.3.0/include/c++/functional:2271
#13 llvm::orc::IRCompileLayer<llvm::orc::ObjectLinkingLayer<(anonymous namespace)::DebugObjectRegistrar> >::addModuleSet<llvm::SmallVector<std::unique_ptr<llvm::Module>, 1u>, llvm::RTDyldMemoryManager*, std::unique_ptr<llvm::orc::LambdaResolver<(anonymous namespace)::JuliaOJIT::addModule(llvm::Module*)::<lambda(const string&)>, (anonymous namespace)::JuliaOJ---Type <return> to continue, or q <return> to quit---
IT::addModule(llvm::Module*)::<lambda(const string&)> >, std::default_delete<llvm::orc::LambdaResolver<(anonymous namespace)::JuliaOJIT::addModule(llvm::Module*)::<lambda(const string&)>, (anonymous namespace)::JuliaOJIT::addModule(llvm::Module*)::<lambda(const string&)> > > > > (Resolver=..., MemMgr=0xfffffffffffffffc, Ms=..., this=0x75112f0)
at E:/code/msys64/home/Tony/julia/usr/include/llvm/ExecutionEngine/Orc/IRCompileLayer.h:76
#14 (anonymous namespace)::JuliaOJIT::addModule (M=0x146e310, this=<optimized out>)
at E:/code/msys64/home/Tony/julia/src/jitlayers.cpp:352
#15 jl_finalize_module (m=m@entry=0x756e160)
at E:/code/msys64/home/Tony/julia/src/codegen.cpp:992
#16 0x000000006fdb54b8 in jl_generate_fptr (li=0x80025eb0, li@entry=0x146e5c0)
at E:/code/msys64/home/Tony/julia/src/codegen.cpp:1095
#17 0x000000006fd51ed0 in jl_call_method_internal (nargs=2, args=0x146e660,
meth=0x146e5c0) at E:/code/msys64/home/Tony/julia/src/julia_internal.h:66
#18 jl_apply_generic (args=0x146e660, args@entry=0x0, nargs=nargs@entry=2)
at E:/code/msys64/home/Tony/julia/src/gf.c:1903
#19 0x000000006fd6903d in do_call (args=0x80042bb0, args@entry=0x0, nargs=nargs@entry=2,
locals=0x0, locals@entry=0x7fff4370, nl=nl@entry=0, ngensym=ngensym@entry=0)
at E:/code/msys64/home/Tony/julia/src/interpreter.c:65
#20 0x000000006fd6838c in eval (e=0x80046990, locals=0x7fff4370, locals@entry=0x0,
nl=nl@entry=0, ngensym=ngensym@entry=0)
at E:/code/msys64/home/Tony/julia/src/interpreter.c:185
#21 0x000000006fd69024 in do_call (args=0x800494e0, args@entry=0x40004,
nargs=nargs@entry=4, locals=locals@entry=0x0, nl=nl@entry=0, ngensym=0,
ngensym@entry=140724603003915) at E:/code/msys64/home/Tony/julia/src/interpreter.c:64
#22 0x000000006fd6838c in eval (e=0x80046970, locals=locals@entry=0x0, nl=nl@entry=0,
ngensym=140724603003915, ngensym@entry=0)
at E:/code/msys64/home/Tony/julia/src/interpreter.c:185
#23 0x000000006fd69024 in do_call (args=0x80049480,
args@entry=0x6fd58882 <scm_to_julia_+66>, nargs=nargs@entry=3, locals=0x0,
locals@entry=0x74177a8, nl=0, nl@entry=21426880, ngensym=0, ngensym@entry=2147783712)
at E:/code/msys64/home/Tony/julia/src/interpreter.c:64
#24 0x000000006fd6838c in eval (e=0x80046950, locals=0x74177a8, locals@entry=0x8001c010,
nl=21426880, nl@entry=2147772720, ngensym=2147783712, ngensym@entry=1)
at E:/code/msys64/home/Tony/julia/src/interpreter.c:185
#25 0x000000006fd681d2 in eval (e=e@entry=0x3, locals=0x8001c010,
locals@entry=0x71362f20 <module_sym>, nl=2147772720, nl@entry=121727848, ngensym=1,
ngensym@entry=1899455232) at E:/code/msys64/home/Tony/julia/src/interpreter.c:268
#26 0x000000006fd696d2 in eval_body (stmts=0x1, stmts@entry=0x80049390,
locals=0x71362f20 <module_sym>, locals@entry=0x0, nl=121727848, nl@entry=0,
---Type <return> to continue, or q <return> to quit---
ngensym=1899455232, ngensym@entry=0, toplevel=1, start=0)
at E:/code/msys64/home/Tony/julia/src/interpreter.c:550
#27 0x000000006fd69b00 in jl_toplevel_eval_body (stmts=0x80049390)
at E:/code/msys64/home/Tony/julia/src/interpreter.c:481
#28 0x000000006fd81f2e in jl_toplevel_eval_flex (e=<optimized out>, fast=1)
at E:/code/msys64/home/Tony/julia/src/toplevel.c:537
#29 0x000000006fd82745 in jl_toplevel_eval_flex (e=<optimized out>, fast=fast@entry=1)
at E:/code/msys64/home/Tony/julia/src/toplevel.c:563
#30 0x000000006fd5a47a in jl_parse_eval_all (
fname=0x1fee716c56d3b729 <error: Cannot access memory at address 0x1fee716c56d3b729>, fname@entry=0x70c64fd1 <extensions+1905> "boot.jl", len=2305207733467723561,
len@entry=8, content=content@entry=0x0, contentlen=contentlen@entry=0)
at E:/code/msys64/home/Tony/julia/src/ast.c:784
#31 0x000000006fd827d9 in jl_load (
fname=fname@entry=0x70c64fd1 <extensions+1905> "boot.jl", len=len@entry=8)
at E:/code/msys64/home/Tony/julia/src/toplevel.c:583
#32 0x000000006fd70e78 in _julia_init (rel=<optimized out>)
at E:/code/msys64/home/Tony/julia/src/init.c:644
#33 0x000000006fd715dd in julia_init (rel=<optimized out>)
at E:/code/msys64/home/Tony/julia/src/task.c:275
#34 0x0000000000402a6f in wmain (argc=102790096, argv=0x40140c <__tmainCRTStartup+604>,
envp=<optimized out>) at E:/code/msys64/home/Tony/julia/ui/repl.c:655
#35 0x000000000040140c in __tmainCRTStartup () at crt/crtexe.c:329
#36 0x000000000040153b in mainCRTStartup () at crt/crtexe.c:212
Warning: the current language does not match this frame.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment