public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/31359] New: Unable to stop proton or wine games after a breakpoint gets triggered
@ 2024-02-09 14:57 korcankaraokcu at gmail dot com
  2024-02-10  0:15 ` [Bug breakpoints/31359] " tromey at sourceware dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: korcankaraokcu at gmail dot com @ 2024-02-09 14:57 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31359
           Summary: Unable to stop proton or wine games after a breakpoint
                    gets triggered
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: korcankaraokcu at gmail dot com
  Target Milestone: ---

After a breakpoint hits, it becomes impossible to stop the process again. I'm
generally using gdb with mi interpreter so I've also tried it with the
interrupt command, it doesn't work either. Here's the reproduction steps

1-)Attach to a wine/proton game
2-)Stop the process
3-)Set a breakpoint at $pc
4-)Continue the process, the breakpoint hits immediately
5-)Remove the breakpoint and continue the process

There's a good chance the process will never react to interrupt command after
the steps 3-5. If it works, try repeating steps 3-5 again. In my experience,
this happens either in 1st or 2nd try. I've tested with multiple gdb versions
including 11.2, 12.1 and 14.1 and I was able to reproduce the bug so I've
chosen HEAD as the version

I'm using the mi interpreter to automate gdb for pince. Here's the related
github issue for anyone interested:
https://github.com/korcankaraokcu/PINCE/issues/238

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug breakpoints/31359] Unable to stop proton or wine games after a breakpoint gets triggered
  2024-02-09 14:57 [Bug breakpoints/31359] New: Unable to stop proton or wine games after a breakpoint gets triggered korcankaraokcu at gmail dot com
@ 2024-02-10  0:15 ` tromey at sourceware dot org
  2024-02-10 10:26 ` korcankaraokcu at gmail dot com
  2024-02-10 10:29 ` [Bug breakpoints/31359] Proton and wine games crashes or becomes impossible to stop " korcankaraokcu at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2024-02-10  0:15 UTC (permalink / raw)
  To: gdb-prs

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

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> ---
You're sending "interrupt"?  (BTW there's an MI command, "-exec-interrupt")

That probably won't work unless you've also requested MI
async mode, like "-gdb-set mi-async on".  Is your program
doing this?

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug breakpoints/31359] Unable to stop proton or wine games after a breakpoint gets triggered
  2024-02-09 14:57 [Bug breakpoints/31359] New: Unable to stop proton or wine games after a breakpoint gets triggered korcankaraokcu at gmail dot com
  2024-02-10  0:15 ` [Bug breakpoints/31359] " tromey at sourceware dot org
@ 2024-02-10 10:26 ` korcankaraokcu at gmail dot com
  2024-02-10 10:29 ` [Bug breakpoints/31359] Proton and wine games crashes or becomes impossible to stop " korcankaraokcu at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: korcankaraokcu at gmail dot com @ 2024-02-10 10:26 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Korcan Karaokçu <korcankaraokcu at gmail dot com> ---
(In reply to Tom Tromey from comment #1)
> You're sending "interrupt"?  (BTW there's an MI command, "-exec-interrupt")
> 
> That probably won't work unless you've also requested MI
> async mode, like "-gdb-set mi-async on".  Is your program
> doing this?

I know the mi counterpart for interrupt exists, it's just that the code is old
and since it works, I haven't changed it

I've tried executing "-gdb-set mi-async on" before attaching and the result is
the same. I've also tested with regular gdb, without mi interpreter, outcome is
still the same

Btw, the more I tested, the more I've seen the other outcomes. In most of my
tests, the application crashed after the step 5 at the first try. I'm currently
testing on small games, Moonring on steam (proton) and Minesweeper on wine.
Moonring is free, test it for yourself if you want. Sometimes they just work as
usual, but mostly they just crash after step 5. I'll be changing the title to
reflect the other outcomes, such as crash

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug breakpoints/31359] Proton and wine games crashes or becomes impossible to stop after a breakpoint gets triggered
  2024-02-09 14:57 [Bug breakpoints/31359] New: Unable to stop proton or wine games after a breakpoint gets triggered korcankaraokcu at gmail dot com
  2024-02-10  0:15 ` [Bug breakpoints/31359] " tromey at sourceware dot org
  2024-02-10 10:26 ` korcankaraokcu at gmail dot com
@ 2024-02-10 10:29 ` korcankaraokcu at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: korcankaraokcu at gmail dot com @ 2024-02-10 10:29 UTC (permalink / raw)
  To: gdb-prs

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

Korcan Karaokçu <korcankaraokcu at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Unable to stop proton or    |Proton and wine games
                   |wine games after a          |crashes or becomes
                   |breakpoint gets triggered   |impossible to stop after a
                   |                            |breakpoint gets triggered

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-10 10:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-09 14:57 [Bug breakpoints/31359] New: Unable to stop proton or wine games after a breakpoint gets triggered korcankaraokcu at gmail dot com
2024-02-10  0:15 ` [Bug breakpoints/31359] " tromey at sourceware dot org
2024-02-10 10:26 ` korcankaraokcu at gmail dot com
2024-02-10 10:29 ` [Bug breakpoints/31359] Proton and wine games crashes or becomes impossible to stop " korcankaraokcu at gmail dot com

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).