Re: [tools-team] Questions on multi-thread for crash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Florian,

Thanks a lot for your reply,

On Fri, Feb 10, 2023 at 3:48 PM Florian Weimer <fweimer@xxxxxxxxxx> wrote:
>
> * Andrew Burgess:
>
> > If this is the case, then no, GDB is certainly not thread safe.  GDB
> > isn't a library, and was not written as one.  I guess it'll work just
> > fine if you only try to use a single instance of GDB within "crash", but
> > if you have multiple threads calling into different parts of GDB then
> > things are going to go wrong quickly.
>
> Furthermore, GDB needs to use kernel interfaces which have properties
> that are awkward for certain threading use cases, such as having to
> conduct operations from specific threads.  But if you only want to look
> at coredumps, that won't matter (in theory, GDB is of course still
> structured around such interfaces to some extent).
>
OK, I see...

> > I don't know if any other debuggers are written more as a library, so
> > can't help here, sorry.
>
> There is LLDB, but some time ago, I found it curiously non-aligned with
> typical Linux userspace usage scenarios.  It may matter less for kernel
> crash dumps.
>
> There's also the possibility to read the ELF data structures directly.
> It's harder for DWARF.
>

Thanks a lot for providing the info, so I can evaluate the effort
needed for the project.

Thanks,
Tao Liu

> Thanks,
> Florian
>

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/crash-utility
Contribution Guidelines: https://github.com/crash-utility/crash/wiki




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux