It works on my machine. Can you run it with gdb and send us the trace?
Thank you,
lefteris
On Tue, Mar 23, 2010 at 4:24 PM, Mark Bucciarelli
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
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® 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 Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers