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

Undefined behavior when compiled with Clang: "applying non-zero offset X to null pointer" #9

Open
tdulcet opened this issue Mar 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tdulcet
Copy link
Member

tdulcet commented Mar 3, 2024

Undefined behavior detected when Mlucas is compiled with Clang with UBSan enabled:

../src/dft_macro.c:3856:14: runtime error: applying non-zero offset 512 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:3856:14 in 
../src/dft_macro.c:3856:30: runtime error: applying non-zero offset 1024 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:3856:30 in 
../src/dft_macro.c:3856:46: runtime error: applying non-zero offset 1536 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:3856:46 in 
../src/dft_macro.c:3856:62: runtime error: applying non-zero offset 2048 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:3856:62 in 
../src/dft_macro.c:3856:78: runtime error: applying non-zero offset 2560 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:3856:78 in 
../src/dft_macro.c:3856:94: runtime error: applying non-zero offset 3072 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:3856:94 in 
../src/dft_macro.c:3856:110: runtime error: applying non-zero offset 3584 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:3856:110 in 
../src/dft_macro.c:4271:14: runtime error: applying non-zero offset 512 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:4271:14 in 
../src/dft_macro.c:4271:30: runtime error: applying non-zero offset 1024 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:4271:30 in 
../src/dft_macro.c:4271:46: runtime error: applying non-zero offset 1536 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:4271:46 in 
../src/dft_macro.c:4271:62: runtime error: applying non-zero offset 2048 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:4271:62 in 
../src/dft_macro.c:4271:78: runtime error: applying non-zero offset 2560 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:4271:78 in 
../src/dft_macro.c:4271:94: runtime error: applying non-zero offset 3072 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:4271:94 in 
../src/dft_macro.c:4271:110: runtime error: applying non-zero offset 3584 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/dft_macro.c:4271:110 in 
@tdulcet tdulcet added the bug Something isn't working label Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant