ID 589374 - Nuke will segfault/crash when running quit() or exit() in terminal mode on macOS

Follow

Problem summary
Nuke will segfault/crash when running quit() or exit() in the Python Interpreter on the command line on macOS.
 
Customer reported version
Nuke 15.1v3
 
Customer reported platform
macOS 15 Sequoia
 
Steps to reproduce
1) On Mac, open Terminal, then path to the Nuke installation directory. (e.g cd /Applications/Nuke15.1v3/Nuke15.1v3.app/Contents/MacOS/)
2) Run the command: ./Nuke -V 2 -t (or -ti)
3) When the Python Interpreter appears as >>>, run the command: quit()  or exit() 
 
Expected behavior
Nuke should quit or exit without erroring, segfaults or crashing.
 
Actual behavior
The Nuke Python Interpreter will exit as a crash and display the message: "zsh: segmentation fault  ./Nuke15.1 -V 2 -t"
 
Workaround
There is no available workaround at this time.
 
Reproduced by Support in:
Nuke 15.1v4 - macOS 13 Ventura
Nuke 13.2v8 - macOS 13 Ventura - regression
 
Not reproduced on:
Nuke 15.1v4 - Windows 10, Rocky 9
 
Earliest version tested
Nuke 13.1v5 - This issue doesn't appear in this version and has regressed

    We're sorry to hear that

    Please tell us why