You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the build command given to log (using LD-LOGGER) contains the substring cc (in lowercase!) in the build executable (not in the arguments, but as the first "word"), the result JSON is empty.
CodeChecker version
6.7.1 (but this has been around for ages, I think even 4.0 has this issue)
To Reproduce
Create a dummy shell script (let's name it build-cc.sh) that does a compilation on a dummy file.
#!/bin/bash
g++ -c hello-world.cpp -o /dev/null
Make sure this shell script is executable: chmod +x ./build-cc.sh.
Create some symbolic links to this file that has different names, or copy this file over and over again. Examples: cc.sh, cC.sh, foobar.sh, build-cC.sh, bu-cc-ild.sh, etc.
Do a CodeChecker log using these shell scripts as build commands, e.g. CodeChecker log -o temp1.json -b "./build-cc.sh". Alternatively, also run where the build command is bash ./build-cc.sh.
The build log is NOT populated for cc.sh, build-cc.sh, bu-cc-ild.sh and the likes.
The build log is populated where the shell script's name does not contain the substring cc, or when it is invoked as bash ./whatever.sh.
The issue does only appear if the command is a shell script. For example, if the build command is ccache (even if a local ccache symlink is made to the real install location), the logging still works.
Removing the shebang from the script does not fix the issue either.
Expected behavior
The build log is populated in both cases.
Desktop (please complete the following information)
OS: Ubuntu 16.04.5 LTS
This should be fixed in the logger tool.
The text was updated successfully, but these errors were encountered:
Describe the bug
If the build command given to
log
(using LD-LOGGER) contains the substringcc
(in lowercase!) in the build executable (not in the arguments, but as the first "word"), the result JSON is empty.CodeChecker version
6.7.1 (but this has been around for ages, I think even 4.0 has this issue)
To Reproduce
build-cc.sh
) that does a compilation on a dummy file.#!/bin/bash g++ -c hello-world.cpp -o /dev/null
chmod +x ./build-cc.sh
.cc.sh
,cC.sh
,foobar.sh
,build-cC.sh
,bu-cc-ild.sh
, etc.CodeChecker log
using these shell scripts as build commands, e.g.CodeChecker log -o temp1.json -b "./build-cc.sh"
. Alternatively, also run where the build command isbash ./build-cc.sh
.The build log is NOT populated for
cc.sh
,build-cc.sh
,bu-cc-ild.sh
and the likes.The build log is populated where the shell script's name does not contain the substring
cc
, or when it is invoked asbash ./whatever.sh
.The issue does only appear if the command is a shell script. For example, if the build command is
ccache
(even if a localccache
symlink is made to the real install location), the logging still works.Removing the shebang from the script does not fix the issue either.
Expected behavior
The build log is populated in both cases.
Desktop (please complete the following information)
This should be fixed in the logger tool.
The text was updated successfully, but these errors were encountered: