top | item 41432664

(no title)

milianw | 1 year ago

I don't know exactly what these BSD things did, but there is a super easy way nowadays to get the stack for any process:

    eu-stack -i -p $(pidof ...)
Thanks to debuginfod this will even give you good backtraces right away (at the cost of some initial delay to load the data from the web, consecutive runs are fast). If you get a "permission denied" error, you probably need to tweak kernel.yama.ptrace_scope=0

discuss

order

kragen|1 year ago

the bsd things still work; you can install a bsd in qemu or a spare laptop and try them

from your reference to kernel.yama.ptrace_scope (and your apparent belief that bsd belongs to the distant past) i infer that eu-stack is a linux thing? this looks pretty awesome, thanks for the tip!

https://stackoverflow.com/questions/12394935/getting-stacktr...