[llvm-bugs] [Bug 41049] New: [ARM64] Debugging Arm64 debug binary gives memory access error when accessing local variables

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 12 15:36:43 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=41049

            Bug ID: 41049
           Summary: [ARM64] Debugging Arm64 debug binary gives memory
                    access error when accessing local variables
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alewoolf at microsoft.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Here are my repro steps. I believe this holds for any amd64 debug program.

1) Create test.cpp whose contents are simply:

int main() {
  int x = 1;
}

2) Build the exe with clang-cl.exe --target=arm64-windows /Zi /Od test.cpp

3) Deploy test.exe / test.pdb to arm64 machine

4) Open exe under debugger, and break into code (windbg.exe test.exe, then bp
test!main in command line)

5) step into function and try to observe value of local variable.
expected: local variable value displays
actual: memory access error reported

No repro on amd64.
With arm64 retail (/O2 instead of /Od), no issue except for volatile variables,
which also have memory access error.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190312/03cdb59d/attachment.html>


More information about the llvm-bugs mailing list