GNU gettext - Bugs: bug #57306, libgettextpo: po_file_read is...
You are not allowed to post comments on this tracker with your current authentication level.
bug #57306: libgettextpo: po_file_read is thread-unsafe
Submitter: | Alexander Potashev <aspotashev> | ||
Submitted: | Tue 26 Nov 2019 02:24:10 PM UTC | ||
Category: | Programmer interface | Severity: | 2 - Minor |
Item Group: | None | Status: | Confirmed |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open |
Tue 26 Nov 2019 03:33:34 PM UTC, comment #2: |
Bruno Haible <haible> |
Tue 26 Nov 2019 03:31:58 PM UTC, comment #1: Indeed, libgettextpo contains a number of static variables; this makes it not multithread-safe:
|
Bruno Haible <haible> |
Tue 26 Nov 2019 02:24:10 PM UTC, original submission:
po_file_read is thread-unsafe because it sets global variables like error handlers.
|
Alexander Potashev <aspotashev> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2019-11-26 | haible | Severity | 3 - Normal | 2 - Minor | |
2019-11-26 | haible | Status | None | Confirmed |
Powered by Savane 3.13-02a9.
Corresponding source code
The workaround is easy: Use libgettextpo in a single thread only, or serialize using a lock.