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!

I just tried NGPT 2.0.3 with the newest RH8.0 and a fairly current 2.5.40
kernel. Besides the normal problems with the wrong futex syscall number 
(you HAVE TO activate the new kernel include directories for all future
program compilations) I run into other problems too:

During the basic NGPT initialisation in pth_lib.c line 245 is a call to
sysconf(_SC_NPROCESSORS_CONF), which detects the number of processors in the
system. This is done finding the proc file system in /etc/mtab and looking
there for the number of processes. But on the way there we come across a
getmntent_r() (mind the _r for reentrant here!). This calls sscanf() to parse
the mnt entries which gives a SEGFAULT. We are still in the basic thread
library init phase and call a *_r-function. Could this work (at least in
theory) at all?

If I set the environment variable MAXNATIVETHREADS to 1, the sysconf() call
should be skipped but the strtol() to convert the environment variable string
("1") to an integer (1) gives a SEGFAULT as well. So it may be another problem
altogether.

I just downloaded glibc-2.2.93-5.src.rpm and will look a bit further into
all this mess.

Bye, Uwe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.