[Monetdb-developers] dlclose() segfault

Lefteris lsidir at gmail.com
Tue Mar 23 16:34:18 CET 2010


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 <mkbucc at gmail.com> wrote:
> 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® 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-developers
>




More information about the developers-list mailing list