This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: dlopen/dlclose problems
On Sat, 27 Nov 2010 16:36:53 -0500
"Carlos O'Donell" <carlos@systemhalted.org> wrote:
> On Sat, Nov 27, 2010 at 1:03 PM, Andreas Fink
> <andreas.fink85@googlemail.com> wrote:
> > Attached is again a test program and a test library which fails for glibc-2.12.1 (glibc-2.9 works). Please can you confirm
> > this behaviour with your glibc?
>
> The example works fine on Ubuntu 8.04 on x86_64.
>
> e.g.
> ~~~
> ./test_dlopen
> N[0]=5
> library should be unloaded --> recompile and press enter
>
> N[0]=42
> ~~~
>
> I don't know what is wrong with your system or the procedure you are using.
>
> Cheers,
> Carlos.
Hello Carlos,
I don't do anything wrong. glibc is wrong here. It works on Ubuntu 10.04 (glibc-2.11.1), but does not work on Arch and Gentoo
(glibc-2.12.1). Same procedure on all three distributions, but only ubuntu 10.04 gives the result you've pointed out:
Ubuntu-10.04
N[0]=5
N[0]=42
On Gentoo and Arch the result is:
N[0]=5
N[0]=5 (although i've recompiled it to 42)
So I think the problem can be reduced to a bug introduced between glibc-2.11.1 and 2.12.1. Do you know where a bug
report should go?
Regards
Andreas