Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDB segfaults when using Ctrl-C to interrupt attached process #4318

Open
1 task done
exposedcranium opened this issue Dec 30, 2023 · 2 comments
Open
1 task done

GDB segfaults when using Ctrl-C to interrupt attached process #4318

exposedcranium opened this issue Dec 30, 2023 · 2 comments
Labels

Comments

@exposedcranium
Copy link

exposedcranium commented Dec 30, 2023

Description / Steps to reproduce the issue

  1. Launch MSYS2 terminal.
  2. Run "gdb".
  3. Attach to a running process with "attach <pid>".
  4. Press "c" to continue past initial breakpoint.
  5. Press Ctrl-C to interrupt (break) execution.
  6. Segfault

Expected behavior

Program is interrupted and return to GDB console.

Actual behavior

Segmentation fault:

Fatal signal: Segmentation fault
----- Backtrace -----
---------------------
A fatal error internal to GDB has been detected, further
debugging is not possible.  GDB will now terminate.

This is a bug, please report it.  For instructions, see:
<https://www.gnu.org/software/gdb/bugs/>.

Segmentation fault (core dumped)

Verification

Windows Version

MSYS_NT-10.0-22000

Are you willing to submit a PR?

No idea how to fix.

@Biswa96
Copy link
Member

Biswa96 commented Dec 31, 2023

What is the output of type gdb ?

@exposedcranium
Copy link
Author

Ended up switching to mingw64's gdb implementation instead of MSYS' which works fine. Will try again when I get the chance. (btw, why do we need both?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants