From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10250 invoked by alias); 21 Dec 2011 14:50:36 -0000 Received: (qmail 10223 invoked by uid 22791); 21 Dec 2011 14:50:35 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Dec 2011 14:50:22 +0000 From: "dodji at seketeli dot org" To: gdb-prs@sourceware.org Subject: [Bug python/13535] New: pretty printers unusable from MI due to early crash Date: Wed, 21 Dec 2011 14:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dodji at seketeli dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2011-q4/txt/msg00550.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D13535 Bug #: 13535 Summary: pretty printers unusable from MI due to early crash Product: gdb Version: archer Status: NEW Severity: normal Priority: P2 Component: python AssignedTo: unassigned@sourceware.org ReportedBy: dodji@seketeli.org Classification: Unclassified A simple mi debugging session crashes when it starts when I -enable-pretty-printing on, and doesn't crash without. E.g: $ cat -n ~/test.cc 1 #include 2 #include 3=20=20=20=20 4 int 5 main() 6 { 7 std::string s1 =3D "k=C3=A9l=C3=A9", s2 =3D "fila", s3 =3D "s= aba"; 8 std::vector v; 9 v.push_back(s1); 10 v.push_back(s2); 11 v.push_back(s3); 12 } $=20 I compiled with g++ version 4.6.1 20110908 (Red Hat 4.6.1-9), with debug info, and -O0. And then I do: $ gdb --interpreter=3Dmi2 ~/test =3Dthread-group-added,id=3D"i1" ~"GNU gdb (GDB) Fedora (7.3.1-46.fc15)\n" ... ~"done.\n" (gdb)=20 -enable-pretty-printing ^done (gdb)=20 -break-insert -f -i 0 main ^done,bkpt=3D{number=3D"1",type=3D"breakpoint",disp=3D"keep",enabled=3D"y",= addr=3D"0x0000000000400a3d",func=3D"main()",file=3D"test.cc",fullname=3D"/h= ome/dodji/test.cc",line=3D"7",times=3D"0",original-location=3D"main"} (gdb) -exec-run =3Dthread-group-started,id=3D"i1",pid=3D"4248" =3Dthread-created,id=3D"1",group-id=3D"i1" ^running *running,thread-id=3D"all" (gdb) ... -var-create --thread 1 --frame 0 - * s1 Erreur de segmentation (core dumped) $ There is no segmentation fault when I don't turn call -enable-pretty-printing. I guess I could have filled this under the MI component as well as python (for pretty printers). Please fill free to adjust the component if I messed up. Thanks. --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.