[Bug remote/33122] Packet error happens when using LD_RRELOAD+__attribute__((constructor))+std::thread+conditional_variable.wait

tromey at sourceware dot org sourceware-bugzilla@sourceware.org
Wed Jul 2 12:49:03 GMT 2025


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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
It's tricky to preload anything into gdbserver itself.

I'm just guessing but the issue might be that signals
in gdbserver could now be delivered to the new thread.
This could perhaps confuse gdbserver.  I'm basing this
hypothesis off the "input_interrupt" text.

That function can be called as a signal handler:

  signal (SIGIO, input_interrupt);

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


More information about the Gdb-prs mailing list