UnixLib backtrace
Rick Murray (539) 13851 posts |
This is from the Sargasso thread, but not related to Sargasso, so…
I’ve noticed other UnixLib programs outputting such unhelpful messages because the backtrace, being limited to three entries, lists the path into the backtrace function rather than how it got there. How come UnixLib doesn’t track back further, if not to main() then at least far enough to see what triggered the problem…? |
Lee Noar (2750) 16 posts |
The problem here is that __h_cback is the callback handler which can be called in SVC mode and as it’s not a C function, it’s not included in the chain of stack call frames. The way in which it can be called as the callback handler means in effect it is the first stack frame. |