[lldb-dev] LLDB hang loading Linux core files from live processes (Bug 26322)

Howard Hellyer via lldb-dev lldb-dev at lists.llvm.org
Thu Nov 10 05:53:26 PST 2016

I've been hitting a hang when lldb loads some core dumps created on Linux, 
generally those created via gcore.

I found an open bug for this here:
and the fix that was suggested there still works. (The patch needs some 
tidying up due to the code formatting changes.)

I'd quite like to take that change and submit an updated patch via 
phabricator. Since no-one else has done that so far I was wondering if 
there was a problem with the approach it took or just a question of time. 
The patch just adds a flag to say that the process was loaded from a core 
file and uses that as a simple check to see if lldb should wait for the 
process to resume or not. Doing that works around changing the logic for 
working out the thread states. I'm not sure if that's bad as it avoids 
fixing the thread state logic or good as it allows the core to load 
without needing to change the thread states from the state they were in 
when the core file was created.

If no-one objects I'll grab the bug and submit a patch, otherwise please 
let me know and I'll look at fixing it another way.


Howard Hellyer 
IBM Runtime Technologies, IBM Systems
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20161110/19eefb57/attachment.html>

More information about the lldb-dev mailing list