[lldb-dev] Further Linux adventures

Dragos Tatulea dragos.tatulea at gmail.com
Thu Oct 27 05:19:49 PDT 2011


On Thu, Oct 27, 2011 at 1:34 AM, Joel Dillon <joelrdillon at gmail.com> wrote:

> I now have lldb compiling and attempting to execute a program. There seems
> to be an assumption in the code that sizeof(int) is 8 on a 64 bit platform.
> This is not the case with Linux/gcc 4.6, leading to some rather nasty bugs
> (the return value of ptrace() was being assigned to an int, truncating data
> from peeks, for instance!). I've fixed the ptrace() issue but another one is
> happening somewhere around breakpoints. I added some logging which displays
> the problem -
>
> Process 4017 launched: '/home/jo/reader/calliope' (x86_64)
> (lldb) Looking for address 406780, list size is 1
> Entry 0 is 406780 sizeof 8
> Looking for address 270f9300, list size is 2
> Entry 0 is 406780 sizeof 8
> Entry 1 is 7ffb270f9300 sizeof 8
> lldb:
> /home/jo/lldb/llvm/tools/lldb/source/Plugins/Process/Linux/LinuxThread.cpp:249:
> void LinuxThread::BreakNotify(const ProcessMessage&): Assertion `bp_site'
> failed.
>
> Hmm, you seem to be further away than me. lldb reports the debugged
executable as crashing in _start with invalid instruction (on a program that
just returns 0 in main). This is after fixing the ptrace PEEKUSER issue, on
a somewhat similar setup: gcc 4.5 on x86_64.

Thanks,
Dragos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20111027/5ae61364/attachment.html>


More information about the lldb-dev mailing list