[Lldb-commits] [PATCH] D53255: Fix: Assertion failed: (!m_first_die || m_first_die == m_die_array.front()), function ExtractDIEsRWLocked
Jan Kratochvil via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 17 09:07:16 PDT 2018
jankratochvil added a comment.
In https://reviews.llvm.org/D53255#1267850, @labath wrote:
> It looks like it should be easy to write a test for this by hand-crafting a minimal .s file and feeding it to lldb-test.
Even with such a crafted file (in lldb-repro.tar.xz <https://people.redhat.com/jkratoch/lldb-repro.tar.xz>) I haven't found a way how to call `DWARFUnit::ExtractUnitDIEIfNeeded()` first. LLDB will always call `DWARFUnit::ExtractDIEsRWLocked()` first which cannot reproduce the bug. @xbolva00's file must have something special that `process launch -s` does call `DWARFUnit::ExtractUnitDIEIfNeeded()` first, my testcase does not. As I guess @xbolva00 cannot provide that file to us I think it would be enough to see a backtrace to the first call of `DWARFUnit::ExtractUnitDIEIfNeeded()` to find it out.
More information about the lldb-commits