From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4958 invoked by alias); 12 Jun 2013 14:45:25 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 4914 invoked by uid 48); 12 Jun 2013 14:45:20 -0000 From: "hadess at hadess dot net" To: glibc-bugs@sourceware.org Subject: [Bug libc/15607] New: Add threadsafe version of getenv() Date: Wed, 12 Jun 2013 14:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hadess at hadess dot net X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-06/txt/msg00083.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15607 Bug ID: 15607 Summary: Add threadsafe version of getenv() Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: hadess at hadess dot net CC: drepper.fsp at gmail dot com gnome-settings-daemon is a daemon running in a GNOME session to apply stored settings (such as the user's preferred locale) to the running session and its own children (such as applications launched using the media-keys). We started hitting SEGVs somewhat randomly recently: https://bugzilla.gnome.org/show_bug.cgi?id=701322 which are caused by races between getenv() (as used by the glibc's gettext implementation) and setenv() (called by gnome-settings-daemon to change its own environment). Having getenv_r()/setenv_r() would avoid this problem and make our implementation more straight-forward and cleaner. [1]: https://bug701322.bugzilla-attachments.gnome.org/attachment.cgi?id=245695 -- You are receiving this mail because: You are on the CC list for the bug.