[lldb-dev] Stopped status is reported as exit by 32-bit linux lldb

Matthew Gardiner mg11 at csr.com
Fri Feb 21 02:48:49 PST 2014


Hi,

With a recent build of 32-bit linux lldb, tracer stop being
sent to the inferior results in lldb erroneously reporting
that the inferior has exit:

$ lldb hello
Current executable set to 'hello' (i386).
(lldb) run
Process 2115 launching
Process 2115 stopped
* thread #1: tid = 2115, 0x00000000, name = 'hello', stop reason = trace
     frame #0: 0x00000000
error: Input/output error
(lldb) Process 2115 launched: '/home/mg11/src/play/clang-tests/hello/hello' (i386)
Hello from test program!!
(lldb) process interrupt
Process 2115 exited with status = 0 (0x00000000)

But the kernel reports the following about the inferior:

$ cat /proc/2115/status
Name:	hello
State:	t (tracing stop)
Tgid:	2115
Pid:	2115
PPid:	2108
TracerPid:	2114
...

The statement "Process 2115 exited with status = 0 (0x00000000)" is
wrong.

thanks
Matthew Gardiner




Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Keep up to date with CSR on our technical blog, www.csr.com/blog, CSR people blog, www.csr.com/people, YouTube, www.youtube.com/user/CSRplc, Facebook, www.facebook.com/pages/CSR/191038434253534, or follow us on Twitter at www.twitter.com/CSR_plc.
New for 2014, you can now access the wide range of products powered by aptX at www.aptx.com.



More information about the lldb-dev mailing list