Profiling Fails with Exit Code
Exit codes are displayed when Profiling fails to execute. Figure 7-39 indicates an error when the Shell script exits. Table 7-6 describes the exit codes preset in the Shell script.
Exit Code |
Description |
Example |
Cause |
---|---|---|---|
1 |
Common error |
- |
This exit code indicates various errors, such as a division-by-zero error. |
2 |
Shell built-in command usage error |
- |
This exit code is rarely used. Generally, 1 is returned to indicate the error. |
6 |
Abnormal exit from an assertion failure when the internal code in the app is executing |
- |
- |
126 |
Command execution failure |
- |
The program or command cannot be executed. Check whether the permission to call and execute the app is normal. |
127 |
Command not found |
- |
The environment variable is incorrect. Check and set the environment variables by referring to Environment Preparation. |
128 |
Error caused by incorrect exit parameter |
exit 3.14159 |
The value of exit must be an integer ranging from 0 to 255. |
128+n |
Fatal error of signal n |
kill -9 $PPID returns 137 (128 + 9). |
- |
255* |
Invalid exit status |
exit -1 |
The value of exit must be an integer ranging from 0 to 255. |
For more detailed analyses of the exit codes, see the log in /var/log/npu/slog.