[Lldb-commits] [PATCH] D16107: Fix for Bug 25338

Ravitheja Addepally via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 28 02:51:36 PST 2016


ravitheja added a comment.

Hello @ldrumm,

  I did investigate the issue and my finding is that incorrect values are being passed to the SetDataWithReadMemoryFallback function. Now I suspect the ElfSectionHeader is wrongly parsed in your case and the size and offsets obtained are wrong. To talk briefly about r258122, it just tries to allocate enough memory for Elf files being loaded by lldb and earlier it would not have read the Elf file so you wouldnt have seen this issue because it would have just returned. Could you maybe check the ElfSectionHeader::Parse function, and see the values it obtains for this elf (mainly the sh_offset and sh_size fields), maybe print them in logs ? I currently don't have an Android x86_64 environment.


http://reviews.llvm.org/D16107





More information about the lldb-commits mailing list