From: branan@... Date: 2017-08-07T21:30:45+00:00 Subject: [ruby-core:82272] [Ruby trunk Bug#13788] libruby.so cannot be loaded by another program when --enable-load-relative is used Issue #13788 has been reported by branan (Branan Riley). ---------------------------------------- Bug #13788: libruby.so cannot be loaded by another program when --enable-load-relative is used https://bugs.ruby-lang.org/issues/13788 * Author: branan (Branan Riley) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- --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) -- https://bugs.ruby-lang.org/ Unsubscribe: