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

[BUG] Use of uninitialized value triggered in NVVM #64

Open
gmarkall opened this issue Oct 28, 2024 · 0 comments
Open

[BUG] Use of uninitialized value triggered in NVVM #64

gmarkall opened this issue Oct 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gmarkall
Copy link
Collaborator

When running the test suite under valgrind, the following can be observed:

test_device_function_with_debug (numba.cuda.tests.cudapy.test_compiler.TestCompile.test_device_function_with_debug) ... ==32116== Conditional jump or move depends on uninitialised value(s)
==32116==    at 0xC18EBDA2: ??? (in /usr/local/cuda-12.6/nvvm/lib64/libnvvm.so.4.0.0)
==32116==    by 0xC18B80A0: ??? (in /usr/local/cuda-12.6/nvvm/lib64/libnvvm.so.4.0.0)
==32116==    by 0xC1898FE9: ??? (in /usr/local/cuda-12.6/nvvm/lib64/libnvvm.so.4.0.0)
==32116==    by 0xC189441E: ??? (in /usr/local/cuda-12.6/nvvm/lib64/libnvvm.so.4.0.0)
==32116==    by 0xC165EB68: ??? (in /usr/local/cuda-12.6/nvvm/lib64/libnvvm.so.4.0.0)
==32116==    by 0xC12E30E7: ??? (in /usr/local/cuda-12.6/nvvm/lib64/libnvvm.so.4.0.0)
==32116==    by 0xC0A63C4F: ??? (in /usr/local/cuda-12.6/nvvm/lib64/libnvvm.so.4.0.0)
==32116==    by 0xC0A63CA2: ??? (in /usr/local/cuda-12.6/nvvm/lib64/libnvvm.so.4.0.0)
==32116==    by 0xC0A62E4E: ??? (in /usr/local/cuda-12.6/nvvm/lib64/libnvvm.so.4.0.0)
==32116==    by 0xC0734D2E: ??? (in /usr/local/cuda-12.6/nvvm/lib64/libnvvm.so.4.0.0)
==32116==    by 0xC0740340: ??? (in /usr/local/cuda-12.6/nvvm/lib64/libnvvm.so.4.0.0)
==32116==    by 0x5373BA49: ffi_call_unix64 (in /home/gmarkall/miniforge3/envs/numbadev/lib/libffi.so.8.1.0)
==32116== 

It is quite possible that this occurs because we do not pass the -g flag to NVVM even when including debuginfo metadata, which I think is not the correct way to drive debuginfo generation with NVVM.

@gmarkall gmarkall added the bug Something isn't working label Oct 28, 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