Project

General

Profile

Actions

Bug #19789

closed

YJIT + rustc 1.71.0 is broken with macOS

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

Status:
Closed
Assignee:
Target version:
-
[ruby-core:114315]

Description

I got some segmentation fault on macOS.

1) Failure:
TestVMDump#test_darwin_invalid_call [/Users/hsbt/Documents/github.com/ruby/ruby/test/ruby/test_vm_dump.rb:11]:
pid 35071 exit 1
| -e:1: [BUG] Bus Error at 0x0000000000000001
| ruby 3.3.0dev (2023-07-30T06:13:58Z master b5c74d5488) [arm64-darwin23]
|
| -- Crash Report log information --------------------------------------------
|    See Crash Report log file in one of the following locations:
|      * ~/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:0015 s:0006 e:000005 EVAL   -e:1 [FINISH]
| c:0001 p:0000 s:0003 E:000a30 DUMMY  [FINISH]
|
| -- Ruby level backtrace information ----------------------------------------
| -e:1:in `<main>'
| -e:1:in `call'
|
| -- Threading information ---------------------------------------------------
| Total ractor count: 1
| Ruby thread count for this ractor: 1
|
| -- Machine register context ------------------------------------------------
|   x0: 0x0000000000000000  x1: 0x0000000000000000  x2: 0x0000000000000000
|   x3: 0x0000000000000000  x4: 0x0000000000000000  x5: 0x0000000000000000
|   x6: 0x0000000000000000  x7: 0x0000000000000000 x18: 0x0000000000000000
|  x19: 0x0000000000000000 x20: 0x000000016faadf40 x21: 0x000000016faadf40
|  x22: 0x000000016faadec0 x23: 0x0000600001256eb0 x24: 0x000000016faadc70
|  x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
|  x28: 0x0000000140e04f20  lr: 0x000000019b211050  fp: 0x000000016faadd30
|   sp: 0x000000016faadd30
|
| -- C level backtrace information -------------------------------------------
| 1360: Abbrev Number 707 not found
.

I filed it and other failures to https://gist.github.com/hsbt/ea3e52d9fb52aed58d25caf839eae5ff

@katei (Yuta Saito) found this issue caused by YJIT and rustc 1.71.0. It's not happend with

../ruby/configure -C --disable-install-doc --with-openssl-dir=/opt/homebrew/opt/openssl@1.1 --with-readline-dir=/opt/homebrew/opt/readline --with-libyaml-dir=/opt/homebrew/opt/libyaml RUSTC='rustc +1.70.0'

But RUSTC='rustc +1.71.0' is failed with same error on macOS Sonoma(beta) and Ventura.

Updated by hsbt (Hiroshi SHIBATA) 9 months ago

  • Status changed from Open to Closed
  • Backport changed from 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN to 3.0: DONTNEED, 3.1: DONTNEED, 3.2: REQUIRED

Thanks. I confirmed to work with https://github.com/ruby/ruby/pull/8146

Updated by nagachika (Tomoyuki Chikanaga) 9 months ago

  • Backport changed from 3.0: DONTNEED, 3.1: DONTNEED, 3.2: REQUIRED to 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONE

ruby_3_2 19823032abc2d1827a2aaf41bf3a3948afad8feb merged revision(s) 954b7ac81ef503df3c1efc5566df985b08951d52.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0