Page 1 of 1

NPTL bug / buggy PTHREAD library

Posted: Wed Apr 16, 2008 8:26 pm
by websafe
Hello :-)

I'm trying to compile linuxsampler-0.5.1 on a Slackware 12 box.

Code: Select all

checking for NPTL bug... yes
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You seem to have a buggy PTHREAD library! LinuxSampler would
probably crash due to this. Please report us the system you are
using and/or file a bug report to the bug tracking system of
your distribution.
If you have a NPTL-enabled glibc AND it was compiled for TLS as
well, you can try to circumvent this problem for now by setting
the environment variable LD_ASSUME_KERNEL="2.4.1" , which
should cause this test to pass.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
configure: error: possibly NPTL glibc bug detected
Is it possible to get this working on Slackware?

When I try:

Code: Select all

LD_ASSUME_KERNEL="2.4.1" ./configure
I see:

Code: Select all

/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
but:

Code: Select all

ldconfig -v | grep libdl
returns:

Code: Select all

libdl.so.2 -> libdl-2.5.so
Hmm... Any ideas? 8-)

Re: NPTL bug / buggy PTHREAD library

Posted: Thu Apr 17, 2008 11:10 am
by websafe
Ok, sorry for my previous lame posting ;)

Code: Select all

./configure --disable-nptl-bug-check

Code: Select all

linuxsampler

Code: Select all

LinuxSampler 0.5.1
Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck
Copyright (C) 2005-2007 Christian Schoenebeck
Detected features: MMX SSE SSE2
Creating Sampler...OK
Registered sampler engines: 'GIG'
Registered MIDI input drivers: ALSA
Registered audio output drivers: ALSA,ARTS,JACK
Loading instrument editor plugins...OK
Registered instrument editors:
Starting LSCP network server (0.0.0.0:8888)...OK
LinuxSampler initialization completed. :-)

Re: NPTL bug / buggy PTHREAD library

Posted: Sat May 03, 2008 8:38 pm
by cuse
Hooo, I'm not sure if disabling the NPTL bug check of the configure script will solve the problem for you. :)

Usually LS will crash once in a while if that NPTL bug was detected by the configure script. Better check the respective Gentoo bug report, I guess it's the same issue for Slackware:

http://bugs.gentoo.org/show_bug.cgi?id=194076

At the end, it was thought to be a unwinding bug in libgcc_s.so.1 of gcc-4.1.2, upgrading gcc and setting the new version as default compiled fixed the issue for everybody so far.

Re: NPTL bug / buggy PTHREAD library

Posted: Sat May 03, 2008 9:12 pm
by dahnielson
Yes upgrading GCC is the simplest path to go. I updated to GCC 4.2.2 on my Gentoo box and everything have worked just fine since then. Guess you can do the same on Slackware. :-)

Re: NPTL bug / buggy PTHREAD library

Posted: Thu May 15, 2008 8:08 pm
by MikeD
I just registered so I could post a reply here..

I've been using LS on a Slackware 12 box for while now. I too turned off the check for the NPTL bug to get it installed. I haven't had LS crash while running at all. I did have a glitch on start up for a while, but I am currently putting that down to running the LSCP script too soon after turning on my midi keyboard (before the midi driver has loaded). Anyway, it didn't crash, it just exited, as if sent a TERM signal.

I usually use it for an hour to an hour an a half, and only use it (so far) to run the Maestro Concert Grand.

Slackware 12.1 has GCC 4.2.3, so hopefully, this will become academic when my copy arrives.

MikeD