Closed Absolucy closed 2 years ago
Describe the bug The library preloaded by bear sets errno to EINVAL, which causes strange errors in software that checks for errno in functions.
errno
EINVAL
To Reproduce
#include <stdlib.h> #include <errno.h> #include <string.h> int main() { printf("error %i: %s\n", errno, strerror(errno)); return 0; }
$ bear -- ./a.out error 22: Invalid argument
Expected behavior
$ ./a.out error 0: Success
Environment:
Additional context N/A, bug is completely unrelated to build systems, and can be reliably reproduced on a basic 5-line executable.
Before you send...
README.md
man bear
thanks @Absolucy !
Describe the bug The library preloaded by bear sets
errno
toEINVAL
, which causes strange errors in software that checks for errno in functions.To Reproduce
Expected behavior
Environment:
Additional context N/A, bug is completely unrelated to build systems, and can be reliably reproduced on a basic 5-line executable.
Before you send...
README.md
file orman bear
?: Yes