Matthew Burgess wrote:
DJ Lucas wrote:
Sorry it's so last minute with release scheduled in 6 days, but I'd
suggest testing this patch for inclusion in 6.1.1. I have tested and
verified only on 2.3.5.
I don't have time to test this myself, so I'm going to have to ask
someone else to do a full 6.1.1-pre1 build without the patch and ensure
the bug this fixes can be triggered. If so, I'll add the patch
(assuming further testing shows the patch does indeed fix the problem).
If it's too late for inclusion in the book, that would be bad for BLFS
WRT OOo2 and possibly some issues with Xine, but at least please make
mention of it in the eratta after it's been tested.
Note that BLFS-6.1 assumes LFS-6.1 as a base, therefore I'd think that
BLFS-6.1.1 (if there is such a release) will assume LFS-6.1.1. As such,
I don't consider OOo2 to be an issue as it's not in an existing release
of BLFS. Xine may be a different issue, though as I said, we've still
got time to fix this if someone can volunteer the necessary time to
verify the bug and the effectiveness of the patch.
Okay...I originally built the system with the patch and then rebuilt
glibc without (kill two birds with one stone). Here are the results
with the unpatched glibc (as shown previously by Archaic in the
blfs-support thread where this was discovered):
[EMAIL PROTECTED] xbug]# /lib/libc.so.6
GNU C Library stable release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.3.
Compiled on a Linux 2.6.11 system on 2005-11-22.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
[EMAIL PROTECTED] xbug]# unset LD_LIBRARY_PATH
[EMAIL PROTECTED] xbug]# make clean
rm -f lib[1234].so test_bug
[EMAIL PROTECTED] xbug]# make
gcc test_bug.c -o test_bug -ldl
gcc -shared -o lib4.so lib4.c
gcc -shared -o lib1.so lib1.c lib4.so
gcc -shared -o lib3.so lib3.c
gcc -shared -o lib2.so lib2.c lib3.so
[EMAIL PROTECTED] xbug]# export
LD_LIBRARY_PATH=".:/usr/local/lib:/usr/X11R6/lib:/usr/lib:/lib"
[EMAIL PROTECTED] xbug]# ./test_bug
Success!
[EMAIL PROTECTED] xbug]# rm lib3.so
[EMAIL PROTECTED] xbug]# ./test_bug
Inconsistency detected by ld.so: ../sysdeps/generic/dl-tls.c: 72:
_dl_next_tls_modid: Assertion `result <=
_rtld_local._dl_tls_max_dtv_idx' failed!
[EMAIL PROTECTED] xbug]# unset LD_LIBRARY_PATH
[EMAIL PROTECTED] xbug]# ./test_bug
Success!
[EMAIL PROTECTED] xbug]#
I again rebuilt glibc with the patch. The results were as expected,
problem appears to be solved. I have not compared the testsuite results
yet. I completely forgot about them, so I've got to rebuild without the
patch again. The patched version tests are running now. Will report
again tomorrow after work. Here are the results of the test case with
the patched glibc:
[EMAIL PROTECTED] xbug]# /lib/libc.so.6
GNU C Library stable release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.3.
Compiled on a Linux 2.6.11 system on 2005-11-22.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
[EMAIL PROTECTED] xbug]# make clean
rm -f lib[1234].so test_bug
[EMAIL PROTECTED] xbug]# make
gcc test_bug.c -o test_bug -ldl
gcc -shared -o lib4.so lib4.c
gcc -shared -o lib1.so lib1.c lib4.so
gcc -shared -o lib3.so lib3.c
gcc -shared -o lib2.so lib2.c lib3.so
[EMAIL PROTECTED] xbug]# export
LD_LIBRARY_PATH=".:/usr/local/lib:/usr/X11R6/lib:/usr/lib:/lib"
[EMAIL PROTECTED] xbug]# ./test_bug
Success!
[EMAIL PROTECTED] xbug]# rm lib3.so
[EMAIL PROTECTED] xbug]# ./test_bug
Success!
[EMAIL PROTECTED] xbug]# unset LD_LIBRARY_PATH
[EMAIL PROTECTED] xbug]# ./test_bug
Success!
[EMAIL PROTECTED] xbug]#
-- DJ Lucas
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page