Re: crash-bt-user-space

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

 



On 2023/10/07 15:24, Yulong TANG 汤玉龙 wrote:
> Hi,
> 
> 
> Is it possible to display the user stack trace of a process (Not kernel stack
> trace of a process) from kernel core dump using crash utility.
> 
> #bt <pid>
> will display the kernel stack trace of the process pid.
> 
> 
> I know extension 'gcore' can generate an process coredump,then use gdb bt to print user stack trace
> 
> Is there any command can more quickly display this in crash shell?

No, I think the gcore extension is the best solution so far.

> 
> Or if I want to develop a command for this, How should I do? To call embeded gdb function?

I don't know whether it's possible with the embedded gdb.

Printing one user stack requires the executable and all libraries being 
used and user processes have different virtual address spaces, I'm not 
sure whether gdb can handle them in crash context.  Also, that 
complexity feels to me maybe not worth implementing in crash, 
considering the existence of the gcore extension...

Thanks,
Kazu
--
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