Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

LLDB hangs on exit if remote lldb-gdbserver died after attach #22963

Open Quuxplusone opened 9 years ago

Quuxplusone commented 9 years ago
Bugzilla Link PR22964
Status NEW
Importance P normal
Reported by Tamas Berghammer (tamas@hudson-trading.com)
Reported on 2015-03-20 12:12:16 -0700
Last modified on 2015-03-30 07:52:15 -0700
Version unspecified
Hardware PC Linux
CC tamas@hudson-trading.com, vince@nethacker.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
Repro:
* Remote debugging from Linux to Linux (most likely wrong in other platforms
also)
* Select platform and connect to it
* Attach to a remote running application
* Kill lldb-gdbserver and lldb-platfrom (both are lldb-server instances)
manually from the OS
* Try to exit from lldb (exit command or Ctrl+D)

Expected result:
* LLDB exits cleanly

Actual result:
* LLDB hangs on exit
Quuxplusone commented 9 years ago

Great bug. Please protect with test.

Quuxplusone commented 9 years ago
(In reply to comment #1)
> Great bug.  Please protect with test.

It is almost impossible to kill lldb-server from a test case especially on
remote platforms as the test runner don't have access to the OS. If we kill
them with going through lldb then the state will be adjusted correctly and not
necessarily triggering the bug. Killing lldb-platform would also interfere with
other running tests as all test case use the same instance.