Project

General

Profile

Actions

Bug #18034

closed

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

Added by hsbt (Hiroshi SHIBATA) over 3 years ago. Updated about 2 years ago.

Status:
Closed
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

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #18571: Removed the bundled sources from release package after Ruby 3.2Closedhsbt (Hiroshi SHIBATA)Actions

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) almost 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) almost 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 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.

Actions #6

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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0