bugGNU gettext - Bugs: bug #43404, gl_locale_name_default() thread...


You are not allowed to post comments on this tracker with your current authentication level.

bug #43404: gl_locale_name_default() thread issues on OS X

Submitted by:  Peter Eisentraut <petere>
Submitted on:  Sat 11 Oct 2014 12:53:40 PM UTC  
Category: End-user / runtimeSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Sat 11 Oct 2014 12:53:40 PM UTC, original submission:

Something in libintl calls setlocale(), which calls gl_locale_name_default(), which calls CFLocaleCopyCurrent() on OS X. Our analysis shows that CFLocaleCopyCurrent() spins up an additional thread, which causes all kinds of chaos in signal handlers and forked processes. Here is the full analysis: http://www.postgresql.org/message-id/20140915045114.GA1332666@tornado.leadboat.com

Clearly, this is a somewhat special application, compared to all the single-threaded, single-process programs out there, but if adding gettext support to a server causes it to crash in random ways, that doesn't seem nice.

The original change in gettext/libintl is d4fd77b3f57a386b63083a7246ae5808510ac072.

Later in the above thread, a patch is proposed to move the Core Foundation calls into a subprocess, which you might be interested in.

Peter Eisentraut <petere>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by haible (Updated the item)
  • -unavailable- added by noah
  • -unavailable- added by petere (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 11:54:05 AM UTChaibleCategoryNone=>End-user / runtime
    Sat 11 Oct 2014 03:41:21 PM UTCnoahCarbon-Copy-=>Added noah

    Back to the top

    Powered by Savane 3.1-cleanup1