[ET Trac] #2835: add backtrace functionality from CarpetLib