Skip to content

Conversation

kou
Copy link
Contributor

@kou kou commented May 8, 2016

If dependency libraries (czmq, libsodium and zeromq) are already
installed in system and they exist in Ruby's library path, rbczmq uses
headers of bundled libraries and shared objects of system
libraries. Because link command generated by mkmf.rb uses $DEFLIBPATH | $LIBPATH as library search path. $DEFLIBPATH includes Ruby's library
path. If dependency libraries already exist in Ruby's library path, they
are used instead of bundled libraries.

It causes segmentation fault.

If dependency libraries (czmq, libsodium and zeromq) are already
installed in system and they exist in Ruby's library path, rbczmq uses
headers of bundled libraries and shared objects of system
libraries. Because link command generated by mkmf.rb uses `$DEFLIBPATH |
$LIBPATH` as library search path. `$DEFLIBPATH` includes Ruby's library
path. If dependency libraries already exist in Ruby's library path, they
are used instead of bundled libraries.

It causes segmentation fault.
@kou
Copy link
Contributor Author

kou commented May 8, 2016

It seems that SciRuby/iruby#70 is occurred by this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant