This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
dlopen busy-loops
- From: Bruno Haible <haible at ilog dot fr>
- To: libc-alpha at sources dot redhat dot com
- Date: Mon, 4 Feb 2002 12:49:14 +0100 (CET)
- Subject: dlopen busy-loops
Hi,
With glibc-2002-01-15, the following program loops eating CPU time.
======================== a.c ================================
#include <dlfcn.h>
int main ()
{
dlopen ("gnu-gettext-GetURL$1", RTLD_GLOBAL | RTLD_LAZY);
return 0;
}
=============================================================
$ gcc a.c -ldl
$ ./a.out
This occurs when gij (from gcc-3.0.3) attempts to load class
gnu.gettext.GetURL. gij first attempts to locate it in a shared library
before searching in the jar file.
The loop was in a line calling _dl_dst_count. Maybe you already fixed
it two days ago; in that case, feel free to add this program to the
tests :-)
Bruno