[Glibc-bsd-commits] r1945 - trunk/glibc-ports

ps-guest at alioth.debian.org ps-guest at alioth.debian.org
Fri May 25 20:38:53 UTC 2007


Author: ps-guest
Date: 2007-05-25 20:38:52 +0000 (Fri, 25 May 2007)
New Revision: 1945

Modified:
   trunk/glibc-ports/NOTES
Log:
* simple test case for glibc 2.6 regression in elf subdir



Modified: trunk/glibc-ports/NOTES
===================================================================
--- trunk/glibc-ports/NOTES	2007-05-25 19:51:14 UTC (rev 1944)
+++ trunk/glibc-ports/NOTES	2007-05-25 20:38:52 UTC (rev 1945)
@@ -90,3 +90,34 @@
 make[2]: *** [build/debug/tst-lfschk2.out] Error 1
 make[2]: *** [build/debug/tst-lfschk3.out] Error 1
 
+
+
+regression with glibc 2.6 (glibc 2.5 is OK):
+
+elf/tst-dlmodcount & elf/tst-dlopenrpath
+
+	the main program is not linked with pthread,
+	but dlopen()-ed module is. During dlclose()
+	main program crashes. I.e dlclose of pthread 
+	library does not work correctly.
+
+
+**********************************************************
+/* gcc tst.c -ldl -o tst */
+
+#include <link.h>
+#include <stdlib.h>
+
+int
+main ()
+{
+  void *handle;
+
+  handle = dlopen ("libpthread.so.0", RTLD_LAZY);
+  perror("open");
+  dlclose(handle);
+  perror("close");
+  return 0;
+}
+
+**********************************************************




More information about the Glibc-bsd-commits mailing list