From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by sourceware.org (Postfix) with ESMTPS id 038643858D35 for ; Wed, 8 Jul 2020 23:31:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 038643858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=alves.ped@gmail.com Received: by mail-wr1-f42.google.com with SMTP id b6so343345wrs.11 for ; Wed, 08 Jul 2020 16:31:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=rVLzZehtXU2epIG9+31lfEFiYxXdKajwtNG7qP2sY70=; b=m8+EM1foXxdKfFdw6oX9sOhBYJwgaQRUiaFBQfGf4bnN3qihRlkV3mR0E7e2hHPLBU bE7AknT+iyIRvc78e6zq/hx9qiiZAZAbEX09C8mfXsJKD5hw4v6URlzIsvYEdRsNy2hy JDvFMJFOTT9ptV91DtiLasK+vKtIHkK2pEdZwnH0XZ9LWgrP1Wq+RqSctNJ96A1IbbWp OK9Rrk3PZO2L9HBP0WvMuh694OqbtfVnBkG50L22+lfyaMB1g2/a8IFZMiC8A16k5iXG N5lHRbJ5LPXa0FZ0D9BamXoEyC+2GOwuJyFm/+ZQqLIX1rfBUAsGHUXN0+u1hwmu82Tx nomw== X-Gm-Message-State: AOAM5332/2Bjf2mn17LwcCzMUUvOSEHp1dlONkRgRpesv8zlpNYyasyQ gFRf8DOV+lXydB06+xyohpkgc16JHqk= X-Google-Smtp-Source: ABdhPJwHqEAu45yh7MSl9LLH5Vj8KKTfVO/X/Bk5bQ58H5UcLexd3EYu0Il4OA9LFWoAkg0MA+hV5Q== X-Received: by 2002:adf:8091:: with SMTP id 17mr47536310wrl.13.1594251087667; Wed, 08 Jul 2020 16:31:27 -0700 (PDT) Received: from localhost ([83.223.242.101]) by smtp.gmail.com with ESMTPSA id b18sm2307480wrs.46.2020.07.08.16.31.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Jul 2020 16:31:26 -0700 (PDT) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/3] Fix crash if connection drops in scoped_restore_current_thread's ctor Date: Thu, 9 Jul 2020 00:31:22 +0100 Message-Id: <20200708233125.1030-1-pedro@palves.net> X-Mailer: git-send-email 2.14.5 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_LOTSOFHASH, RCVD_IN_ABUSEAT, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2020 23:31:30 -0000 (I have internet again: found a sim card of a different operator that works. This will do until the communications tower near me is repaired and get I fiber back...) This series fixes the crashes exposed by the gdb.multi/multi-target.exp testcase when run against an Asan-enabled GDB build, initially reported by Simon here: https://sourceware.org/pipermail/gdb-patches/2020-July/170222.html The first two patches fix the crashes, and we should probably put them in GDB 10. The last patch is a follow up that avoids swallowing exceptions in scoped_restore_current_thread's dtor that I'm thinking would be a bit too invasive to put in GDB 10, I think it could do with a longer baking period in master. Pedro Alves (3): Fix crash if connection drops in scoped_restore_current_thread's ctor, part 1 Fix crash if connection drops in scoped_restore_current_thread's ctor, part 2 Make scoped_restore_current_thread's cdtors exception free (RFC) gdb/blockframe.c | 6 +--- gdb/dwarf2/frame-tailcall.c | 18 +++++++++-- gdb/frame.c | 73 ++++++++++++++++++++++++++++++------------- gdb/frame.h | 22 ++++++++++--- gdb/gdbthread.h | 4 +++ gdb/stack.c | 9 +++--- gdb/thread.c | 76 ++++++++++++++++----------------------------- gdb/value.c | 13 +++++++- 8 files changed, 132 insertions(+), 89 deletions(-) base-commit: ad8464f799a4c96c7ab8bdfec3f95846cf54f9b0 prerequisite-patch-id: 32ffdda7d7d774bc4df88bf848bcb796559b53ce prerequisite-patch-id: 02021b74355b70debd344a6e445285c67dfef7d6 prerequisite-patch-id: c87fcf5a54f6805967cbf8ab107606c57d9ecf52 prerequisite-patch-id: ac7dee583d0ffa519c9d1cd89d27664bca68d8c1 prerequisite-patch-id: eac59ae2ea85d2d51e5be1b03e88a5641cc12c22 prerequisite-patch-id: 13da42ad04dc8e2e3bd6a556a0be0e17cf23669b prerequisite-patch-id: fd3f09fdb58ddc1c595ea014716851f4c8fca48c -- 2.14.5