[lldb-dev] lldb 340.4.119 unable to attach (El Capitan)

2015-12-26 Thread Andre Vergison via lldb-dev
Hi,
I tried Jason Molenda’s test code on El Capitan, lldb-340.4.119 (Jason Molenda 
via lldb-dev | 3 Oct 02:59 2015).
I’m connected to a remote VM using ssh.

tst$ echo 'int main () { }' > /tmp/a.c
tst$ xcrun clang /tmp/a.c -o /tmp/a.out
tst$ xcrun lldb /tmp/a.out
(lldb) target create "/tmp/a.out"
Current executable set to '/tmp/a.out' (x86_64).
(lldb) r
error: process exited with status -1 (unable to attach)
(lldb) run
error: process exited with status -1 (unable to attach)
(lldb) quit
tst$ ps -ef|grep a.out
  502 33174 1   0 12:20PM ttys0000:00.00 /tmp/a.out
  502 33187 1   0 12:20PM ttys0000:00.00 /tmp/a.out

I can’t even kill those using kill -9.

What’s going on here?

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)

Is this related? Compiled with g++ :

tst$ g++ --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-inc
lude-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.0.0
Thread model: posix

Thx,
Andre
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Patch for addressing format warnings on 32-bit

2015-12-26 Thread Joerg Sonnenberger via lldb-dev
On Fri, Dec 25, 2015 at 06:34:09PM -0800, William Dillon via lldb-dev wrote:
> There are a handful of -Wformat warnings on 32-bit platforms.
> I addressed all those that I’ve seen while working on Swift.
> Let me know if the git diff format is inappropriate for this.

Don't cast size_t to uint64_t, format it with %zu directly.

Joerg
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev