View Issue Details

IDProjectCategoryView StatusLast Update
0009835CTT UA Binary2 - CTT Binarypublic2024-09-18 12:59
ReporterAlexander Allmendinger Assigned ToAlexander Allmendinger  
PrioritynormalSeveritytweakReproducibilityalways
Status assignedResolutionopen 
Summary0009835: Auto-Save CTT Trace/Log
Description

The trace/log of the CTT is collected in the user interface and can be saved in a file from there. But in Linux and when running the CTT from the command line, there is no enhanced logging/tracing available. This makes investigations of issues difficult.

The CTT should automatically save the log/trace in a file so it is accessible even without using the user interface. Also the return parameters are currently -1, 0 and 1. It potentially would make sense to use other negative values to indicate common issues like wrong parameter strings or other issues during the startup or execution of the executable.

TagsNo tags attached.
Files Affected

Activities

Frank Fischer

2024-09-16 09:31

reporter   ~0021716

On Linux and older versions of Windows the exit code is truncated to the range 0-255 (-1 is returned as 255), so for compatibility only new values in the range 2-254 should be added.

References:
https://man7.org/linux/man-pages/man3/exit.3.html ("the least significant byte of status (i.e., status & 0xFF) is returned")
https://learn.microsoft.com/en-us/previous-versions/6wdz5232(v=vs.140) ("the low-order byte of status is made available")

Issue History

Date Modified Username Field Change
2024-09-14 20:33 Alexander Allmendinger New Issue
2024-09-16 09:31 Frank Fischer Note Added: 0021716
2024-09-18 12:59 Paul Hunkar Assigned To => Alexander Allmendinger
2024-09-18 12:59 Paul Hunkar Status new => assigned