Project

General

Profile

Bug #13895

TestVMDump test fails on High Sierra

Added by hsbt (Hiroshi SHIBATA) 2 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 2.5.0dev (2017-09-14 trunk 59870) [x86_64-darwin17]
[ruby-core:82784]

Description

TestVMDump#test_darwin_invalid_call fails with Timeout::Error

I can reproduce with ruby -rfiddle -e "Fiddle::Function.new(Fiddle::Pointer.new(1), [], Fiddle::TYPE_VOID).call".
After that backtrace was stopped "C level backtrace information" section. like this

~ > ruby -rfiddle -e "Fiddle::Function.new(Fiddle::Pointer.new(1), [], Fiddle::TYPE_VOID).call"
-e:1: [BUG] Segmentation fault at 0x0000000000000001
ruby 2.5.0dev (2017-09-14 trunk 59870) [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:0003 p:---- s:0010 e:000009 CFUNC  :call
c:0002 p:0041 s:0006 e:000005 EVAL   -e:1 [FINISH]
c:0001 p:0000 s:0003 E:002150 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
-e:1:in `<main>'
-e:1:in `call'

-- Machine register context ------------------------------------------------
 rax: 0x0000000000000000 rbx: 0x00007ffee4ff8d88 rcx: 0x0000000000000000
 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x0000000000000000
 rbp: 0x00007ffee4ff8c00 rsp: 0x00007ffee4ff8bf8  r8: 0x0000000000000000
  r9: 0x0000000000000000 r10: 0x00007ffee4ff8b50 r11: 0x0000000000000001
 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x000000010b1566e0
 r15: 0x00007ffee4ff8d70 rip: 0x0000000000000001 rfl: 0x0000000000010246

-- C level backtrace information -------------------------------------------
(stopped this line)

Related issues

Related to Ruby trunk - Bug #13566: A process freezes at the beginning of C level backtrace when a certain SEGV is occurredClosed

Associated revisions

Revision 59893
Added by naruse (Yui NARUSE) 2 months ago

fix the case High Sierra's mincore(2) may return -128 [Bug #13895]

History

#1 Updated by hsbt (Hiroshi SHIBATA) 2 months ago

  • Related to Bug #13566: A process freezes at the beginning of C level backtrace when a certain SEGV is occurred added

#2 Updated by naruse (Yui NARUSE) 2 months ago

  • Status changed from Open to Closed

Applied in changeset trunk|r59893.


fix the case High Sierra's mincore(2) may return -128 [Bug #13895]

#3 Updated by hsbt (Hiroshi SHIBATA) 2 months ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: DONTNEED, 2.3: REQUIRED, 2.4: REQUIRED

Also available in: Atom PDF