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



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to