From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14847 invoked by alias); 11 Dec 2009 21:03:29 -0000 Received: (qmail 14732 invoked by uid 22791); 11 Dec 2009 21:03:28 -0000 X-SWARE-Spam-Status: No, hits=-1.9 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.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Dec 2009 21:03:23 +0000 Received: from wpaz24.hot.corp.google.com (wpaz24.hot.corp.google.com [172.24.198.88]) by smtp-out.google.com with ESMTP id nBBL3JeP017511 for ; Fri, 11 Dec 2009 21:03:20 GMT Received: from qw-out-2122.google.com (qwb9.prod.google.com [10.241.193.73]) by wpaz24.hot.corp.google.com with ESMTP id nBBL3HY3009185 for ; Fri, 11 Dec 2009 13:03:17 -0800 Received: by qw-out-2122.google.com with SMTP id 9so276174qwb.19 for ; Fri, 11 Dec 2009 13:03:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.43.96 with SMTP id v32mr1196685qae.171.1260565397259; Fri, 11 Dec 2009 13:03:17 -0800 (PST) In-Reply-To: References: <20091207175737.3708F8456F@ruffy.mtv.corp.google.com> Date: Fri, 11 Dec 2009 21:03:00 -0000 Message-ID: <8ac60eac0912111303h5ae32fbbk3ad1851e584deddf@mail.gmail.com> Subject: Re: [RFA] Handle older iconv programs From: Paul Pluzhnikov To: tromey@redhat.com Cc: Doug Evans , 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/msg00170.txt.bz2 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/getenv.= c:93 93 if (name_start =3D=3D ep_start && !strncmp (*ep + 2, name= , len) (top) bt #0 *__GI_getenv (name=3D0x7ffff6cb8f85 "NGUAGE") at ../sysdeps/generic/getenv.c:93 #1 0x00007ffff6bcbf8f in guess_category_value (domainname=3D0x9cffb0 "gdb", msgid1=3D0x77d8a0 "The `host character set' is the one used by the system GDB is running on.\nYou may only use supersets of ASCII for your host character set; GDB does\nnot support any others.\nTo see a list of the charact"..., msgid2=3D0x0, plural=3D0, n=3D0, category=3D8) at dcigettext.c:1107 #2 __dcigettext (domainname=3D0x9cffb0 "gdb", msgid1=3D0x77d8a0 "The `host character set' is the one used by the system GDB is running on.\nYou may only use supersets of ASCII for your host character set; GDB does\nnot support any others.\nTo see a list of the charact"..., msgid2=3D0x0, plural=3D0, n=3D0, category=3D8) at dcigettext.c:533 #3 0x00000000004abd33 in _initialize_charset () at ../../src/gdb/charset.c= :898 #4 0x000000000041d5d8 in initialize_all_files () at init.c:160 #5 0x000000000040c289 in gdb_init (argv0=3D0x7fffffffddf2 "/home/ppluzhnikov/bin/gdb64-cvs") at ../../src/gdb/top.c:1729 #6 0x0000000000400fa5 in captured_main (data=3D0x7fffffffd940) at ../../src/gdb/main.c:688 #7 0x00000000004fdbd9 in catch_errors (func=3D0x40068d , func_args=3D0x7fffffffd940, errstring=3D0x74f01f "", mask=3D6) at ../../src/gdb/exceptions.c:510 #8 0x00000000004016d4 in gdb_main (args=3D0x7fffffffd940) at ../../src/gdb/main.c:911 #9 0x00000000004003a4 in main (argc=3D1, argv=3D0x7fffffffda38) at ../../src/gdb/gdb.c:33 Environment has been stepped on: (top) p __environ[0] $4 =3D 0x6e0a73656f642042
(top) x/s __environ 0x9fa370: "B does\nnot support any others.\nTo see a list of the character sets GDB supports, type `set charset '." Still digging into the cause ... --=20 Paul Pluzhnikov