Skip to content

Instantly share code, notes, and snippets.

@oyamad
Last active January 23, 2019 13:05
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 oyamad/46014ee6ef257e09d333cddb30be0993 to your computer and use it in GitHub Desktop.
Save oyamad/46014ee6ef257e09d333cddb30be0993 to your computer and use it in GitHub Desktop.
lldb output for `LRSLib.nashsolve(filename1, filename2)`
$ lldb /Users/oyama/src/julia/usr/bin/julia-debug
(lldb) target create "/Users/oyama/src/julia/usr/bin/julia-debug"
warning: (x86_64) /Users/oyama/src/julia/usr/lib/libLLVM.dylib empty dSYM file detected, dSYM was created with an executable with no debug info.
Current executable set to '/Users/oyama/src/julia/usr/bin/julia-debug' (x86_64).
(lldb) run
Process 71244 launched: '/Users/oyama/src/julia/usr/bin/julia-debug' (x86_64)
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.0.3 (2018-12-18)
 _/ |\__'_|_|_|\__'_|  |  
|__/                   |

julia> using LRSLib

julia> LRSLib.nashsolve("game1", "game2")
3-element Array{Tuple{Array{Rational{BigInt},1},Array{Rational{BigInt},1}},1}:
 ([2//3, 1//3, 0//1], [1//3, 2//3])
 ([0//1, 1//3, 2//3], [2//3, 1//3])
 ([0//1, 0//1, 1//1], [1//1, 0//1])

julia> exit()

signal (11): Segmentation fault: 11
in expression starting at no file:0
_ZN4llvm16MetadataTracking7untrackEPvRNS_8MetadataE at /Users/oyama/src/julia/usr/lib/libLLVM.dylib (unknown line)
_ZN4llvm6MDNode17dropAllReferencesEv at /Users/oyama/src/julia/usr/lib/libLLVM.dylib (unknown line)
_ZN4llvm15LLVMContextImplD2Ev at /Users/oyama/src/julia/usr/lib/libLLVM.dylib (unknown line)
_ZN4llvm11LLVMContextD1Ev at /Users/oyama/src/julia/usr/lib/libLLVM.dylib (unknown line)
__cxa_finalize_ranges at /usr/lib/system/libsystem_c.dylib (unknown line)
exit at /usr/lib/system/libsystem_c.dylib (unknown line)
jl_exit at /Users/oyama/src/julia/src/jl_uv.c:605
exit at ./initdefs.jl:28 [inlined]
exit at ./initdefs.jl:29
jl_fptr_args at /Users/oyama/src/julia/src/gf.c:1841
jl_apply_generic at /Users/oyama/src/julia/src/gf.c:2184
do_call at /Users/oyama/src/julia/src/interpreter.c:324
eval_value at /Users/oyama/src/julia/src/interpreter.c:430
eval_stmt_value at /Users/oyama/src/julia/src/interpreter.c:363
eval_body at /Users/oyama/src/julia/src/interpreter.c:678
jl_interpret_toplevel_thunk_callback at /Users/oyama/src/julia/src/interpreter.c:806
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x1217a8b9f)
unknown function (ip: 0xffffffffffffffff)
jl_interpret_toplevel_thunk at /Users/oyama/src/julia/src/interpreter.c:815
jl_toplevel_eval_flex at /Users/oyama/src/julia/src/toplevel.c:805
jl_toplevel_eval at /Users/oyama/src/julia/src/toplevel.c:814
jl_toplevel_eval_in at /Users/oyama/src/julia/src/builtins.c:622
eval at ./boot.jl:319
jl_fptr_args at /Users/oyama/src/julia/src/gf.c:1841
jl_apply_generic at /Users/oyama/src/julia/src/gf.c:2184
eval_user_input at /Users/oyama/src/julia/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:85
macro expansion at /Users/oyama/src/julia/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:117 [inlined]
#28 at ./task.jl:259
jl_fptr_args at /Users/oyama/src/julia/src/gf.c:1841
jl_apply_generic at /Users/oyama/src/julia/src/gf.c:2184
jl_apply at /Users/oyama/src/julia/src/./julia.h:1537
start_task at /Users/oyama/src/julia/src/task.c:268
Allocations: 13944057 (Pool: 13942744; Big: 1313); GC: 20
Process 71244 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x6)
    frame #0: 0x0000000100c82704 libLLVM.dylib`llvm::MetadataTracking::untrack(void*, llvm::Metadata&) + 4
libLLVM.dylib`llvm::MetadataTracking::untrack:
->  0x100c82704 <+4>:  movzbl (%rsi), %ecx
    0x100c82707 <+7>:  movl   %ecx, %eax
    0x100c82709 <+9>:  addl   $-0x4, %eax
    0x100c8270c <+12>: cmpl   $0x19, %eax
Target 0: (julia-debug) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x6)
  * frame #0: 0x0000000100c82704 libLLVM.dylib`llvm::MetadataTracking::untrack(void*, llvm::Metadata&) + 4
    frame #1: 0x0000000100c88f47 libLLVM.dylib`llvm::MDNode::dropAllReferences() + 87
    frame #2: 0x0000000100c678c8 libLLVM.dylib`llvm::LLVMContextImpl::~LLVMContextImpl() + 184
    frame #3: 0x0000000100c65a16 libLLVM.dylib`llvm::LLVMContext::~LLVMContext() + 22
    frame #4: 0x00007fffc9f70178 libsystem_c.dylib`__cxa_finalize_ranges + 332
    frame #5: 0x00007fffc9f704b2 libsystem_c.dylib`exit + 55
    frame #6: 0x00000001000f4503 libjulia-debug.dylib`jl_exit(exitcode=0) at jl_uv.c:605
    frame #7: 0x0000000104376cc3 sys-debug.dylib`japi1_exit_11251 [inlined] exit at initdefs.jl:28 [opt]
    frame #8: 0x0000000104376cbb sys-debug.dylib`japi1_exit_11251(#self#=<unavailable>) at initdefs.jl:29 [opt]
    frame #9: 0x000000010009ff70 libjulia-debug.dylib`jl_fptr_args(m=0x0000000106cdfa70, args=0x00007fff5fbfebf0, nargs=1) at gf.c:1841
    frame #10: 0x00000001000a85cc libjulia-debug.dylib`jl_apply_generic(args=0x00007fff5fbfebf0, nargs=1) at gf.c:2184
    frame #11: 0x0000000100485265 libjulia-debug.dylib`do_call(args=0x000000010d7a2e70, nargs=1, s=0x00007fff5fbff130) at interpreter.c:324
    frame #12: 0x0000000100483f19 libjulia-debug.dylib`eval_value(e=0x0000000110d47a70, s=0x00007fff5fbff130) at interpreter.c:430
    frame #13: 0x000000010048492b libjulia-debug.dylib`eval_stmt_value(stmt=0x0000000110d47a70, s=0x00007fff5fbff130) at interpreter.c:363
    frame #14: 0x000000010048319f libjulia-debug.dylib`eval_body(stmts=0x000000010d7a2dd0, s=0x00007fff5fbff130, start=0, toplevel=1) at interpreter.c:678
    frame #15: 0x00000001004836b4 libjulia-debug.dylib`jl_interpret_toplevel_thunk_callback(s=0x00007fff5fbff130, vargs=0x00007fff5fbff198) at interpreter.c:806
    frame #16: 0x00000001000c2f8c libjulia-debug.dylib`enter_interpreter_frame + 28
    frame #17: 0x0000000100483764 libjulia-debug.dylib`jl_interpret_toplevel_thunk(m=0x00000001047efa80, src=0x00000001217a8ba0) at interpreter.c:815
    frame #18: 0x00000001000f02f0 libjulia-debug.dylib`jl_toplevel_eval_flex(m=0x00000001047efa80, e=0x0000000110d478d0, fast=1, expanded=0) at toplevel.c:805
    frame #19: 0x00000001000f1892 libjulia-debug.dylib`jl_toplevel_eval(m=0x00000001047efa80, v=0x0000000110d478d0) at toplevel.c:814
    frame #20: 0x00000001000b9a57 libjulia-debug.dylib`jl_toplevel_eval_in(m=0x00000001047efa80, ex=0x0000000110d478d0) at builtins.c:622
    frame #21: 0x000000010414ad82 sys-debug.dylib`japi1_eval_3916(#self#=<unavailable>, m=Module @ 0x00000001047efa80, e=0x000000010b9d94e0) at boot.jl:319 [opt]
    frame #22: 0x000000010009ff70 libjulia-debug.dylib`jl_fptr_args(m=0x0000000104eb4c20, args=0x00007fff5fbff618, nargs=3) at gf.c:1841
    frame #23: 0x00000001000a85cc libjulia-debug.dylib`jl_apply_generic(args=0x00007fff5fbff618, nargs=3) at gf.c:2184
    frame #24: 0x000000010433b505 sys-debug.dylib`japi1_eval_user_input_10280(#self#=<unavailable>, ast=0x000000010b9d94e0, backend=REPLBackend @ 0x000000010d809840) at REPL.jl:85 [opt]
    frame #25: 0x000000010433b6fb sys-debug.dylib`japi1_#28_10278 [inlined] macro expansion at REPL.jl:117 [opt]
    frame #26: 0x000000010433b6d0 sys-debug.dylib`japi1_#28_10278(#self#=<unavailable>) at task.jl:259 [opt]
    frame #27: 0x000000010009ff70 libjulia-debug.dylib`jl_fptr_args(m=0x0000000104ef55c0, args=0x000000010d028dd0, nargs=1) at gf.c:1841
    frame #28: 0x00000001000a85cc libjulia-debug.dylib`jl_apply_generic(args=0x000000010d028dd0, nargs=1) at gf.c:2184
    frame #29: 0x00000001000cafd9 libjulia-debug.dylib`jl_apply(args=0x000000010d028dd0, nargs=1) at julia.h:1537
    frame #30: 0x00000001000caeb2 libjulia-debug.dylib`start_task at task.c:268
(lldb) up
frame #1: 0x0000000100c88f47 libLLVM.dylib`llvm::MDNode::dropAllReferences() + 87
libLLVM.dylib`llvm::MDNode::dropAllReferences:
    0x100c88f47 <+87>:  movq   $0x0, (%r12,%rbx)
    0x100c88f4f <+95>:  testq  %r15, %r15
    0x100c88f52 <+98>:  jne    0x100c88f20               ; <+48>
    0x100c88f54 <+100>: movq   0x10(%r14), %rax
(lldb) up
frame #2: 0x0000000100c678c8 libLLVM.dylib`llvm::LLVMContextImpl::~LLVMContextImpl() + 184
libLLVM.dylib`llvm::LLVMContextImpl::~LLVMContextImpl:
    0x100c678c8 <+184>: addq   $0x8, %rbx
    0x100c678cc <+188>: cmpq   %rbx, %r14
    0x100c678cf <+191>: jne    0x100c678c0               ; <+176>
    0x100c678d1 <+193>: cmpl   $0x0, 0x1f0(%r12)
(lldb) up
frame #3: 0x0000000100c65a16 libLLVM.dylib`llvm::LLVMContext::~LLVMContext() + 22
libLLVM.dylib`llvm::LLVMContext::~LLVMContext:
    0x100c65a16 <+22>: movq   %rbx, %rdi
    0x100c65a19 <+25>: addq   $0x8, %rsp
    0x100c65a1d <+29>: popq   %rbx
    0x100c65a1e <+30>: popq   %rbp
(lldb) up
frame #4: 0x00007fffc9f70178 libsystem_c.dylib`__cxa_finalize_ranges + 332
libsystem_c.dylib`__cxa_finalize_ranges:
    0x7fffc9f70178 <+332>: jmp    0x7fffc9f70189            ; <+349>
    0x7fffc9f7017a <+334>: callq  *0x18(%r12,%r15)
    0x7fffc9f7017f <+339>: jmp    0x7fffc9f70189            ; <+349>
    0x7fffc9f70181 <+341>: movq   0x18(%r12,%r15), %rdi
(lldb) up
frame #5: 0x00007fffc9f704b2 libsystem_c.dylib`exit + 55
libsystem_c.dylib`exit:
    0x7fffc9f704b2 <+55>: movq   0x8ed77c7(%rip), %rax     ; __cleanup
    0x7fffc9f704b9 <+62>: testq  %rax, %rax
    0x7fffc9f704bc <+65>: je     0x7fffc9f704c0            ; <+69>
    0x7fffc9f704be <+67>: callq  *%rax
(lldb) up
frame #6: 0x00000001000f4503 libjulia-debug.dylib`jl_exit(exitcode=0) at jl_uv.c:605
   602 	{
   603 	    uv_tty_reset_mode();
   604 	    jl_atexit_hook(exitcode);
-> 605 	    exit(exitcode);
   606 	}
   607 	
   608 	JL_DLLEXPORT int jl_getpid(void)
(lldb) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment