I’ve been using Ruby, SWIG and C++ on Linux for my development work and
am encountering some problems. The C++ consists of a built dynamic
library and I’m implementing SWIG the standard way
The problem is, I seem to see memory getting corrupted when running the
Ruby program which calls the C++ library. When the Ruby program is run
on standalone, there are no problems. When the C++ dynamic library is
run with an equivalent C++ program, there are no problems. This leads me
to believe that there are some “interactions” between Ruby and the C++
library. Also, the Ruby program runs on a different thread than the C++.
Has anyone encoutered anything like this before?
Out of sorts