Project

General

Profile

Actions

Bug #18034

open

Segmentation fault fiddle with `--enable-bundled-libffi` and macOS

Added by hsbt (Hiroshi SHIBATA) 5 months ago. Updated 3 days ago.

Status:
Assigned
Priority:
Normal
Target version:
-
[ruby-core:104553]

Description

I always got a segmentation fault with make test-all TESTS="fiddle" and --enable-bundled-libffi on macOS.

https://gist.github.com/hsbt/9f7dc9f62e9197b92c5a99384972dad3


Files

ruby_2021-07-09-150420_xxx.crash (12.9 KB) ruby_2021-07-09-150420_xxx.crash hsbt (Hiroshi SHIBATA), 07/09/2021 06:16 AM

Updated by tenderlovemaking (Aaron Patterson) 2 months ago

I was able to reproduce this. My guess is that the bundled libffi is failing to compile, but then the gem compiles against the bundled ffi headers, but links against the hombrew libffi. I opened a PR here to demonstrate the issue, but I'm not sure how to fix it yet.

Updated by hsbt (Hiroshi SHIBATA) 7 days ago

  • Assignee set to kou (Kouhei Sutou)
  • Status changed from Open to Assigned

I heard "this option for only windows environment" from nobu (Nobuyoshi Nakada).

I'm not sure what's supported platform with this option.

kou (Kouhei Sutou) Do you have any opinion?

Updated by kou (Kouhei Sutou) 7 days ago

It may be true because Fiddle has patches only for Windows.

I'm OK that we declares that --enable-bundled-libffi isn't supported on macOS.

Actions

Also available in: Atom PDF