[PATCH 0/3] Fix crash if connection drops in scoped_restore_current_thread's ctor
Pedro Alves
pedro@palves.net
Wed Jul 8 23:31:22 GMT 2020
(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
More information about the Gdb-patches
mailing list