Project

General

Profile

Actions

Bug #12956

closed

require a native library that yields the error 'incompatiable library version' shuts down the interpreter fatally

Added by gizmomogwai (Christian Köstlin) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.2p217 (2016-11-15 revision 56796) [x86_64-darwin16]
[ruby-core:78200]

Description

I would like to rescue from this in ruby-code.
Looking at the source in dln.c around line 1334 shows, that there is a special APPLE define with a comment that suggests, that properly cleaning up with dlclose crashes.
Disabling the special handling on my machine running OSX Sierra 10.12.1 did not show the crashing behavior, but instead I was able to rescue from the LoadError.
To reproduce I attached my native extension. To reproduce this just run irb -I. and require 'dotstar'


Files

dotstar.bundle (208 KB) dotstar.bundle bundle that causes the incompatible library version error gizmomogwai (Christian Köstlin), 11/18/2016 06:58 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0