[lldb-dev] [Bug 25086] New: lldb should use unix socket for communication with server on linux

via lldb-dev lldb-dev at lists.llvm.org
Wed Oct 7 02:06:35 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=25086

            Bug ID: 25086
           Summary: lldb should use unix socket for communication with
                    server on linux
           Product: lldb
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: vrba at mixedrealities.no
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

As documented on the webpage, lldb on linux uses lldb-server even for local
debugging. It connects to this stub via loopback device. I believe it should
connect over a UNIX socket instead. (On Windows, named pipes are the
corresponding alternative.)

Explanation: For debugging a network protocol I have introduced packet loss on
the loopback device with the following command:

tc qdisc add dev lo root netem loss random 15

This introduces 15% packet loss and causes lldb to work EXTREMELY slowly
because its communication with the server stub is severely disrupted. It takes
ages to start debugging even a simple "hello world" program.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20151007/8a8338ce/attachment.html>


More information about the lldb-dev mailing list