While learning about dlopen() and dynamic
libraries, I found that calling dlclose() on
libbat.so segfaults.

Is this a known behavior or a symptom of
some problem?

Thanks,

m

$ cat bad.c
#include <dlfcn.h>

int
main(void)
{
        void    *handle;
        char    *fn = "libbat.so";

        handle =  dlopen(fn, RTLD_NOW);
        dlclose(handle);

        return 0;
}
$ gcc bad.c && ./a.out
Segmentation fault (core dumped)
$

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Monetdb-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-developers

Reply via email to