Limit gdb's backtrace to 1000 lines

gdb may generate thousands of lines: http://fbsd.rubyci.org/~chkbuild/ruby-trunk/log/20130404T110200Z.log.html.gz