Bug #18034
closedSegmentation fault fiddle with `--enable-bundled-libffi` and macOS
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
Updated by tenderlovemaking (Aaron Patterson) about 3 years 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) about 3 years ago
- Status changed from Open to Assigned
- Assignee set to kou (Kouhei Sutou)
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) about 3 years 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.
Updated by hsbt (Hiroshi SHIBATA) about 3 years ago
@kou (Kouhei Sutou) Thanks. I submitted https://github.com/ruby/fiddle/pull/98
Updated by hsbt (Hiroshi SHIBATA) about 2 years ago
- Status changed from Assigned to Closed
I created https://github.com/ruby/fiddle/pull/113. It removed --enable-bundled-libffi
and add --with-libffi-source-dir
. We leave from the bundled source code from Ruby 3.2.
Updated by hsbt (Hiroshi SHIBATA) about 2 years ago
- Related to Feature #18571: Removed the bundled sources from release package after Ruby 3.2 added