[cffi-devel] close-foreign-library assert

nan noncopyable at gmail.com
Thu Mar 21 10:22:19 UTC 2013


On Thu, 21 Mar 2013 11:50:42 +0200, Luís Oliveira <luismbo at gmail.com>  
wrote:

> A Google search for that error string turns up this:
> <https://savannah.gnu.org/bugs/index.php?34195#comment0>. Perhaps your
> library is being marked as RTLD_NODELETE by glibc as described in that
> bug report. I suppose a good way to check that this is something
> glibc-related would be to write a small C program that opens and
> reloads your library. Can you try that?

Attached code loads and unloads using flags based on the example on the  
man page:
http://pubs.opengroup.org/onlinepubs/007904975/functions/dlsym.html

In addition to that, since sbcl calls dlopen with RTLD_GLOBAL|RDLD_NOW  
flags, i tried that too, all works as expected.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.cpp
Type: application/octet-stream
Size: 959 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20130321/0fd413df/attachment.obj>


More information about the cffi-devel mailing list