From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49021 invoked by alias); 27 Oct 2018 21:58:59 -0000 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 Received: (qmail 48999 invoked by uid 89); 27 Oct 2018 21:58:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=errorsc, Hx-languages-length:1214, errors.c, gdb_main X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 27 Oct 2018 21:58:56 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 691603078AB9 for ; Sat, 27 Oct 2018 21:58:55 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-20.ams2.redhat.com [10.36.116.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A3CD0608EE; Sat, 27 Oct 2018 21:58:53 +0000 (UTC) Date: Sat, 27 Oct 2018 21:58:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: 8.2 regression for invalid -data-directory [Re: [RESEND][PATCH 01/40] Convert struct target_ops to C++] Message-ID: <20181027215850.GA995151@host1.jankratochvil.net> References: <20180414190953.24481-1-palves@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-SW-Source: 2018-10/txt/msg00659.txt.bz2 f6ac5f3d63e03a81c4ff3749aba234961cc9090e is the first bad commit commit f6ac5f3d63e03a81c4ff3749aba234961cc9090e Author: Pedro Alves Date: Thu May 3 00:37:22 2018 +0100 Convert struct target_ops to C++ $ ./gdb -data-directory gdb Segmentation fault Program received signal SIGSEGV, Segmentation fault. target_supports_terminal_ours () at target.c:590 590 return current_top_target ()->supports_terminal_ours (); (gdb) bt #0 target_supports_terminal_ours () at target.c:590 #1 0x0000000000c0c0d0 in vwarning (string=0x14bc4ca "%s is not a directory.", args=0x7fffffffc8e0) at utils.c:173 #2 0x00000000005af49d in warning (fmt=0x14bc4ca "%s is not a directory.") at common/errors.c:31 #3 0x0000000000873848 in set_gdb_data_directory (new_datadir=0x7fffffffd1f4 "gdb") at main.c:121 #4 0x000000000087465a in captured_main_1 (context=0x7fffffffcce0) at main.c:763 #5 0x00000000008753e1 in captured_main (data=0x7fffffffcce0) at main.c:1163 #6 0x00000000008754bd in gdb_main (args=0x7fffffffcce0) at main.c:1189 #7 0x00000000004129dc in main (argc=3, argv=0x7fffffffcde8) at gdb.c:32 (gdb) _