Actions
Bug #13788
closedlibruby.so cannot be loaded by another program when --enable-load-relative is used
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
Actions
Like0
Like0Like0Like0