From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nathan Froyd Newsgroups: gmane.emacs.bugs Subject: bug#16502: segmentation fault with org-capture Date: Sun, 19 Jan 2014 16:15:38 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1390176550 9750 80.91.229.3 (20 Jan 2014 00:09:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2014 00:09:10 +0000 (UTC) To: 16502@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 20 01:09:16 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W52QV-0003Tq-VY for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 01:09:16 +0100 Original-Received: from localhost ([::1]:48125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W52QV-0008Gl-Hk for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Jan 2014 19:09:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W52QO-0008FP-QN for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2014 19:09:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W52QK-0003Xo-6v for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2014 19:09:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W52QK-0003Xk-2e for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2014 19:09:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W52QJ-0003xu-Am for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2014 19:09:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nathan Froyd Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jan 2014 00:09:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16502 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139017652115185 (code B ref -1); Mon, 20 Jan 2014 00:09:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jan 2014 00:08:41 +0000 Original-Received: from localhost ([127.0.0.1]:57404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W52Pv-0003wi-Hw for submit@debbugs.gnu.org; Sun, 19 Jan 2014 19:08:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55351) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W4zid-0007ca-Vh for submit@debbugs.gnu.org; Sun, 19 Jan 2014 16:15:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4zib-0004qy-5O for submit@debbugs.gnu.org; Sun, 19 Jan 2014 16:15:47 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4zib-0004qu-1O for submit@debbugs.gnu.org; Sun, 19 Jan 2014 16:15:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4ziY-0006no-K5 for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2014 16:15:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4ziV-0004qc-Nb for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2014 16:15:42 -0500 Original-Received: from mail-ob0-x22c.google.com ([2607:f8b0:4003:c01::22c]:58220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4ziV-0004qR-BR for bug-gnu-emacs@gnu.org; Sun, 19 Jan 2014 16:15:39 -0500 Original-Received: by mail-ob0-f172.google.com with SMTP id vb8so6459758obc.17 for ; Sun, 19 Jan 2014 13:15:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=kI4qT62iGC/20m/ihztbH2wWsWWVIwbj9LvsPyy5qxs=; b=MH+x3rbxzcWS3JWpR3Xs07VDR4UwL8Lf2QBtG1GIuyt8jIyRK/4z0uGNy51dUUYZmz qbZ0BQG0FvzyyunQTJlHe9/8Jf4XC3MAsqcuAeWNUsMfPLACtQ+6uwiQfKYA3uQU3dUC 559T4ekaKE4fix820tjB8F8JXRImXyInhd5W0DZLTR/1mbBShTMjCixeinTubLWY+xgz W4KtPSHhXbkUf0XKnyH9qZCHVo9Ma1urAcMXy0RqvuyZ0jCF10ORQtjif6+GzLB3NtIK tK3412RMw9d3WgGeb8AMDnsYCIA1oinkGTnrqMqyzWeUeDq6Ue2UKsJ3dspRQMWKhGL3 yBkQ== X-Received: by 10.60.123.10 with SMTP id lw10mr12709822oeb.24.1390166138072; Sun, 19 Jan 2014 13:15:38 -0800 (PST) Original-Received: by 10.182.229.38 with HTTP; Sun, 19 Jan 2014 13:15:38 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sun, 19 Jan 2014 19:08:31 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:83744 Archived-At: Given this initialization file, bug-init: (require 'org) (require 'org-capture) (setq org-capture-templates '(("m" "memories" plain (file "~/memories") "%t %?"))) (global-set-key [f2] 'org-capture) and starting emacs (24.x or emacs from git) with: emacs -Q -l bug-init and then repeatedly pressing the key sequence: m C-c C-k will eventually cause emacs to crash with a segmentation fault, or consume vast amounts of memory, and then crash. It typically takes 5-6 repetitions of that key sequence. Consuming vast amounts of memory seems slightly more common with emacs from git than, say, 24.3. I have seen segmentation faults happen with a couple of different stacks: Program received signal SIGSEGV, Segmentation fault. 0x000000000059f29d in copy_properties (source=0x1fba2d8, target=0x0) at /home/froydnj/src/emacs-24.3/src/intervals.c:138 138 COPY_INTERVAL_CACHE (source, target); (gdb) where #0 0x000000000059f29d in copy_properties (source=0x1fba2d8, target=0x0) at /home/froydnj/src/emacs-24.3/src/intervals.c:138 #1 0x000000000059ff39 in graft_intervals_into_buffer (source=, position=, length=, buffer=0x2b9dc50, inherit=false) at /home/froydnj/src/emacs-24.3/src/intervals.c:1721 #2 0x00000000005072c3 in insert_from_string_1 (string=38589297, pos=0, pos_byte=0, nchars=20, nbytes=20, inherit=false, before_markers=false) at /home/froydnj/src/emacs-24.3/src/insdel.c:979 #3 0x0000000000508820 in insert_from_string (string=, pos=, pos_byte=, length=, length_byte=, inherit=) at /home/froydnj/src/emacs-24.3/src/insdel.c:871 #4 0x0000000000549672 in general_insert_function (insert_func=0x508a70 , insert_from_string_func=0x5087f0 , inherit=false, nargs=1, args=0x7fffffffcff8) at /home/froydnj/src/emacs-24.3/src/editfns.c:2258 #5 0x000000000054982b in Finsert (nargs=, args=) at /home/froydnj/src/emacs-24.3/src/editfns.c:2299 #6 0x000000000058a5b7 in exec_byte_code (bytestr=33128262, vector=140737488343032, maxdepth=0, args_template=4611686018695757824, nargs=4611686018430533632, args=0x1) at /home/froydnj/src/emacs-24.3/src/bytecode.c:1486 #7 0x0000000000552b1f in funcall_lambda (fun=33553573, nargs=, arg_vector=0x7fffffffd1e0) at /home/froydnj/src/emacs-24.3/src/eval.c:3010 #8 0x0000000000552e7d in Ffuncall (nargs=, args=0x7fffffffd1d8) at /home/froydnj/src/emacs-24.3/src/eval.c:2839 #9 0x0000000000588f43 in exec_byte_code (bytestr=33128262, vector=140737488343512, maxdepth=0, args_template=4611686018695757824, nargs=4611686018430533632, args=0x1) at /home/froydnj/src/emacs-24.3/src/bytecode.c:900 #10 0x0000000000552b1f in funcall_lambda (fun=33551981, nargs=, arg_vector=0x7fffffffd3c0) at /home/froydnj/src/emacs-24.3/src/eval.c:3010 #11 0x0000000000552e7d in Ffuncall (nargs=, args=0x7fffffffd3b8) at /home/froydnj/src/emacs-24.3/src/eval.c:2839 #12 0x0000000000588f43 in exec_byte_code (bytestr=33128262, vector=140737488343992, maxdepth=0, args_template=4611686018695757824, nargs=4611686018430533632, args=0x1) at /home/froydnj/src/emacs-24.3/src/bytecode.c:900 #13 0x0000000000552517 in eval_sub (form=) at /home/froydnj/src/emacs-24.3/src/eval.c:2149 #14 0x000000000055529a in internal_lisp_condition_case (var=12103250, bodyform=33186342, handlers=33185926) at /home/froydnj/src/emacs-24.3/src/eval.c:1243 #15 0x0000000000589afe in exec_byte_code (bytestr=33128262, vector=140737488344824, maxdepth=0, args_template=4611686018695757824, nargs=4611686018430533632, args=0x1) at /home/froydnj/src/emacs-24.3/src/bytecode.c:1096 #16 0x0000000000552b1f in funcall_lambda (fun=33476477, nargs=, arg_vector=0x7fffffffd978) at /home/froydnj/src/emacs-24.3/src/eval.c:3010 #17 0x0000000000552e7d in Ffuncall (nargs=, args=0x7fffffffd970) at /home/froydnj/src/emacs-24.3/src/eval.c:2839 #18 0x000000000054f448 in Fcall_interactively (function=16202834, record_flag=12051570, keys=12086789) at /home/froydnj/src/emacs-24.3/src/callint.c:852 #19 0x0000000000553035 in Ffuncall (nargs=, args=0x7fffffffdb40) at /home/froydnj/src/emacs-24.3/src/eval.c:2785 #20 0x0000000000553294 in call3 (fn=, arg1=, arg2=, arg3=) at /home/froydnj/src/emacs-24.3/src/eval.c:2603 #21 0x00000000004ec7d3 in command_loop_1 () at /home/froydnj/src/emacs-24.3/src/keyboard.c:1587 #22 0x00000000005513d8 in internal_condition_case (bfun=0x4ec450 , handlers=12103250, hfun=0x4e1d40 ) at /home/froydnj/src/emacs-24.3/src/eval.c:1289 #23 0x00000000004dfede in command_loop_2 (ignore=) at /home/froydnj/src/emacs-24.3/src/keyboard.c:1168 #24 0x000000000055129d in internal_catch (tag=2171090632704, func=0x4dfec0 , arg=12051570) at /home/froydnj/src/emacs-24.3/src/eval.c:1060 #25 0x00000000004e1827 in command_loop () at /home/froydnj/src/emacs-24.3/src/keyboard.c:1147 #26 recursive_edit_1 () at /home/froydnj/src/emacs-24.3/src/keyboard.c:779 #27 0x00000000004e1b54 in Frecursive_edit () at /home/froydnj/src/emacs-24.3/src/keyboard.c:843 #28 0x00000000004145bf in main (argc=1, argv=) at /home/froydnj/src/emacs-24.3/src/emacs.c:1528 The line information on this next stack does not appear to be accurate, as the variable i is usually a null interval, and the crash happens referencing the interval's plist: Program received signal SIGSEGV, Segmentation fault. 0x00000000005a280c in interval_has_some_properties_list (list=40898438, i=) at /home/froydnj/src/emacs-24.3/src/textprop.c:273 273 for (tail1 = list; CONSP (tail1); tail1 = XCDR (tail1)) (gdb) where #0 0x00000000005a280c in interval_has_some_properties_list (list=40898438, i=) at /home/froydnj/src/emacs-24.3/src/textprop.c:273 #1 0x00000000005a313d in Fremove_list_of_text_properties (start=13108, end=13188, list_of_properties=40898438, object=44530229) at /home/froydnj/src/emacs-24.3/src/textprop.c:1590 #2 0x00000000005a9684 in update_compositions (from=3277, to=3297, check_mask=) at /home/froydnj/src/emacs-24.3/src/composite.c:596 #3 0x0000000000549672 in general_insert_function (insert_func=0x508a70 , insert_from_string_func=0x5087f0 , inherit=false, nargs=1, args=0x7fffffffcff8) at /home/froydnj/src/emacs-24.3/src/editfns.c:2258 #4 0x000000000054982b in Finsert (nargs=, args=) at /home/froydnj/src/emacs-24.3/src/editfns.c:2299 #5 0x000000000058a5b7 in exec_byte_code (bytestr=40898438, vector=140737488343032, maxdepth=6, args_template=4611686018695757824, nargs=4611686018430533632, args=0x2700f80) at /home/froydnj/src/emacs-24.3/src/bytecode.c:1486 #6 0x0000000000552b1f in funcall_lambda (fun=33570629, nargs=, arg_vector=0x7fffffffd1e0) at /home/froydnj/src/emacs-24.3/src/eval.c:3010 #7 0x0000000000552e7d in Ffuncall (nargs=, args=0x7fffffffd1d8) at /home/froydnj/src/emacs-24.3/src/eval.c:2839 #8 0x0000000000588f43 in exec_byte_code (bytestr=40898438, vector=140737488343512, maxdepth=6, args_template=4611686018695757824, nargs=4611686018430533632, args=0x2700f80) at /home/froydnj/src/emacs-24.3/src/bytecode.c:900 #9 0x0000000000552b1f in funcall_lambda (fun=33569037, nargs=, arg_vector=0x7fffffffd3c0) at /home/froydnj/src/emacs-24.3/src/eval.c:3010 #10 0x0000000000552e7d in Ffuncall (nargs=, args=0x7fffffffd3b8) at /home/froydnj/src/emacs-24.3/src/eval.c:2839 #11 0x0000000000588f43 in exec_byte_code (bytestr=40898438, vector=140737488343992, maxdepth=6, args_template=4611686018695757824, nargs=4611686018430533632, args=0x2700f80) at /home/froydnj/src/emacs-24.3/src/bytecode.c:900 #12 0x0000000000552517 in eval_sub (form=) at /home/froydnj/src/emacs-24.3/src/eval.c:2149 #13 0x000000000055529a in internal_lisp_condition_case (var=12103250, bodyform=33181206, handlers=33180742) at /home/froydnj/src/emacs-24.3/src/eval.c:1243 #14 0x0000000000589afe in exec_byte_code (bytestr=40898438, vector=140737488344824, maxdepth=6, args_template=4611686018695757824, nargs=4611686018430533632, args=0x2700f80) at /home/froydnj/src/emacs-24.3/src/bytecode.c:1096 #15 0x0000000000552b1f in funcall_lambda (fun=33493533, nargs=, arg_vector=0x7fffffffd978) at /home/froydnj/src/emacs-24.3/src/eval.c:3010 #16 0x0000000000552e7d in Ffuncall (nargs=, args=0x7fffffffd970) at /home/froydnj/src/emacs-24.3/src/eval.c:2839 #17 0x000000000054f448 in Fcall_interactively (function=16202834, record_flag=12051570, keys=12086789) at /home/froydnj/src/emacs-24.3/src/callint.c:852 #18 0x0000000000553035 in Ffuncall (nargs=, args=0x7fffffffdb40) at /home/froydnj/src/emacs-24.3/src/eval.c:2785 #19 0x0000000000553294 in call3 (fn=, arg1=, arg2=, arg3=) at /home/froydnj/src/emacs-24.3/src/eval.c:2603 #20 0x00000000004ec7d3 in command_loop_1 () at /home/froydnj/src/emacs-24.3/src/keyboard.c:1587 #21 0x00000000005513d8 in internal_condition_case (bfun=0x4ec450 , handlers=12103250, hfun=0x4e1d40 ) at /home/froydnj/src/emacs-24.3/src/eval.c:1289 #22 0x00000000004dfede in command_loop_2 (ignore=) at /home/froydnj/src/emacs-24.3/src/keyboard.c:1168 #23 0x000000000055129d in internal_catch (tag=2918333087744, func=0x4dfec0 , arg=12051570) at /home/froydnj/src/emacs-24.3/src/eval.c:1060 #24 0x00000000004e1827 in command_loop () at /home/froydnj/src/emacs-24.3/src/keyboard.c:1147 #25 recursive_edit_1 () at /home/froydnj/src/emacs-24.3/src/keyboard.c:779 #26 0x00000000004e1b54 in Frecursive_edit () at /home/froydnj/src/emacs-24.3/src/keyboard.c:843 #27 0x00000000004145bf in main (argc=1, argv=) at /home/froydnj/src/emacs-24.3/src/emacs.c:1528 Program received signal SIGSEGV, Segmentation fault. 0x0000000000581b93 in balance_an_interval (i=0xc18620) at /opt/src/repos/emacs.git/src/intervals.c:442 442 new_diff = i->total_length - i->left->total_length (gdb) where #0 0x0000000000581b93 in balance_an_interval (i=0xc18620) at /opt/src/repos/emacs.git/src/intervals.c:442 #1 0x0000000000581d95 in balance_possible_root_interval (interval=) at /opt/src/repos/emacs.git/src/intervals.c:482 #2 0x00000000005829a0 in split_interval_left (interval=0x1b9a428, offset=) at /opt/src/repos/emacs.git/src/intervals.c:615 #3 0x0000000000582f49 in graft_intervals_into_buffer (source=0x1ba62c0, position=2, length=, buffer=0x1b91c30, inherit=false) at /opt/src/repos/emacs.git/src/intervals.c:1669 #4 0x00000000004fa349 in insert_from_string_1 (string=26897025, pos=0, pos_byte=0, nchars=20, nbytes=20, inherit=false, before_markers=false) at /opt/src/repos/emacs.git/src/insdel.c:976 #5 0x00000000004fb815 in insert_from_string (string=, pos=, pos_byte=, length=, length_byte=, inherit=) at /opt/src/repos/emacs.git/src/insdel.c:868 #6 0x00000000005354d3 in general_insert_function (insert_func=0x4fba10 , insert_from_string_func=0x4fb7eb , inherit=false, nargs=1, args=0x7fffffffd188) at /opt/src/repos/emacs.git/src/editfns.c:2248 #7 0x00000000005355b1 in Finsert (nargs=, args=) at /opt/src/repos/emacs.git/src/editfns.c:2289 #8 0x000000000056fa17 in exec_byte_code (bytestr=, vector=25746413, maxdepth=, args_template=, nargs=, args=) at /opt/src/repos/emacs.git/src/bytecode.c:1559 #9 0x000000000053da0a in funcall_lambda (fun=25746629, nargs=0, arg_vector=0x7fffffffd370) at /opt/src/repos/emacs.git/src/eval.c:3040 #10 0x000000000053dde4 in Ffuncall (nargs=1, args=0x7fffffffd368) at /opt/src/repos/emacs.git/src/eval.c:2855 #11 0x000000000056dc35 in exec_byte_code (bytestr=, vector=25475869, maxdepth=, args_template=, nargs=, args=) at /opt/src/repos/emacs.git/src/bytecode.c:919 #12 0x000000000053da0a in funcall_lambda (fun=25476181, nargs=1, arg_vector=0x7fffffffd550) at /opt/src/repos/emacs.git/src/eval.c:3040 #13 0x000000000053dde4 in Ffuncall (nargs=2, args=0x7fffffffd548) at /opt/src/repos/emacs.git/src/eval.c:2855 #14 0x000000000056dc35 in exec_byte_code (bytestr=, vector=25915261, maxdepth=, args_template=, nargs=, args=) at /opt/src/repos/emacs.git/src/bytecode.c:919 #15 0x0000000000570c7b in Fbyte_code (bytestr=, vector=, maxdepth=) at /opt/src/repos/emacs.git/src/bytecode.c:482 #16 0x000000000053d323 in eval_sub (form=) at /opt/src/repos/emacs.git/src/eval.c:2182 #17 0x000000000053ff74 in internal_lisp_condition_case (var=11926946, bodyform=26157926, handlers=) at /opt/src/repos/emacs.git/src/eval.c:1314 #18 0x000000000056ea5b in exec_byte_code (bytestr=, vector=25472645, maxdepth=, args_template=, nargs=, args=) at /opt/src/repos/emacs.git/src/bytecode.c:1169 #19 0x000000000053da0a in funcall_lambda (fun=25915301, nargs=1, arg_vector=0x7fffffffda28) at /opt/src/repos/emacs.git/src/eval.c:3040 #20 0x000000000053dde4 in Ffuncall (nargs=2, args=0x7fffffffda20) at /opt/src/repos/emacs.git/src/eval.c:2855 #21 0x000000000053b345 in Fcall_interactively (function=16111442, record_flag=11875442, keys=11910461) at /opt/src/repos/emacs.git/src/callint.c:836 #22 0x000000000053dcd0 in Ffuncall (nargs=4, args=0x7fffffffdbe8) at /opt/src/repos/emacs.git/src/eval.c:2813 #23 0x000000000056dc35 in exec_byte_code (bytestr=, vector=9353333, maxdepth=, args_template=, nargs=, args=) at /opt/src/repos/emacs.git/src/bytecode.c:919 #24 0x000000000053d810 in funcall_lambda (fun=9353253, nargs=1, arg_vector=0x7fffffffddd8) at /opt/src/repos/emacs.git/src/eval.c:2974 #25 0x000000000053dde4 in Ffuncall (nargs=2, args=0x7fffffffddd0) at /opt/src/repos/emacs.git/src/eval.c:2855 #26 0x000000000053e031 in call1 (fn=, arg1=) at /opt/src/repos/emacs.git/src/eval.c:2605 #27 0x00000000004e2c17 in command_loop_1 () at /opt/src/repos/emacs.git/src/keyboard.c:1552 #28 0x000000000053c4a6 in internal_condition_case (bfun=0x4e26ee , handlers=11926946, hfun=0x4d9ac9 ) at /opt/src/repos/emacs.git/src/eval.c:1345 #29 0x00000000004d91a1 in command_loop_2 (ignore=) at /opt/src/repos/emacs.git/src/keyboard.c:1170 #30 0x000000000053c38d in internal_catch (tag=11922882, func=0x4d9187 , arg=11875442) at /opt/src/repos/emacs.git/src/eval.c:1109 #31 0x00000000004d96f2 in command_loop () at /opt/src/repos/emacs.git/src/keyboard.c:1149 #32 recursive_edit_1 () at /opt/src/repos/emacs.git/src/keyboard.c:777 #33 0x00000000004d99f7 in Frecursive_edit () at /opt/src/repos/emacs.git/src/keyboard.c:841 #34 0x00000000004d5b4f in main (argc=, argv=0x7fffffffe178) at /opt/src/repos/emacs.git/src/emacs.c:1643 (gdb) p i $4 = (INTERVAL) 0xc18620 (gdb) p i->left $5 = (struct interval *) 0x0 This stack is the result of interrupting emacs while it was allocating gobs of memory: #0 0x00007ffff398c2dd in _int_malloc (av=0x7ffff3cc4720, bytes=1016) at malloc.c:3464 #1 0x00007ffff398efc5 in __GI___libc_malloc (bytes=1016) at malloc.c:2924 #2 0x0000000000524fc0 in lisp_malloc (nbytes=1016, type=MEM_TYPE_NON_LISP) at /opt/src/repos/emacs.git/src/alloc.c:893 #3 0x0000000000525cec in make_interval () at /opt/src/repos/emacs.git/src/alloc.c:1245 #4 0x000000000058285b in split_interval_right (interval=0xa2ae13c8, offset=0) at /opt/src/repos/emacs.git/src/intervals.c:546 #5 0x0000000000584db0 in copy_intervals (tree=, start=, length=2) at /opt/src/repos/emacs.git/src/intervals.c:2285 #6 0x0000000000584e5f in copy_intervals_to_string (string=27583649, buffer=, position=, length=) at /opt/src/repos/emacs.git/src/intervals.c:2300 #7 0x00000000005394d6 in make_buffer_string_both (start=2, start_byte=, end=4, end_byte=, props=true) at /opt/src/repos/emacs.git/src/editfns.c:2511 #8 0x00000000004f98e8 in del_range_2 (from=2, from_byte=2, to=4, to_byte=4, ret_string=114) at /opt/src/repos/emacs.git/src/insdel.c:1715 #9 0x00000000004fae92 in del_range_1 (from=2, to=4, prepare=, ret_string=false) at /opt/src/repos/emacs.git/src/insdel.c:1591 #10 0x00000000004faee6 in del_range (from=, to=) at /opt/src/repos/emacs.git/src/insdel.c:1559 #11 0x0000000000533618 in Fdelete_region (start=8, end=16) at /opt/src/repos/emacs.git/src/editfns.c:3232 #12 0x0000000000570189 in exec_byte_code (bytestr=, vector=25496157, maxdepth=, args_template=, nargs=, args=) at /opt/src/repos/emacs.git/src/bytecode.c:1728 #13 0x000000000053da0a in funcall_lambda (fun=25496229, nargs=0, arg_vector=0x7fffffffd170) at /opt/src/repos/emacs.git/src/eval.c:3040 #14 0x000000000053dde4 in Ffuncall (nargs=1, args=0x7fffffffd168) at /opt/src/repos/emacs.git/src/eval.c:2855 #15 0x000000000056dc35 in exec_byte_code (bytestr=, vector=25495325, maxdepth=, args_template=, nargs=, args=) at /opt/src/repos/emacs.git/src/bytecode.c:919 #16 0x000000000053da0a in funcall_lambda (fun=25495541, nargs=0, arg_vector=0x7fffffffd350) at /opt/src/repos/emacs.git/src/eval.c:3040 #17 0x000000000053dde4 in Ffuncall (nargs=1, args=0x7fffffffd348) at /opt/src/repos/emacs.git/src/eval.c:2855 #18 0x000000000056dc35 in exec_byte_code (bytestr=, vector=25493701, maxdepth=, args_template=, nargs=, args=) at /opt/src/repos/emacs.git/src/bytecode.c:919 #19 0x000000000053da0a in funcall_lambda (fun=25494013, nargs=1, arg_vector=0x7fffffffd530) at /opt/src/repos/emacs.git/src/eval.c:3040 #20 0x000000000053dde4 in Ffuncall (nargs=2, args=0x7fffffffd528) at /opt/src/repos/emacs.git/src/eval.c:2855 #21 0x000000000056dc35 in exec_byte_code (bytestr=, vector=25473717, maxdepth=, args_template=, nargs=, args=) at /opt/src/repos/emacs.git/src/bytecode.c:919 #22 0x0000000000570c7b in Fbyte_code (bytestr=, vector=, maxdepth=) at /opt/src/repos/emacs.git/src/bytecode.c:482 #23 0x000000000053d323 in eval_sub (form=) at /opt/src/repos/emacs.git/src/eval.c:2182 #24 0x000000000053ff74 in internal_lisp_condition_case (var=11926946, bodyform=25460086, handlers=) at /opt/src/repos/emacs.git/src/eval.c:1314 #25 0x000000000056ea5b in exec_byte_code (bytestr=, vector=25473949, maxdepth=, args_template=, nargs=, args=) at /opt/src/repos/emacs.git/src/bytecode.c:1169 #26 0x000000000053da0a in funcall_lambda (fun=25474533, nargs=1, arg_vector=0x7fffffffda08) at /opt/src/repos/emacs.git/src/eval.c:3040 #27 0x000000000053dde4 in Ffuncall (nargs=2, args=0x7fffffffda00) at /opt/src/repos/emacs.git/src/eval.c:2855 #28 0x000000000053b345 in Fcall_interactively (function=16111442, record_flag=11875442, keys=11910461) at /opt/src/repos/emacs.git/src/callint.c:836 #29 0x000000000053dcd0 in Ffuncall (nargs=4, args=0x7fffffffdbc8) at /opt/src/repos/emacs.git/src/eval.c:2813 #30 0x000000000056dc35 in exec_byte_code (bytestr=, vector=9353333, maxdepth=, args_template=, nargs=, args=) at /opt/src/repos/emacs.git/src/bytecode.c:919 #31 0x000000000053d810 in funcall_lambda (fun=9353253, nargs=1, arg_vector=0x7fffffffddb8) at /opt/src/repos/emacs.git/src/eval.c:2974 #32 0x000000000053dde4 in Ffuncall (nargs=2, args=0x7fffffffddb0) at /opt/src/repos/emacs.git/src/eval.c:2855 #33 0x000000000053e031 in call1 (fn=, arg1=) at /opt/src/repos/emacs.git/src/eval.c:2605 #34 0x00000000004e2c17 in command_loop_1 () at /opt/src/repos/emacs.git/src/keyboard.c:1552 #35 0x000000000053c4a6 in internal_condition_case (bfun=0x4e26ee , handlers=11926946, hfun=0x4d9ac9 ) at /opt/src/repos/emacs.git/src/eval.c:1345 #36 0x00000000004d91a1 in command_loop_2 (ignore=) at /opt/src/repos/emacs.git/src/keyboard.c:1170 #37 0x000000000053c38d in internal_catch (tag=11922882, func=0x4d9187 , arg=11875442) at /opt/src/repos/emacs.git/src/eval.c:1109 #38 0x00000000004d96f2 in command_loop () at /opt/src/repos/emacs.git/src/keyboard.c:1149 #39 recursive_edit_1 () at /opt/src/repos/emacs.git/src/keyboard.c:777 #40 0x00000000004d99f7 in Frecursive_edit () at /opt/src/repos/emacs.git/src/keyboard.c:841 #41 0x00000000004d5b4f in main (argc=, argv=0x7fffffffe158) at /opt/src/repos/emacs.git/src/emacs.c:1643 (gdb) -Nathan