<div dir="ltr">The tests are failing because, as I did not realize, there is no way for lldb (apart from the one on my machine) to find the debug symbols. So the only thing that lldb has are the Minidump files. And I think the unwinder gets confused because some of the frames are missing.<div><br></div><div>For a temporary solution in I will add the binaries to the test folder so that lldb can have the debug symbols. (which will be my next CL)</div><div><br></div><div>When (hopefully) I add Minidump write support, the binaries could be removed, and I can use Adrian's approach when testing - include the cpp source in the test folder, then the test compiles it, runs the binary, sets a breakpoint, writes Minidump, inspects the Minidump, etc.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 5, 2016 at 4:38 PM, Zachary Turner <span dir="ltr"><<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If all the tests are being xfailed you should probably just revert the original patch until the tests are fixed<div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 5, 2016 at 8:09 AM Dimitar Vlahovski via lldb-commits <<a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: dvlahovski<br class="m_4979458926626307724gmail_msg">
Date: Wed Oct  5 10:00:29 2016<br class="m_4979458926626307724gmail_msg">
New Revision: 283324<br class="m_4979458926626307724gmail_msg">
<br class="m_4979458926626307724gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=283324&view=rev" rel="noreferrer" class="m_4979458926626307724gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=283324&view=rev</a><br class="m_4979458926626307724gmail_msg">
Log:<br class="m_4979458926626307724gmail_msg">
xfailing minidump tests again ... :(<br class="m_4979458926626307724gmail_msg">
<br class="m_4979458926626307724gmail_msg">
Modified:<br class="m_4979458926626307724gmail_msg">
    lldb/trunk/packages/Python/<wbr>lldbsuite/test/<wbr>functionalities/postmortem/<wbr>minidump-new/TestMiniDumpNew.<wbr>py<br class="m_4979458926626307724gmail_msg">
<br class="m_4979458926626307724gmail_msg">
Modified: lldb/trunk/packages/Python/<wbr>lldbsuite/test/<wbr>functionalities/postmortem/<wbr>minidump-new/TestMiniDumpNew.<wbr>py<br class="m_4979458926626307724gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/TestMiniDumpNew.py?rev=283324&r1=283323&r2=283324&view=diff" rel="noreferrer" class="m_4979458926626307724gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/lldb/trunk/packages/<wbr>Python/lldbsuite/test/<wbr>functionalities/postmortem/<wbr>minidump-new/TestMiniDumpNew.<wbr>py?rev=283324&r1=283323&r2=<wbr>283324&view=diff</a><br class="m_4979458926626307724gmail_msg">
==============================<wbr>==============================<wbr>==================<br class="m_4979458926626307724gmail_msg">
--- lldb/trunk/packages/Python/<wbr>lldbsuite/test/<wbr>functionalities/postmortem/<wbr>minidump-new/TestMiniDumpNew.<wbr>py (original)<br class="m_4979458926626307724gmail_msg">
+++ lldb/trunk/packages/Python/<wbr>lldbsuite/test/<wbr>functionalities/postmortem/<wbr>minidump-new/TestMiniDumpNew.<wbr>py Wed Oct  5 10:00:29 2016<br class="m_4979458926626307724gmail_msg">
@@ -18,6 +18,7 @@ class MiniDumpNewTestCase(TestBase):<br class="m_4979458926626307724gmail_msg">
<br class="m_4979458926626307724gmail_msg">
     NO_DEBUG_INFO_TESTCASE = True<br class="m_4979458926626307724gmail_msg">
<br class="m_4979458926626307724gmail_msg">
+    @expectedFailureAll<br class="m_4979458926626307724gmail_msg">
     def test_process_info_in_minidump(<wbr>self):<br class="m_4979458926626307724gmail_msg">
         """Test that lldb can read the process information from the Minidump."""<br class="m_4979458926626307724gmail_msg">
         # target create -c linux-x86_64.dmp<br class="m_4979458926626307724gmail_msg">
@@ -28,6 +29,7 @@ class MiniDumpNewTestCase(TestBase):<br class="m_4979458926626307724gmail_msg">
         self.assertEqual(self.<wbr>process.GetNumThreads(), 1)<br class="m_4979458926626307724gmail_msg">
         self.assertEqual(self.<wbr>process.GetProcessID(), 16001)<br class="m_4979458926626307724gmail_msg">
<br class="m_4979458926626307724gmail_msg">
+    @expectedFailureAll<br class="m_4979458926626307724gmail_msg">
     def test_thread_info_in_minidump(<wbr>self):<br class="m_4979458926626307724gmail_msg">
         """Test that lldb can read the thread information from the Minidump."""<br class="m_4979458926626307724gmail_msg">
         # target create -c linux-x86_64.dmp<br class="m_4979458926626307724gmail_msg">
@@ -42,6 +44,7 @@ class MiniDumpNewTestCase(TestBase):<br class="m_4979458926626307724gmail_msg">
         stop_description = thread.GetStopDescription(256)<br class="m_4979458926626307724gmail_msg">
         self.assertTrue("SIGSEGV" in stop_description)<br class="m_4979458926626307724gmail_msg">
<br class="m_4979458926626307724gmail_msg">
+    @expectedFailureAll<br class="m_4979458926626307724gmail_msg">
     def test_stack_info_in_minidump(<wbr>self):<br class="m_4979458926626307724gmail_msg">
         """Test that we can see a trivial stack in a breakpad-generated Minidump."""<br class="m_4979458926626307724gmail_msg">
         # target create linux-x86_64 -c linux-x86_64.dmp<br class="m_4979458926626307724gmail_msg">
@@ -62,6 +65,7 @@ class MiniDumpNewTestCase(TestBase):<br class="m_4979458926626307724gmail_msg">
         self.assertTrue(eip.IsValid()<wbr>)<br class="m_4979458926626307724gmail_msg">
         self.assertEqual(pc, eip.GetValueAsUnsigned())<br class="m_4979458926626307724gmail_msg">
<br class="m_4979458926626307724gmail_msg">
+    @expectedFailureAll<br class="m_4979458926626307724gmail_msg">
     def test_snapshot_minidump(self):<br class="m_4979458926626307724gmail_msg">
         """Test that if we load a snapshot minidump file (meaning the process did not crash) there is no stop reason."""<br class="m_4979458926626307724gmail_msg">
         # target create -c linux-x86_64_not_crashed.dmp<br class="m_4979458926626307724gmail_msg">
@@ -74,6 +78,7 @@ class MiniDumpNewTestCase(TestBase):<br class="m_4979458926626307724gmail_msg">
         stop_description = thread.GetStopDescription(256)<br class="m_4979458926626307724gmail_msg">
         self.assertEqual(stop_<wbr>description, None)<br class="m_4979458926626307724gmail_msg">
<br class="m_4979458926626307724gmail_msg">
+    @expectedFailureAll<br class="m_4979458926626307724gmail_msg">
     def test_deeper_stack_in_minidump(<wbr>self):<br class="m_4979458926626307724gmail_msg">
         """Test that we can examine a more interesting stack in a Minidump."""<br class="m_4979458926626307724gmail_msg">
         # Launch with the Minidump, and inspect the stack.<br class="m_4979458926626307724gmail_msg">
@@ -90,6 +95,7 @@ class MiniDumpNewTestCase(TestBase):<br class="m_4979458926626307724gmail_msg">
             function_name = frame.GetFunctionName()<br class="m_4979458926626307724gmail_msg">
             self.assertTrue(name in function_name)<br class="m_4979458926626307724gmail_msg">
<br class="m_4979458926626307724gmail_msg">
+    @expectedFailureAll<br class="m_4979458926626307724gmail_msg">
     def test_local_variables_in_<wbr>minidump(self):<br class="m_4979458926626307724gmail_msg">
         """Test that we can examine local variables in a Minidump."""<br class="m_4979458926626307724gmail_msg">
         # Launch with the Minidump, and inspect a local variable.<br class="m_4979458926626307724gmail_msg">
<br class="m_4979458926626307724gmail_msg">
<br class="m_4979458926626307724gmail_msg">
______________________________<wbr>_________________<br class="m_4979458926626307724gmail_msg">
lldb-commits mailing list<br class="m_4979458926626307724gmail_msg">
<a href="mailto:lldb-commits@lists.llvm.org" class="m_4979458926626307724gmail_msg" target="_blank">lldb-commits@lists.llvm.org</a><br class="m_4979458926626307724gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" class="m_4979458926626307724gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/lldb-commits</a><br class="m_4979458926626307724gmail_msg">
</blockquote></div>
</div></div></blockquote></div><br></div>