nvcc/ptxas bug segfault in ptxas (CUDA-1.1) on x86_64


Compiling the attached code with the command “nvcc -c ptxas_bug_demo.cu” on SuSE-10.2 (64bit) gives the following message:

nvcc error : ‘ptxas’ died due to signal 11 (Invalid memory reference)

Somebody doesn’t seem to like nested structs here…

My system information:

Linux mark #1 SMP Tue Oct 2 17:21:08 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux

nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2006 NVIDIA Corporation
Built on Wed_Nov__7_03:26:42_PST_2007
Cuda compilation tools, release 1.1, V0.2.1221

As a workaround, I will try to avoid nested structs for now. It compiles fine in the 32bit version, though I didn’t test it, since I only develop for the 64bit platform.

Kind regards,
ptxas_bug_demo.tar.gz (268 Bytes)

I think the problem is due to long variable names (known bug), not to nested structures.
As a temporary workaround, try to change the name SomeStructName to SSN and see if the problem is still there.

You are right, this is one way to make the bug go away. In this particular example, “unnesting” the structures also fixes the problem, so these seem to be somehow related (e.g., name mangling of nested structures creates long symbols).

Kind regards,