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
{{ message }}
Repository navigation
hipcc exits 0 when the compiler is killed by a signal #1948
hipcc exits 0 when the compiler it runs is killed by a signal, so a crashed compile looks successful and no object file is written. Seen on macOS: clang hit an assertion (SIGABRT), hipcc returned 0, no .o.
HipBinUtil::exec in HIPCC/src/hipBin_util.h decodes the pclose status with WEXITSTATUS only:
int closeStatus = pclose(pipe);
sysOut.exitCode = WEXITSTATUS(closeStatus);
When /bin/sh execs the single compile command (bash does this, and macOS /bin/sh is bash), clang is the direct child, its status is WIFSIGNALED, and WEXITSTATUS of that is 0. Dash on Linux does not exec, so it reports 134 and hides the bug. Forcing the exec reproduces it on Linux:
Activity