From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8193 invoked by alias); 4 Sep 2009 17:59:15 -0000 Received: (qmail 8043 invoked by uid 22791); 4 Sep 2009 17:59:13 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_23,J_CHICKENPOX_31,J_CHICKENPOX_32,J_CHICKENPOX_42,SARE_MSGID_LONG40,SPF_PASS,WEIRD_PORT 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, 04 Sep 2009 17:59:06 +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 n84Hx3dB015325 for ; Fri, 4 Sep 2009 10:59:03 -0700 Received: from yxe8 (yxe8.prod.google.com [10.190.2.8]) by wpaz24.hot.corp.google.com with ESMTP id n84Hx0Cv029241 for ; Fri, 4 Sep 2009 10:59:01 -0700 Received: by yxe8 with SMTP id 8so1216947yxe.17 for ; Fri, 04 Sep 2009 10:59:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.10.5 with SMTP id n5mr12543469ani.122.1252087140856; Fri, 04 Sep 2009 10:59:00 -0700 (PDT) In-Reply-To: <8ac60eac0909040825u25ce064co34550210ec2e5f11@mail.gmail.com> References: <20090902164425.GR4379@adacore.com> <8ac60eac0909030854j21d514f9h5047a099a3eb3d80@mail.gmail.com> <8ac60eac0909040825u25ce064co34550210ec2e5f11@mail.gmail.com> Date: Fri, 04 Sep 2009 17:59:00 -0000 Message-ID: <8ac60eac0909041059y4541a7ct89c62ce636453cf6@mail.gmail.com> Subject: Re: [gdb-7.0 release] 2009-09-02 status and proposed plan From: Paul Pluzhnikov To: Joel Brobecker Cc: gdb@sourceware.org, Tom Tromey , Doug Evans Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00078.txt.bz2 On Fri, Sep 4, 2009 at 8:25 AM, Paul Pluzhnikov wrote: > I am still working on a stand-alone repro case. Here it is: --- cut --- foo.cc --- #include #define X6(a) a,a,a,a,a,a #define R8(a) a##a##a##a##a##a##a##a##a #define Foo R8(Fee_Fi_Fo_Fum_I_smell_the_blood_of_an_Englishman) #define Bar R8(Bar) template struct Foo { Foo(); }; template Foo::Foo() { printf ("In %s\n", __func__); } struct Bar { }; typedef Foo FooBar1; typedef Foo FooBar2; typedef Foo FooBar3; typedef Foo FooBar4; typedef Foo FooBar5; struct Zork { int x; }; int fn(int *ip) { FooBar1 f1; FooBar2 f2; FooBar3 f3; FooBar4 f4; FooBar5 f5; Zork z; z.x = ip[0]; // crash return z.x; } --- cut --- foo.cc --- --- cut --- main.cc --- int fn(int *); int main() { return fn(0); } --- cut --- main.cc --- g++ -g -fPIC -shared foo.cc -o foo.so && g++ -g main.cc ./foo.so gdb64-cvs ./a.out GNU gdb (GDB) 6.8.50.20090904-cvs ... Reading symbols from /usr/local/google/tmp/gdb-crash/a.out...done. (gdb) run In Fee_Fi_Fo_Fum_I_smell... Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7bdf1d9 in fn (ip=0x0) at foo.cc:37 37 z.x = ip[0]; // crash (gdb) py x = gdb.lookup_type('Zork') (gdb) run Segmentation fault (core dumped) I will not be able to work on a fix before next Tuesday, so if anybody fixes this before then, please let me know. Thanks, -- Paul Pluzhnikov