Last active
September 29, 2016 13:15
-
-
Save wmoxam/1e641cf2a124112735b7e0fdab871ed6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ crystal threads.cr | |
#<Thread:0x1023dffc0 @th=nil, @exception=nil, @detached=false, @func=#<Proc(Nil):0x102073f60>, @current_fiber=#<Fiber:0x1023def50: main>> | |
Invalid memory access (signal 11) at address 0x48 | |
Invalid memory access (signal 11) at address 0x48 | |
Invalid memory access (signal 11) at address 0x48 | |
[4329024091] *CallStack::print_backtrace:Int32 +107 | |
[4329024091] *CallStack::print_backtrace:Int32 +107 | |
[4329024091] *CallStack::print_backtrace:Int32 +107 | |
[4329009207] __crystal_sigfault_handler +55 | |
[4329009207] __crystal_sigfault_handler +55 | |
[4329009207] __crystal_sigfault_handler +55 | |
[140735729448234] _sigtramp +26 | |
[140735729448234] _sigtramp +26 | |
[140735729448234] _sigtramp +26 | |
[4329015772] *Fiber#to_s<String::Builder>:String::Builder +92 | |
[4329015772] *Fiber#to_s<String::Builder>:String::Builder +92 | |
[4329015772] *Fiber#to_s<String::Builder>:String::Builder +92 | |
[4329015673] *Fiber#inspect<String::Builder>:String::Builder +9 | |
[4329015673] *Fiber#inspect<String::Builder>:String::Builder +9 | |
[4329015673] *Fiber#inspect<String::Builder>:String::Builder +9 | |
[4329017225] *Thread@Reference#inspect<String::Builder>:Nil +777 | |
[4329017225] *Thread@Reference#inspect<String::Builder>:Nil +777 | |
[4329017225] *Thread@Reference#inspect<String::Builder>:Nil +777 | |
[4329016418] *Thread@Object#inspect:String +66 | |
[4329016418] *Thread@Object#inspect:String +66 | |
[4329016418] *Thread@Object#inspect:String +66 | |
[4329009425] ~procProc(Nil)@./threads.cr:7 +17 | |
[4329009457] ~procProc(Nil)@./threads.cr:8 +17 | |
[4329009489] ~procProc(Nil)@./threads.cr:9 +17 | |
[4329018305] *Thread#start:(Exception+ | Nil) +65 | |
[4329018305] *Thread#start:(Exception+ | Nil) +65 | |
[4329018305] *Thread#start:(Exception+ | Nil) +65 | |
[4329009401] ~procProc(Pointer(Void), (Exception | Nil))@/usr/local/Cellar/crystal-lang/0.19.2/src/thread.cr:19 +9 | |
[4329009401] ~procProc(Pointer(Void), (Exception | Nil))@/usr/local/Cellar/crystal-lang/0.19.2/src/thread.cr:19 +9 | |
[4329009401] ~procProc(Pointer(Void), (Exception | Nil))@/usr/local/Cellar/crystal-lang/0.19.2/src/thread.cr:19 +9 | |
[4329586090] GC_inner_start_routine +90 | |
[4329586090] GC_inner_start_routine +90 | |
[4329586090] GC_inner_start_routine +90 | |
[4329569928] GC_call_with_stack_base +27 | |
[4329569928] GC_call_with_stack_base +27 | |
[4329569928] GC_call_with_stack_base +27 | |
[140735840500125] _pthread_body +131 | |
[140735840500125] _pthread_body +131 | |
[140735840500125] _pthread_body +131 | |
[140735840499994] _pthread_start +168 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "thread" | |
puts Thread.current.inspect | |
threads = [] of Thread | |
threads << Thread.new { puts Thread.current.inspect } | |
threads << Thread.new { puts Thread.current.inspect } | |
threads << Thread.new { puts Thread.current.inspect } | |
threads.each &.join |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment