Actions
Bug #13398
closedsegfault: Thread.new(foo, &:bar)
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
Description
This works:
⤑ ruby -ve "p Thread.new('abc'){|s| s.reverse}.value" ~/C/opal
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
"cba"
but instead ends in a segfault
⤑ ruby -ve "Thread.new('abc',&:reverse)" ~/C/opal
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
[BUG] Segmentation fault at 0x00000000000000
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0001 p:---- s:0003 e:000002 (none) [FINISH]
-- Machine register context ------------------------------------------------
rax: 0x00007fda566cccb0 rbx: 0x000000010a589d30 rcx: 0x0000000000000002
rdx: 0x00007fda56801630 rdi: 0x0000000000000000 rsi: 0x0000d70000000000
rbp: 0x000070000d23ed70 rsp: 0x000070000d23ed70 r8: 0x00007fda56801628
r9: 0x0000000000404c30 r10: 0x00007fda56801630 r11: 0xffffffff00000000
r12: 0x00007fda56801600 r13: 0x00007fda566cc900 r14: 0x00007fda57032620
r15: 0x00007fda566cccb0 rip: 0x000000010a4d3108 rfl: 0x0000000000010202
-- C level backtrace information -------------------------------------------
0 libruby.2.4.0.dylib 0x000000010a4f8f84 rb_vm_bugreport + 388
1 libruby.2.4.0.dylib 0x000000010a3930ba rb_bug_context + 490
2 libruby.2.4.0.dylib 0x000000010a474d48 sigsegv + 72
3 libsystem_platform.dylib 0x00007fffb1d23b3a _sigtramp + 26
4 libruby.2.4.0.dylib 0x000000010a4d3108 rb_vm_ep_local_ep + 24
5 libruby.2.4.0.dylib 0x000000010a4afaed thread_start_func_2 + 1501
6 libruby.2.4.0.dylib 0x000000010a4af4ea thread_start_func_1 + 170
7 libsystem_pthread.dylib 0x00007fffb1d2d9af _pthread_body + 180
8 libsystem_pthread.dylib 0x00007fffb1d2d8fb _pthread_body + 0
-- Other runtime information -----------------------------------------------
* Loaded script: -e
* Loaded features:
0 enumerator.so
1 thread.rb
2 rational.so
3 complex.so
4 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin16/enc/encdb.bundle
5 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin16/enc/trans/transdb.bundle
6 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/unicode_normalize.rb
7 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin16/rbconfig.rb
8 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/compatibility.rb
9 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/defaults.rb
10 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/deprecate.rb
11 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/errors.rb
12 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/version.rb
13 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/requirement.rb
14 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/platform.rb
15 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/basic_specification.rb
16 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/stub_specification.rb
17 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/util/list.rb
18 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/x86_64-darwin16/stringio.bundle
19 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/specification.rb
20 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/exceptions.rb
21 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/dependency.rb
22 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_gem.rb
23 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/monitor.rb
24 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb
25 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems.rb
26 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/rubygems/path_support.rb
27 /Users/elia/.rvm/gems/ruby-2.4.0/gems/did_you_mean-1.1.0/lib/did_you_mean/version.rb
28 /Users/elia/.rvm/gems/ruby-2.4.0/gems/did_you_mean-1.1.0/lib/did_you_mean/core_ext/name_error.rb
29 /Users/elia/.rvm/gems/ruby-2.4.0/gems/did_you_mean-1.1.0/lib/did_you_mean/levenshtein.rb
30 /Users/elia/.rvm/gems/ruby-2.4.0/gems/did_you_mean-1.1.0/lib/did_you_mean/jaro_winkler.rb
31 /Users/elia/.rvm/gems/ruby-2.4.0/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checker.rb
32 /Users/elia/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/delegate.rb
33 /Users/elia/.rvm/gems/ruby-2.4.0/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
34 /Users/elia/.rvm/gems/ruby-2.4.0/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb
35 /Users/elia/.rvm/gems/ruby-2.4.0/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/name_error_checkers.rb
36 /Users/elia/.rvm/gems/ruby-2.4.0/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/method_name_checker.rb
37 /Users/elia/.rvm/gems/ruby-2.4.0/gems/did_you_mean-1.1.0/lib/did_you_mean/spell_checkers/null_checker.rb
38 /Users/elia/.rvm/gems/ruby-2.4.0/gems/did_you_mean-1.1.0/lib/did_you_mean/formatter.rb
39 /Users/elia/.rvm/gems/ruby-2.4.0/gems/did_you_mean-1.1.0/lib/did_you_mean.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
fish: 'ruby -ve "Thread.new('abc',&:re…' terminated by signal SIGABRT (Abort)
Files
Actions
Like0
Like0Like0Like0