From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2333 invoked by alias); 8 Sep 2004 12:08:36 -0000 Mailing-List: contact glibc-bugs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sources.redhat.com Received: (qmail 2085 invoked by uid 48); 8 Sep 2004 12:08:29 -0000 Date: Wed, 08 Sep 2004 12:08:00 -0000 Message-ID: <20040908120829.2084.qmail@sourceware.org> From: "maeda dot naoaki at jp dot fujitsu dot com" To: glibc-bugs@sources.redhat.com In-Reply-To: <20040812093504.322.maeda.naoaki@jp.fujitsu.com> References: <20040812093504.322.maeda.naoaki@jp.fujitsu.com> Reply-To: sourceware-bugzilla@sources.redhat.com Subject: [Bug libc/322] Calling dcgettext(3) simultaneously sometimes causes segmentation fault. X-Bugzilla-Reason: CC X-SW-Source: 2004-09/txt/msg00030.txt.bz2 List-Id: ------- Additional Comments From maeda dot naoaki at jp dot fujitsu dot com 2004-09-08 12:08 ------- (In reply to comment #0) Sorry, I forgot to initialize a recursive lock in patch3. In following part of the patch3, '__libc_lock_define_recursive' must be '__libc_lock_define_initialized_recursive'. > diff -Naur glibc-2.3.3/intl/loadmsgcat.c glibc-2.3.3- > gettext_fix/intl/loadmsgcat.c > --- glibc-2.3.3/intl/loadmsgcat.c 2003-09-04 02:44:46.000000000 +0900 > +++ glibc-2.3.3-gettext_fix/intl/loadmsgcat.c 2004-08-12 14:24:41.000000000 > +0900 > @@ -471,6 +471,16 @@ > # define freea(p) free (p) > #endif > > +/* Thread safetyness. */ > +#ifdef _LIBC > +# include > +#else > +/* Provide dummy implementation if this is outside glibc. */ > +# define __libc_lock_define_recursive(CLASS, NAME) > +# define __libc_lock_lock_recursive(NAME) > +# define __libc_lock_unlock_recursive(NAME) > +#endif > + > > /* Prototypes for local functions. Needed to ensure compiler checking of > function argument counts despite of K&R C function definition syntax. */ > @@ -899,6 +909,16 @@ > struct loaded_domain *domain; > int revision; > const char *nullentry; > + __libc_lock_define_recursive (static, lock); > + -- http://sources.redhat.com/bugzilla/show_bug.cgi?id=322 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.