Re: trouble with NGPT + Linux 2.5.40 + glibc 2.2.93
"Dr. Uwe Girlich" <[email protected]>
| Newsgroups | gmane.linux.ngpt.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello list! > > To fix this, I commented out the libc_internal_tsd_get and > > libc_internal_tsd_set routines in pth_tcb.c (everything after line 350). > > With that, the initial core dump problem is gone. > This change is too hard. It removes all thread dependend code from all glibc. > My first proposal (init __libc_internal_tsd_get after all the rest is ready) > seems to be a bit better and a patch file to this effect is attached. The patch is attached again to simplify the reproduction. > > However, > > the program hangs at final exit() for maxnativethreads > 1. > > Looks like the LDT part is not working properly with new Glibc > > (NATIVE_SELF, etc), so I also commented out that in useldt.h > > and use the pth_get_native_descr() directly, which fixes the exit() > > problem. > > I think we need to look at the glibc 2.3 changes closely and need > > to make appropriate changes in NGPT to use new features like TLS, etc. > There is a brand new useldt.h file in the glibc code. Maybe I can produce a > file which fits our use. I took the useldt.h from the glibc 2.2.93 from the RedHat 8.0 source RPM package and changed only that code, which was really necessary to change. Some other changes like NATIVE_SELF -> THREAD_SELF, include order and so on were made too. Now all test-programs of ngpt work again on RedHat and really use the new stuff of the GLIBC useldt.h header file. I don't really know what I did here. All my changes were the direct result of compiler errors and a bit look around for the right place of the symbol. So someone with more deeper knowledge should check all this. And remember, you also need my autoconf 2.53 fix, to even start the compilation on RedHet 8.0 (if you use autoconf at all, like I have to because of other problems). Bye, Uwe -- Dr. Uwe Girlich email: [email protected] Philosys Software GmbH www: www.philosys.de Edisonstrasse 6 phone: +49 89 321407-44 D-85716 Unterschleissheim fax: +49 89 321407-12