Issue during multiple calls to C embedded Ruby with dlopen

  • Thread starter David Marchaland
  • Start date
D

David Marchaland

Hi,

I try to embed a Ruby interpreter into an application through a shared
library. This application can call more than one time Ruby interpreter.
In the attached testcase, first call works as expected but next calls
create a segmentation fault.

Any idea of what is wrong in my code or is it really a Ruby bug?

I use Ruby 1.8.7-p248 and have the same behavior (ie segfault) with Ruby
1.9.1.

Thanks for your consideration,
David

Attachments:
http://www.ruby-forum.com/attachment/4463/testcase.txt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top