From: nobu@... Date: 2017-08-08T01:26:27+00:00 Subject: [ruby-core:82274] [Ruby trunk Bug#13788][Feedback] libruby.so cannot be loaded by another program when --enable-load-relative is used Issue #13788 has been updated by nobu (Nobuyoshi Nakada). Status changed from Open to Feedback To initialize a library properly is a responsibility of programs which use it, isn't it? ---------------------------------------- Bug #13788: libruby.so cannot be loaded by another program when --enable-load-relative is used https://bugs.ruby-lang.org/issues/13788#change-66052 * Author: branan (Branan Riley) * Status: Feedback * 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: