[lldb-dev] lldb 340.4.119 unable to attach (El Capitan)
Jason Molenda via lldb-dev
lldb-dev at lists.llvm.org
Tue Dec 29 01:51:41 PST 2015
> On Dec 26, 2015, at 3:53 AM, Andre Vergison via lldb-dev <lldb-dev at lists.llvm.org> wrote:
>
> I tried the above because in fact I had a process which a segmentation fault 11, here’s what lldb makes out of the core dump:
>
> txt$ lldb /cores/core.33158
> (lldb) target create "/cores/core.33158"
> warning: (x86_64) /cores/core.33158 load command 175 LC_SEGMENT_64 has a fileoff
> + filesize (0x31c57000) that extends beyond the end of the file (0x31c56000), t
> he segment will be truncated to match
> warning: (x86_64) /cores/core.33158 load command 176 LC_SEGMENT_64 has a fileoff
> (0x31c57000) that extends beyond the end of the file (0x31c56000), ignoring thi
> s section
> Current executable set to '/cores/core.33158' (x86_64).
> (lldb)
For what it's worth, this is often a harmless warning message when debugging a user process core dump. The core creator code in the kernel adds an extra memory segment to the core file when it writes it out. There's a bug report tracking the issue but it's pretty much cosmetic so it hasn't been addressed yet. Try debugging your core file and see if it works. You may want to specify the name of your binary on the lldb cmd line like 'lldb a.out -c /tmp/core.33158'.
J
More information about the lldb-dev
mailing list