From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5216 invoked by alias); 21 Jul 2009 02:09:16 -0000 Received: (qmail 5208 invoked by uid 22791); 21 Jul 2009 02:09:15 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_12,SPF_PASS,WEIRD_PORT X-Spam-Check-By: sourceware.org Received: from imr1.ericy.com (HELO imr1.ericy.com) (198.24.6.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Jul 2009 02:09:09 +0000 Received: from eusrcmw751.eamcs.ericsson.se (eusrcmw751.exu.ericsson.se [138.85.77.51]) by imr1.ericy.com (8.13.1/8.13.1) with ESMTP id n6L296fY028665 for ; Mon, 20 Jul 2009 21:09:07 -0500 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw751.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.3959); Mon, 20 Jul 2009 21:08:54 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: Segfault in user command Date: Tue, 21 Jul 2009 02:09:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA07BFFFFB@ecamlmw720.eamcs.ericsson.se> From: "Marc Khouzam" To: 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-07/txt/msg00148.txt.bz2 Hi, I was trying to use 'interpreter-exec mi' inside a user-defined command, and GDB segfaulted (session below). It is today's version of GDB. I had seen this in passing many moons ago, but today I told myself I=20 really should report it. Should I open a bugzilla about it? Thanks Marc GNU gdb (GDB) 6.8.50.20090720-cvs Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". For bug reporting instructions, please see: ... (gdb) define minext Type commands for definition of "minext". End with a line saying just "end". >interpreter-exec mi -exec-next >end (gdb) start Temporary breakpoint 1 at 0x80484ce: file c.cc, line 9. Starting program: /home/marc/testing/a.out=20 Temporary breakpoint 1, main () at c.cc:9 9 int a =3D 1; (gdb) minext Segmentation fault