public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug dap/30680] [gdb/dap] ThreadSanitizer: data race gdbsupport/event-pipe.h:44 in event_pipe::is_open() const
Date: Fri, 28 Jul 2023 16:20:47 +0000	[thread overview]
Message-ID: <bug-30680-4717-mce9Bk7Zpx@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30680-4717@http.sourceware.org/bugzilla/>

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

--- Comment #11 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom Tromey from comment #10)
> I definitely (but intermittently) see the failure with the assert patch
> applied.
> I'm not much closer to finding the problem, though.
> I think the challenge is finding out what bit of code might be
> unblocking SIGCHLD on this thread.

I set a breakpoint on pthread_create, and ran a basic dap test.  For the dap
threads, there's a backtrace:
...
#24 0x00007ffff7401b7e in _PyObject_FastCallDict (func=<function at remote
0x7fffec10c1e0>, args=0x0, 
    nargs=<optimized out>, kwargs=0x0) at Objects/abstract.c:2310
#25 0x0000000000a353ea in dap_interp::init (this=0x2bfdac0, top_level=true)
    at /data/vries/gdb/src/gdb/python/py-dap.c:82
#26 0x000000000089ef02 in interp_set (interp=0x2bfdac0, top_level=true) at
/data/vries/gdb/src/gdb/interps.c:140
#27 0x000000000089f197 in set_top_level_interpreter (name=0x286de50
<interpreter_p[abi:cxx11]+16> "dap")
    at /data/vries/gdb/src/gdb/interps.c:209
#28 0x000000000091ac77 in captured_main_1 (context=0x7fffffffdaa0) at
/data/vries/gdb/src/gdb/main.c:1139
...
so I tried to wrap the code around the py-dap.c:82:
...
  gdbpy_ref<> result_obj (PyObject_CallObject (func.get (), nullptr));
  if (result_obj == nullptr)
    gdbpy_handle_exception ();
...
in the gdb::block_signals wrapper, but that didn't fix it either.

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

  parent reply	other threads:[~2023-07-28 16:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-25 10:33 [Bug dap/30680] New: " vries at gcc dot gnu.org
2023-07-25 10:46 ` [Bug dap/30680] " vries at gcc dot gnu.org
2023-07-25 11:10 ` vries at gcc dot gnu.org
2023-07-25 11:51 ` vries at gcc dot gnu.org
2023-07-25 12:36 ` tromey at sourceware dot org
2023-07-26 12:12 ` vries at gcc dot gnu.org
2023-07-26 16:23 ` vries at gcc dot gnu.org
2023-07-26 16:57 ` vries at gcc dot gnu.org
2023-07-26 16:59 ` vries at gcc dot gnu.org
2023-07-28 11:01 ` vries at gcc dot gnu.org
2023-07-28 16:04 ` tromey at sourceware dot org
2023-07-28 16:20 ` vries at gcc dot gnu.org [this message]
2023-07-28 17:58 ` tromey at sourceware dot org
2023-07-28 18:10 ` tromey at sourceware dot org
2023-07-31 12:37 ` cvs-commit at gcc dot gnu.org
2023-07-31 12:38 ` tromey at sourceware dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30680-4717-mce9Bk7Zpx@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).