Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Do you have the source code to the function you're debugging? That'd be a heck of a lot easier to work with than the assembly. Commented Jul 21, 2015 at 20:20
  • What are the register values after the crash? (just the ones from line 17) Commented Jul 21, 2015 at 20:55
  • SonOfSun and merridius, thanks for catching this. Changing the value to $32 works. Wow, then I will have to file a bug report to LLVM, since this assembler was generated from its x86-64 backend from IR that had the correct loop bounds :-( Commented Jul 22, 2015 at 1:49
  • how to debug asm: use gdb with layout reg and layout asm. See stackoverflow.com/tags/x86/info for more info and links. In this case, since you already had gdb running on it, you could x (examine) the memory at the address referenced by %rdx + r11 * 4, and see that it was inaccessible. Commented Jul 23, 2015 at 12:02