public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/16909] New: GDB `add-inferior` causes segfaults on OSX
@ 2014-05-06  1:10 evan.sultanik at digitaloperatives dot com
  0 siblings, 0 replies; only message in thread
From: evan.sultanik at digitaloperatives dot com @ 2014-05-06  1:10 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16909

            Bug ID: 16909
           Summary: GDB `add-inferior` causes segfaults on OSX
           Product: gdb
           Version: 7.7
            Status: NEW
          Severity: critical
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: evan.sultanik at digitaloperatives dot com

$ gdb -ex 'add-inferior -exec pwd' -ex 'inferior 2' -ex 'run'

and

$ gdb -ex 'add-inferior -copies 2 -exec pwd' -ex 'inferior 2' -ex 'run'

both segfault on the `run` command.  In both cases it appears as if it is due
to a null pointer dereference, however, the stack traces for both versions are
slightly different.  I assume that the underlying cause is that multiple
inferiors are not supported in that environment, but GDB should die more
gracefully if that is the case.

I have reproduced this on GDB 7.6 and 7.6.2, both configured as
"x86_64-apple-darwin13.0.0", and also GDB 7.7 configured as
"x86_64-apple-darwin13.1.0”.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-15681-listarch-gdb-prs=sources.redhat.com@sourceware.org Tue May 06 01:13:40 2014
Return-Path: <gdb-prs-return-15681-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 24404 invoked by alias); 6 May 2014 01:13:39 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 24382 invoked by uid 48); 6 May 2014 01:13:39 -0000
From: "evan.sultanik at digitaloperatives dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/16909] GDB `add-inferior` causes segfaults on OSX
Date: Tue, 06 May 2014 01:13:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: gdb
X-Bugzilla-Version: 7.7
X-Bugzilla-Keywords:
X-Bugzilla-Severity: critical
X-Bugzilla-Who: evan.sultanik at digitaloperatives dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-16909-4717-3ZvywXfhsD@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-16909-4717@http.sourceware.org/bugzilla/>
References: <bug-16909-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-q2/txt/msg00187.txt.bz2
Content-length: 345

https://sourceware.org/bugzilla/show_bug.cgi?id\x16909

--- Comment #1 from Evan Sultanik <evan.sultanik at digitaloperatives dot com> ---
I forgot to mention: The segfaults occur regardless of the executable passed to
`add-inferior`; I just chose `pwd` for example.

--
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-06  1:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-06  1:10 [Bug gdb/16909] New: GDB `add-inferior` causes segfaults on OSX evan.sultanik at digitaloperatives dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).