GNU bug report logs - #17773
AIX build errors with coreutils-8.22

Previous Next

Package: coreutils;

Reported by: Michael Felt <mamfelt <at> gmail.com>

Date: Fri, 13 Jun 2014 13:39:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>,  Michael Felt <mamfelt <at> gmail.com>
Cc: 17773 <at> debbugs.gnu.org
Subject: bug#17773: AIX build errors with coreutils-8.22
Date: Fri, 13 Jun 2014 08:48:01 -0700
[Message part 1 (text/plain, inline)]
Pádraig Brady wrote:

> threading primitives will be used in the regex replacement _if_
> your package is using threads, i.e. has referenced the threadlib gnulib module.

Unfortunately regex also uses threads if the pthread module is used, and 
that's the problem here.  Some coreutils commands ('sort') use threads 
and others don't, but the commands that use threads are careful to not 
invoke anything like stdio or regex in an area where it wouldn't be 
thread-safe.  So I installed the attached hack instead: it abuses 
unlocked-io to mean "unlocked everything" but seemed simpler than 
anything else I could think of.  It fixes the reported problem on AIX 
anyway.

> Paul I see in the threadlib module, the addition of _REENTRANT
> or _THREAD_SAFE defines on some platforms.
> Should we be doing that also in the pthread module?

We do have a problem here.  Won't defining _THREAD_SAFE run into 
problems when combined with unlocked-io on AIX?

To be honest, the unlocked-io stuff seems so quaint now.  How much does 
it really help performance?  Perhaps we should retire it, or turn it 
into a no-op?
[0001-regex-don-t-be-multithreaded-if-USE_UNLOCKED_IO.patch (text/plain, attachment)]

This bug report was last modified 11 years and 30 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.