Actions
Bug #11851
closedrb_profile_frames() causes segmentation fault
    Bug #11851:
    rb_profile_frames() causes segmentation fault
  
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (2015-12-20 trunk 53215) [x86_64-linux]
Description
When the control frame stack contains an ifunc-frame, calling rb_profile_frames() causes a segmentation fault.
I've attached a patch that changes it to ignore ifunc frames as it did previously.
Files
        
           Updated by nobu (Nobuyoshi Nakada) almost 10 years ago
          Updated by nobu (Nobuyoshi Nakada) almost 10 years ago
          
          
        
        
      
      Could you show reproducible code or add a test?
        
           Updated by rhenium (Kazuki Yamaguchi) almost 10 years ago
          Updated by rhenium (Kazuki Yamaguchi) almost 10 years ago
          
          
        
        
      
      Uploaded reproducible code to Gist: https://gist.github.com/rhenium/e3a179b0cac87606c183
This runs on Ruby 2.2.4 and patched trunk but segfaults on trunk.
        
           Updated by nobu (Nobuyoshi Nakada) almost 10 years ago
          Updated by nobu (Nobuyoshi Nakada) almost 10 years ago
          
          
        
        
      
      - Status changed from Open to Closed
Applied in changeset r53225.
vm_backtrace.c: ignore ifunc frames
- vm_backtrace.c (rb_profile_frames): ignore ifunc frames as it
 did before. [ruby-core:72409] [Bug #11851]
        
           Updated by usa (Usaku NAKAMURA) over 9 years ago
          Updated by usa (Usaku NAKAMURA) over 9 years ago
          
          
        
        
      
      - Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED
Actions