[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-bugs] likely bad code



Since both Clang and GCC at -O0 produce crashing output from this seed, I'm guessing it has undefined behavior.

John


[regehr@gamow ~]$ /home/regehr/csmith/src/csmith -s 655329422 --bitfields --force-globals-static --unions --output rand002204.c
[regehr@gamow ~]$ current-gcc -O0 rand002204.c -I/home/regehr/csmith/runtime -w
[regehr@gamow ~]$ ./a.out
Segmentation fault
[regehr@gamow ~]$ clang -O0 rand002204.c -I/home/regehr/csmith/runtime -w
[regehr@gamow ~]$ ./a.out
Segmentation fault
[regehr@gamow ~]$