[Lldb-commits] [PATCH] test/lldbtest.py exception handling fix

Oleksiy Vyalov ovyalov at google.com
Fri Oct 24 12:04:12 PDT 2014


Hi clayborg,

Hello,

I was running tests on my Ubuntu and noticed that sometimes lldb and inferior process remained in process list after test run is completed:

** ps -elf | grep lldb
0 S ovyalov  13653  4457  0  80   0 - 125362 futex_ 11:09 ?       00:00:00 /usr/local/home/ovyalov/projects/lldb/git/build/bin/lldb --no-lldbinit -b -o break set -n main -o run -o continue /usr/local/home/ovyalov/projects/lldb/git/lldb/test/driver/batch_mode/a.out -- CRASH
0 t ovyalov  13783 13653  0  80   0 -  1049 ptrace 11:09 pts/60   00:00:00 /usr/local/home/ovyalov/projects/lldb/git/lldb/test/driver/batch_mode/a.out CRASH
0 S ovyalov  14124  4457  0  80   0 - 125362 futex_ 11:43 ?       00:00:00 /usr/local/home/ovyalov/projects/lldb/git/build/bin/lldb --no-lldbinit -b -o break set -n main -o run -o continue /usr/local/home/ovyalov/projects/lldb/git/lldb/test/driver/batch_mode/a.out -- CRASH
0 t ovyalov  14299 14124  0  80   0 -  1049 ptrace 11:43 pts/67   00:00:00 /usr/local/home/ovyalov/projects/lldb/git/lldb/test/driver/batch_mode/a.out CRASH
0 S ovyalov  14803 14689  0  80   0 - 125297 futex_ 17:15 pts/55  00:00:00 ./lldb --no-lldbinit -b -o break set -n main -o run -o continue /usr/local/home/ovyalov/projects/lldb/git/lldb/test/driver/batch_mode/a.out -- NOCRASH
0 t ovyalov  14809 14803  0  80   0 -  1048 ptrace 17:15 pts/58   00:00:00 /usr/local/home/ovyalov/projects/lldb/git/lldb/test/driver/batch_mode/a.out NOCRASH
0 S ovyalov  14837 28698  0  80   0 -  5936 pipe_w 17:16 pts/57   00:00:00 grep --color=auto lldb
**
As I found out, the problem is in lldbtest.py which improperly handles exceptions. I've attached a patch to address this issue - please let me know whether it looks okay.

http://reviews.llvm.org/D5983

Files:
  test/lldbtest.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5983.15433.patch
Type: text/x-patch
Size: 793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141024/33e48395/attachment.bin>


More information about the lldb-commits mailing list