I would like to know if there is a system call/library function
available in linux which prints the current stack trace of the
If main() calls a() which calls b() which in turn calls c() and if
c() is defined as
the dump_stack_trace() should print if the "condition" is true -
Is there such "dump_stack_trace" library function/system call available?
I know that if I make the program dump core in the dump_stack_trace
function then I can get the stack trace from the core dump but I would
like to know if I can do this without forcing the core dump.