NPTL bug / buggy PTHREAD library

You name it!
Post Reply
websafe
Newbie
Posts: 2
Joined: Wed Apr 16, 2008 8:22 pm

NPTL bug / buggy PTHREAD library

Post by websafe » Wed Apr 16, 2008 8:26 pm

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-)

websafe
Newbie
Posts: 2
Joined: Wed Apr 16, 2008 8:22 pm

Re: NPTL bug / buggy PTHREAD library

Post by websafe » Thu Apr 17, 2008 11:10 am

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. :-)

User avatar
cuse
Developer
Posts: 366
Joined: Wed Jan 23, 2008 10:07 pm
Location: Germany

Re: NPTL bug / buggy PTHREAD library

Post by cuse » Sat May 03, 2008 8:38 pm

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.

User avatar
dahnielson
Moderator
Posts: 632
Joined: Wed Jan 23, 2008 11:25 pm
Location: Linköping / Tranås, Sweden
Contact:

Re: NPTL bug / buggy PTHREAD library

Post by dahnielson » Sat May 03, 2008 9:12 pm

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. :-)
Anders Dahnielson

Ardour2, Qtractor, Linuxsampler, M-AUDIO Delta 1010, Axiom 61, Korg D12, AKAI S2000, E-MU Proteus 2k, Roland R-5, Roland HP 1300e, Zoom RFX-1000, 4GB RAM x86_64 Intel Pentium Dual 1.80GHz Gentoo Linux

MikeD
Newbie
Posts: 2
Joined: Thu May 15, 2008 7:55 pm

Re: NPTL bug / buggy PTHREAD library

Post by MikeD » Thu May 15, 2008 8:08 pm

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

Post Reply