From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14948 invoked by alias); 11 Dec 2009 21:06:51 -0000 Received: (qmail 14794 invoked by uid 22791); 11 Dec 2009 21:06:50 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Dec 2009 21:06:42 +0000 Received: from wpaz17.hot.corp.google.com (wpaz17.hot.corp.google.com [172.24.198.81]) by smtp-out.google.com with ESMTP id nBBL6eTW032121 for ; Fri, 11 Dec 2009 13:06:40 -0800 Received: from qw-out-1920.google.com (qwc5.prod.google.com [10.241.193.133]) by wpaz17.hot.corp.google.com with ESMTP id nBBL6bCU017408 for ; Fri, 11 Dec 2009 13:06:38 -0800 Received: by qw-out-1920.google.com with SMTP id 5so240436qwc.34 for ; Fri, 11 Dec 2009 13:06:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.126.212 with SMTP id d20mr1196643qas.118.1260565597486; Fri, 11 Dec 2009 13:06:37 -0800 (PST) In-Reply-To: <8ac60eac0912111303h5ae32fbbk3ad1851e584deddf@mail.gmail.com> References: <20091207175737.3708F8456F@ruffy.mtv.corp.google.com> <8ac60eac0912111303h5ae32fbbk3ad1851e584deddf@mail.gmail.com> Date: Fri, 11 Dec 2009 21:06:00 -0000 Message-ID: Subject: Re: [RFA] Handle older iconv programs From: Doug Evans To: Paul Pluzhnikov Cc: tromey@redhat.com, gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-12/txt/msg00172.txt.bz2 On Fri, Dec 11, 2009 at 1:03 PM, Paul Pluzhnikov w= rote: > On Mon, Dec 7, 2009 at 12:36 PM, Tom Tromey wrote: >>>>>>> "Doug" =3D=3D Doug Evans writes: >> >> Doug> + =A0set_in_environ (iconv_env, "LANGUAGE", "en"); >> >> I think "C" would be preferable here. >> Or, just remove LANGUAGE from the environment. > > I am seeing a crash which I think directly relates to this patch: > > (top) r > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/usr/grte/v1/lib64/libthread_db.so.1". > > Program received signal SIGSEGV, Segmentation fault. > *__GI_getenv (name=3D0x7ffff6cb8f85 "NGUAGE") at ../sysdeps/generic/geten= v.c:93 > 93 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if (name_start =3D=3D ep_start && !strn= cmp (*ep + 2, name, len) For reference sake, have you applied the accompanying patch to libiberty? 2009-12-07 Doug Evans * pex-unix.c (pex_unix_exec_child): Save/restore environ.