[Lldb-commits] [PATCH] D61833: Fix IPv6 support on lldb-server platform

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon May 20 00:18:14 PDT 2019


labath added inline comments.


================
Comment at: unittests/Host/ConnectionFileDescriptorTest.cpp:41
+    llvm::StringRef path;
+    EXPECT_TRUE(UriParser::Parse(connection_file_descriptor.GetURI(), scheme,
+                                 hostname, port, path));
----------------
Judging by Davide's email, this looks like the cause of your problem. GetURI() returns a temporary string, which means that the StringRefs `UriParser` parses it into become dangling after this statement.


Repository:
  rLLDB LLDB

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61833/new/

https://reviews.llvm.org/D61833





More information about the lldb-commits mailing list