GUPC allocates this variable from the upc_shared section.
While this bug was exhibited on PPC, the same issues exists on x86-64, but it is not visible as vaddr is small enough to fit inside the thread's sahred space (we just write at the random shared space). On PPC all VMAs start at 0x10000000 that puts our vaddr high enough to be detected.
Intrepid's test18 test fails on PPC platform with bad vaddr. Here is a small example that duplicates this problem:
After looking into the generated code I noticed that 'int2' is not being declared from the shared section. Instead, '.comm' is used.
GUPC allocates this variable from the upc_shared section.
While this bug was exhibited on PPC, the same issues exists on x86-64, but it is not visible as vaddr is small enough to fit inside the thread's sahred space (we just write at the random shared space). On PPC all VMAs start at 0x10000000 that puts our vaddr high enough to be detected.