Problem summary
Nuke crashes when shebang executing a .nk script.
Customer reported version
n/a
Customer reported platform
n/a
Steps to reproduce
1) Copy the following lines into a file called 'do_i_crash_n11.nk':
#! /usr/local/Nuke11.3v4/Nuke11.3 -nxputs "Do I crash?"
2) Make the script executable by running the following command in the terminal:
chmod +x ./do_i_crash_n11.nk
3) Execute the script in the terminal:
./do_i_crash_n11.nk
Expected behaviour
Nuke shouldn't crash. The following is the terminal output from Nuke 8.0v7:
Nuke 8.0v7, 64 bit, built Apr 4 2015.
Copyright (c) 2015 The Foundry Visionmongers Ltd. All Rights Reserved.
Do I crash?
There are no active Write operators in this script
Actual behaviour
Nuke crashes. The following is the terminal output from Nuke 11.3v4:
Nuke 11.3v4, 64 bit, built May 1 2019.
Copyright (c) 2019 The Foundry Visionmongers Ltd. All Rights Reserved.
Segmentation fault (core dumped)
Workaround
The script should execute correctly if the flags are seperated, like so:
#! /usr/local/Nuke11.3v4/Nuke11.3 -n -xputs "Do I crash?"
Reproduced by support
This bug has been reproduced in:
Nuke 11.3v4 - Linux CentOS 6 - macOS 10.13 (High Sierra)
Nuke 11.3v1 - Linux CentOS 6
Nuke 11.2v1 - Linux CentOS 6
Nuke 11.1v1 - Linux CentOS 6
Nuke 11.0v1 - Linux CentOS 6
Nuke 10.5v1 - Linux CentOS 6
Nuke 10.0v1 - Linux CentOS 6
Nuke 9.0v1 - Linux CentOS 6 - macOS 10.13 (High Sierra) - Regression
Unable to reproduce bug in:
Nuke 8.0v7 - Linux CentOS 6 - macOS 10.13 (High Sierra)
Earliest version tested
Nuke 8.0v7
- This issue no longer appears in this version and has regressed