On my computer any C program compiled with assert(0) dumps a core file, but this glibc issue assert does not dump a core file. Is there an issue with this assert macro in glibc? The message output on the terminal is different from the standard macro
$ ./a a: a.c:6: main: Assertion `0' failed. Aborted (core dumped)
$ cat a.c // gcc -Wall -o a a.c #include <assert.h>
int main() { assert(0); }
On my computer any C program compiled with assert(0) dumps a core file, but this glibc issue assert does not dump a core file. Is there an issue with this assert macro in glibc? The message output on the terminal is different from the standard macro
$ ./a
a: a.c:6: main: Assertion `0' failed.
Aborted (core dumped)
$ cat a.c
// gcc -Wall -o a a.c
#include <assert.h>
int main()
{
assert(0);
}