Sample Compiler Bugs

You are welcome to try out Csmith 2.0.0 by generating the following random programs, and see how quickly they can break your compiler. All random programs are generated with command:

csmith --bitfields --packed-struct -s <seed>

If you are using gcc 3.2.2 (32-bit), the default compiler on Redhat 9:

Seed
Symptom
4085150455
gcc crashes at -O0
3110802907
gcc crashes at -O1
2120657167
gcc crashes at -O2
3918660865
gcc crashes at -O3
1849857627
gcc crashes at -Os

If you are using gcc 4.2.1 (32-bit), the default compiler on FreeBSD 9.0:

Seed
Symptom
1125565922
gcc crashes at -O0
3565422777
gcc crashes at -O1
938350729
gcc crashes at -O2
1743340682
gcc crashes at -O3
1849857627
gcc crashes at -Os

If you are using gcc 4.3.2 (32-bit), the default compiler on Fedora 10:

Seed
Symptom
2115379734
gcc crashes at -O0
80122366
gcc crashes at -O1
503418450
gcc crashes at -O2
2115782314
gcc crashes at -O3
1144081048
gcc crashes at -Os

If you are using gcc 4.4.3 (32-bit), the default compiler on Ubuntu 10.04.1:

Seed
Symptom
133910020
gcc crashes at -O2
253603242
gcc crashes at -O3
3230950649
gcc crashes at -Os

If you are using gcc 4.4.3 (64-bit), the default compiler on Ubuntu 10.04.1:

Seed
Symptom
1014372711
gcc crashes at -O2
2569273905
gcc crashes at -O3
2087907740
gcc crashes at -Os
2855047764
gcc generates different checksums at -O0 and -O2