Skip to content

Crash fix python.mod - #1913

Merged
vanosg merged 1 commit into
eggheads:developfrom
michaelortmann:pyfix
Jun 19, 2026
Merged

vanosg merged 1 commit into
eggheads:developfrom
michaelortmann:pyfix

Conversation

@michaelortmann

Copy link
Copy Markdown
Member

Found by: pagzlol
Patch by: michaelortmann
Fixes: #1912

One-line summary:
Crash fix, break on error

Additional description (if needed):

Test cases demonstrating functionality (if applicable):
Before:

.load python
.python eggdrop.parse_tcl_list("{")
[01:23:26] tcl: builtin dcc call: *dcc:python -HQ 1 eggdrop.parse_tcl_list("{")
Python Error: <built-in function parse_tcl_list> returned a result with an exception set
eggdrop.error: Supplied string is not a Tcl list

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
SystemError: <built-in function parse_tcl_list> returned a result with an exception set
[... some seconds later ...]
SIGSEGV

After:
No more crash

@michaelortmann michaelortmann changed the title Crash fix, break on error Crash fix python.mod Jun 15, 2026
@vanosg
vanosg merged commit 3524000 into eggheads:develop Jun 19, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

python.mod: parse_tcl_list() crashes the bot on a malformed list instead of throwing

3 participants