Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testcase generate with csmith --float --strict-float oad of misaligned address for type 'const float' Seed=1692891924876124 #133

Open
yansendao opened this issue Apr 6, 2021 · 0 comments

Comments

@yansendao
Copy link

test command

csmith --float --strict-float -o test.c -s 1692891924876124
gcc -Ofast -I /home/yansendao/software/csmith/include -w -O2 -ftrapv -fsanitize=undefined,address test.c && ./a.out

result

test.c:1066:50: runtime error: load of misaligned address 0x000000422782 for type 'const float', which requires 4 byte alignment
0x000000422782: note: pointer points here
 ff 1f  01 00 00 00 a0 3e 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
test.c:1066:18: runtime error: load of misaligned address 0x000000422782 for type 'const float', which requires 4 byte alignment
0x000000422782: note: pointer points here
 ff 1f  01 00 00 00 a0 3e 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00
              ^ 
checksum = 83A24B4A
$ csmith --version
csmith 2.4.0
Git version: deddca6

test.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant