public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/31946] New: sys.exit from Python no longer exits the GDB process
@ 2024-07-02 19:06 gsingh2011 at gmail dot com
  2024-07-02 19:07 ` [Bug python/31946] " gsingh2011 at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: gsingh2011 at gmail dot com @ 2024-07-02 19:06 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31946
           Summary: sys.exit from Python no longer exits the GDB process
           Product: gdb
           Version: 15.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: gsingh2011 at gmail dot com
  Target Milestone: ---

I'm using GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git on
Ubuntu 24.04, and I'm observing different behavior with `sys.exit` in Python
then when I was using GNU gdb (Ubuntu 12.1-0ubuntu1~22.04.2) 12.1 on Ubuntu
22.04. I'm not exactly sure which version of GDB first had this bug, these are
the only versions I tested.

In GDB 12.1, `sys.exit(1)` in Python would exit the GDB process with an exit
code of 1. In GDB 15.0, I'm seeing that there's an exception message instead,
and GDB does not exit:
```
Python Exception <class 'SystemExit'>: 1
Error occurred in Python: 1
```

This was discussed on the mailing list here:
https://sourceware.org/pipermail/gdb/2024-June/051417.html

It sounds like this change was not intentional. Some projects are relying on
the old behavior, and this change breaks them.

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

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

* [Bug python/31946] sys.exit from Python no longer exits the GDB process
  2024-07-02 19:06 [Bug python/31946] New: sys.exit from Python no longer exits the GDB process gsingh2011 at gmail dot com
@ 2024-07-02 19:07 ` gsingh2011 at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: gsingh2011 at gmail dot com @ 2024-07-02 19:07 UTC (permalink / raw)
  To: gdb-prs

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

Gulshan Singh <gsingh2011 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gsingh2011 at gmail dot com

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

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-02 19:06 [Bug python/31946] New: sys.exit from Python no longer exits the GDB process gsingh2011 at gmail dot com
2024-07-02 19:07 ` [Bug python/31946] " gsingh2011 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).