<div dir="ltr">Hi Raphael, <div><br></div><div>Thanks for the advice! <br><br>> I think the best idea is to comment on the commit on Phabricator ( <a href="http://reviews.llvm.org/" target="_blank">reviews.llvm.org</a> ) as it seems to be a relatively recent change. Otherwise if you can somehow provide way to reproduce the deadlock using only code you can share + LLVM.org sources then filing a bug would be an option too.</div><div><br>I'll definitely leave a comment then, as at the very least I should be able to get some feedback on the commit itself. I can't (sadly) reproduce the deadlock using public code - I'm still looking into how we can share our (private) llvm/lldb dependencies so that public parties can build them, so I may hold off on filing a bug until I have sorted that. <br><br>> At least the backtrace of all threads in the deadlocked state would be good to know. And of course the commit your bisect stopped at if it's a bug report.<br><br>I can absolutely share all of these, and I'll make sure to include them in any bug report I file. </div><div><br></div><div>> And I believe you can't use the reproducer feature here as that requires having the respective LLDB binary to replay (which you probably can't share).</div><div><br></div><div>Our LLDB binaries are publicly available, however there are a number static libraries that we link into our LLVM backend whose source is proprietary, hence why I cannot reproduce the bug using public code. <br><br>Thanks, </div><div>Adam </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 22 Jun 2021 at 18:33, Raphael “Teemperor” Isemann <<a href="mailto:teemperor@gmail.com">teemperor@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><span>Hi Adam,</span></div><div><span><br></span></div><span>I think the best idea is to comment on the commit on Phabricator ( <a href="http://reviews.llvm.org" target="_blank">reviews.llvm.org</a> ) as it seems to be a relatively recent change. Otherwise if you can somehow provide way to reproduce the deadlock using only code you can share + LLVM.org sources then filing a bug would be an option too.<br></span><div><br></div><div>Regarding what information you should provide: Pretty much everything that you can share would help. At least the backtrace of all threads in the deadlocked state would be good to know. And of course the commit your bisect stopped at if it's a bug report. From there people might have an idea how to reproduce the issue in a unit test or via the SB API (or what could be going wrong in your downstream fork).</div><div><br></div><div>And I believe you can't use the reproducer feature here as that requires having the respective LLDB binary to replay (which you probably can't share).</div><div><br></div><div>- Raphael</div><div><div><br><blockquote type="cite"><div>On 22 Jun 2021, at 19:10, Adam HARRIES via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:</div><br><div><div dir="ltr">Hi all, <div><br></div><div>I've recently taken over maintenance of my company's llvm+lldb branch, where we have added support for our in-house architecture (in llvm) as well as support for debugging through both hardware and our simulator. Our llvm fork is public/open source, however many of our runtime libraries and drivers (which are linked into lldb, clang, etc, and provide built-ins and driver support etc) are not. <br><br>While attempting to update our branch from llvm-11 to llvm-12 we came across a commit[1] in lldb which quite reliably causes a deadlock when we launch a process to debug a core dump. Luckily, said commit simply modifies some concurrency primitives, and reverting it is sufficient to fix the bug without any further effects. We are quite confident that the commit is the issue, as we performed a thorough bisect which maintained "our" code unchanged throughout.<br><br>Unfortunately, however, we are unable to reproduce this bug in any "open" architectures (such as x86-64, AArch64, etc), so are not entirely sure how we should go about reporting the bug. Additionally, it makes it difficult to open a discussion regarding whether the commit is correct (and thus we may need to modify our additions to lldb to match new implicit behaviour), as third parties may be unable to reproduce the issue. Finally, as the bug results in a deadlock (which requires a sigkill to end) we won't (as I understand it) be able to use a "Reproducer" to demonstrate the bug to third parties. </div><div><br></div><div>Although we are able to "solve" the issue locally (by reverting the commit), we feel that the better solution would be to feed back our findings to the community and solve the issue, rather than (privately) sweeping it under the rug. As components of our compiler are proprietary, however, this process becomes difficult due to the reasons listed above.</div><div><br>To summarise, there are two main questions that I feel unable to answer: </div><div>- Is there an existing process for reporting bugs that only affect third parties, and which cannot be reproduced in "core" targets. </div><div>- To what extend is it possible to discuss (or report) bugs "on faith" - as in without any concrete evidence that a third party can reproduce.</div><div><br></div><div>We are currently looking into opening up our build process so that we are able to distribute binary libraries to enable third parties to build our compiler + debugger, but as this is currently a work-in-progress it is unfortunately not a solution to this issue. <br><br>Many thanks in advance for any and all advice.<br>Yours,</div><div><br>-- <br><div dir="ltr"><div dir="ltr"><div><b><font color="#666666">Adam Brouwers-Harries</font></b><br></div><div><font color="#666666">Compiler Engineer</font></div><div><font color="#666666"><a href="mailto:aharries@upmem.com" target="_blank">aharries@upmem.com</a></font></div><div><br></div><div>[1] Please note, I have specifically not named this commit as I wish to better understand the "meta"-bug filing process, and I do not wish to publicly assign blame for any bugs without understanding how and why I can do so respectfully and properly.</div></div></div></div></div>
_______________________________________________<br>lldb-dev mailing list<br><a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br></div></blockquote></div><br></div></div></blockquote></div>