Issue #14693 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED to 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONE

ruby_2_5 r64418 merged revision(s) 61567.

----------------------------------------
Bug #14693: Segfault calling super+[] from redefined #backtrace
https://bugs.ruby-lang.org/issues/14693#change-73576

* Author: elia (Elia Schito)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]
* Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONE
----------------------------------------
~~~ text
opal:elia/errors-and-filenames-review  ruby -e 'class E < StandardError; def backtrace; super + []; end; end; raise E'                ~/C/opal
Traceback (most recent call last):
-e: [BUG] Segmentation fault at 0x00007f9500000000
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:                    
     * ~/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:0000 s:0003 E:002630 (none) [FINISH]


-- Machine register context ------------------------------------------------
 rax: 0x000000000000002a rbx: 0x00007f958e016af0 rcx: 0x0000000000000001
 rdx: 0x0000000000000008 rdi: 0x00007f958e016be0 rsi: 0x00007f9500000000
 rbp: 0x00007ffeecdd8470 rsp: 0x00007ffeecdd8400  r8: 0x00007fffb7ebf048
  r9: 0x0000000000000040 r10: 0x00007fffb7ebf040 r11: 0xffffffffffffffff
 r12: 0x0000000000000008 r13: 0x0000000000000001 r14: 0x0000000000000008
 r15: 0x00007f9500000000 rip: 0x0000000102ea5465 rfl: 0x0000000000010212

-- C level backtrace information -------------------------------------------
0   libruby.2.5.dylib                   0x0000000103018c27 rb_vm_bugreport + 135
1   libruby.2.5.dylib                   0x0000000102e9d1a8 rb_bug_context + 472
2   libruby.2.5.dylib                   0x0000000102f8d071 sigsegv + 81
3   libsystem_platform.dylib            0x00007fff7fbc1f5a _sigtramp + 26
4   libruby.2.5.dylib                   0x0000000102ea5465 print_backtrace + 37
5   libruby.2.5.dylib                   0x0000000102ea541a rb_error_write + 362
6   libruby.2.5.dylib                   0x0000000102ea5cf0 rb_ec_error_print + 176
7   libruby.2.5.dylib                   0x0000000102ea6423 error_handle + 387
8   libruby.2.5.dylib                   0x0000000102ea6998 ruby_cleanup + 376
9   libruby.2.5.dylib                   0x0000000102ea6c1f ruby_run_node + 63
10  ruby                                0x0000000102e27f2f main + 79

-- 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.5.0/lib/ruby/2.5.0/x86_64-darwin17/enc/encdb.bundle
    5 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/x86_64-darwin17/enc/trans/transdb.bundle
    6 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/x86_64-darwin17/rbconfig.rb
    7 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/compatibility.rb
    8 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/defaults.rb
    9 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/deprecate.rb
   10 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/errors.rb
   11 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/version.rb
   12 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/requirement.rb
   13 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/platform.rb
   14 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/basic_specification.rb
   15 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/stub_specification.rb
   16 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/util/list.rb
   17 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/x86_64-darwin17/stringio.bundle
   18 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb
   19 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/exceptions.rb
   20 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/dependency.rb
   21 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_gem.rb
   22 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/2.5.0/monitor.rb
   23 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb
   24 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems.rb
   25 /Users/elia/.rvm/rubies/ruby-2.5.0/lib/ruby/site_ruby/2.5.0/rubygems/path_support.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

[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.

~~~




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>