Project

General

Profile

Actions

Bug #13788

closed

libruby.so cannot be loaded by another program when --enable-load-relative is used

Added by branan (Branan Riley) over 6 years ago. Updated over 6 years ago.

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

Description

--enable-load-relative causes dladdr_path in ruby.c to be called. This function assumes that origarg is set, but that global will only be set if ruby_sysinit is called. Normally that is done by the ruby executable, but not by other programs that embed the ruby interpreter.

The attached patch causes dladdr_path to check that origarg is set, before trying to access the data in it.


Files

origarg.patch (390 Bytes) origarg.patch branan (Branan Riley), 08/07/2017 09:30 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0