Include source file name and line numbers in stack traces.

Fixes #5715