From: sam.saffron@... Date: 2020-02-26T07:11:27+00:00 Subject: [ruby-core:97270] [Ruby master Bug#16654] Segfault in rb_str_hash Issue #16654 has been updated by sam.saffron (Sam Saffron). Nobu, This looks like Mac to me maybe llvm related? ---------------------------------------- Bug #16654: Segfault in rb_str_hash https://bugs.ruby-lang.org/issues/16654#change-84386 * Author: nateberkopec (Nate Berkopec) * Status: Feedback * Priority: Normal * ruby -v: ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin18] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- Seen in ruby 2.6.5. ``` -- C level backtrace information ------------------------------------------- /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(rb_vm_bugreport+0x82) [0x10632d9c2] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(rb_bug_context+0x1d8) [0x1061940a8] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(sigsegv+0x51) [0x10629be41] /usr/lib/system/libsystem_platform.dylib(_sigtramp+0x1d) [0x7fff67bd442d] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(ruby_sip_hash13+0xf0) [0x106257bf0] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(rb_str_hash+0x6c) [0x1062b035c] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(st_general_delete+0x27) [0x1062a5287] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(rb_str_free+0x61) [0x1062b3401] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(obj_free+0x270) [0x1061bbf30] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(gc_sweep_step+0x24c) [0x1061bb66c] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(gc_sweep+0xdb) [0x1061bd37b] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(gc_start+0xa48) [0x1061bafc8] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(gc_start_internal+0x282) [0x1061b7a32] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(vm_call_cfunc+0x15b) [0x1063210fb] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(vm_exec_core+0x32aa) [0x10630b19a] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(rb_vm_exec+0xa0c) [0x10631c04c] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(ruby_exec_internal+0xd8) [0x10619eeb8] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(ruby_run_node+0x49) [0x10619ed49] /Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(main+0x5d) [0x10611775d] ``` Another dump posted here: https://github.com/SamSaffron/memory_profiler/issues/83 For reproduction, I was wrapping MemoryProfiler around a Rails application startup, but it may be possible to repro this in a much simpler way. ```ruby require "memory_profiler" report = MemoryProfiler.report do require ::File.expand_path('../config/environment', __FILE__) end report.pretty_print ``` ---Files-------------------------------- diagnostic_report.crash (44.1 KB) rubycrashdump.txt (3.47 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: