On Linux, if I want a library that can produce a nice stack trace on demand with function name + line number in my C code, which is your recommended choice?
Conversation
Notices
-
Embed this notice
daniel:// stenberg:// (bagder@mastodon.social)'s status on Sunday, 23-Nov-2025 21:39:22 JST
daniel:// stenberg://
-
Embed this notice
Peter Krefting (nafmo@social.vivaldi.net)'s status on Sunday, 23-Nov-2025 21:39:22 JST
Peter Krefting
@bagder I have used the standard glibc backtrace() and backtrace_symbols() for this, to log which function called an API with bad arguments.
-
Embed this notice