And this GDB command line option: $ gdb -x debug.gdb --batch --args ./emacs -Q -batch -l ../test.el -eval '(foo (quote car))' > car.backtrace I get the backtrace (attached below) for setf + symbol-name + 'car as reported by OP.