From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: emacs user Newsgroups: gmane.emacs.bugs Subject: bug#16039: repeated emacs crashes (in GC?) Date: Tue, 3 Dec 2013 16:55:43 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f234b55a246a304eca27d87 X-Trace: ger.gmane.org 1386082638 29174 80.91.229.3 (3 Dec 2013 14:57:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Dec 2013 14:57:18 +0000 (UTC) To: 16039@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 03 15:57:23 2013 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 1VnrPe-0006hR-Fp for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Dec 2013 15:57:22 +0100 Original-Received: from localhost ([::1]:42822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnrPe-0003jr-5q for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Dec 2013 09:57:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnrPW-0003hW-4Z for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2013 09:57:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnrPN-0002S6-9e for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2013 09:57:14 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnrPN-0002S2-6r for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2013 09:57:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VnrPL-0007as-KI for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2013 09:57:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: emacs user Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Dec 2013 14:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16039 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.138608258428702 (code B ref -1); Tue, 03 Dec 2013 14:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Dec 2013 14:56:24 +0000 Original-Received: from localhost ([127.0.0.1]:56045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VnrOf-0007Sp-9A for submit@debbugs.gnu.org; Tue, 03 Dec 2013 09:56:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45762) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VnrOX-0007S2-Gw for submit@debbugs.gnu.org; Tue, 03 Dec 2013 09:56:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnrOL-0002AY-6i for submit@debbugs.gnu.org; Tue, 03 Dec 2013 09:56:08 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnrOL-0002AP-2Z for submit@debbugs.gnu.org; Tue, 03 Dec 2013 09:56:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnrOD-0002eu-Cq for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2013 09:56:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnrO5-00028v-FC for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2013 09:55:53 -0500 Original-Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:34419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnrO4-00028b-VP for bug-gnu-emacs@gnu.org; Tue, 03 Dec 2013 09:55:45 -0500 Original-Received: by mail-wi0-f180.google.com with SMTP id hn9so2241430wib.7 for ; Tue, 03 Dec 2013 06:55:43 -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=n0uovfoenALecFjUiiDJW3d/5sinPfPjE7NHq+2a394=; b=kwXXShH9pX2ZelxZJ1B+l91WAM2olXtQMlk4eVVR/aMEuBaggC1wiES+CL/jR1kZp+ 8pgf+dE+29vaaPlS0BUKjXF1A1yxdTl5JDOQ1JXEcn2UiAHzhVYf+GXdpe42G38cVb2y ldA2d7uj8HOdIGnwXmFoHoE6HBB7gpduyAQDjYDSz+Eajv6n69F1rtnrwD4kf+rLqtkr cEWuqL2SBVvezL/wipNwVqa1Pn+7s12ruWpgzy584tLwax64DHvYlsaAN8xVM+Z+tROz yOtalLj9TS9Hga6ddSmXRCjXmQFOs8GmIh5uQB07jiIFX+TJWprXekcwJ/MeYXNFU1Z0 4/8A== X-Received: by 10.180.106.200 with SMTP id gw8mr2859389wib.50.1386082543484; Tue, 03 Dec 2013 06:55:43 -0800 (PST) Original-Received: by 10.216.47.129 with HTTP; Tue, 3 Dec 2013 06:55:43 -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-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:81315 Archived-At: --e89a8f234b55a246a304eca27d87 Content-Type: text/plain; charset=ISO-8859-1 Dear Emacs masters, I have been experiencing repeated crashes on Emacs, and am wondering if the following reports could lead someone to figure out what the problem might be. These crashes occur after a few hours of normal use, almost always during reading mail with vm. I am attaching an abbreviated backtrace when running emacs under a debugger, and and the full one (8Mb) is available at https://www.dropbox.com/s/3hg8v9ct2omc8x9/emacs-bt.txt. I am happy to try helping with the debugging given specific instructions on commands to give lldb. I see this crash on both GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org Windowing system distributor `Apple', version 10.3.1265 and the most recent emacs mac version by YAMAMOTO Mitsuharu. I wrote YAMAMOTO Mitsuharu, the Emacs for mac developer, and his response is > The backtrace shows that the stack is used up because some deeply > nested Lisp data structure is recursively traversed in garbage > collection (or possibly an unknown bug in the GC code). In normal OSX > applications, the stack depth for the main thread is set to 8MiB by > default, and Emacs slightly enlarges it to 8720000B (on 64-bit binary) > by some formula in src/emacs.c: > 817 long newlim; > 818 extern size_t re_max_failures; > 819 /* Approximate the amount regex.c needs per unit of re_max_failures. */ > 820 int ratio = 20 * sizeof (char *); > 821 /* Then add 33% to cover the size of the smaller stacks that regex.c > 822 successively allocates and discards, on its way to the maximum. */ > 823 ratio += ratio / 3; > 824 /* Add in some extra to cover > 825 what we're likely to use for other reasons. */ > 826 newlim = re_max_failures * ratio + 200000; > Probably you can tweak the ratio value above and see if it mitigates > the problem. I am unable to follow this suggestion (cannot compile emacs on my Mac), but perhaps it's useful to someone else. Here is the bug report itself: ------------------------------------------------------------------------ In GNU Emacs 24.3.2 (x86_64-apple-darwin11.4.2, Carbon Version 1.6.0 AppKit 1138.51) of 2013-11-08 on Yukikaze.local Windowing system distributor `Apple Inc.', version 10.9.0 Configured using: `configure '--with-mac' '--enable-mac-app=/Users/xin/Documents/emacs-mac-port/build' '--prefix=/Users/xin/Documents/emacs-mac-port/build'' Important settings: locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: delete-selection-mode: t display-time-mode: t auto-image-file-mode: t shell-dirtrack-mode: t tooltip-mode: t mac-mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: Recent messages: Loading .session...done For information about GNU Emacs and the GNU system, type C-h C-a. [2 times] ls does not support --dired; see `dired-use-ls-dired' for more details. Quit Move: 1 of 2 Move: 2 of 2 Move: 2 files Deleting...done Deleting...done Making completion list... Load-path shadows: None found. Features: (shadow vm-reply vm-pcrisis vcard u-vm-color smtpmail w3m browse-url doc-view jka-compr image-mode w3m-hist w3m-fb w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util mairix vm-rfaddons vm-page vm-minibuf emacsbug dired-aux info view cal-china lunar solar cal-dst cal-bahai cal-islam cal-julian cal-hebrew holidays hol-loaddefs mule-util cal-move goto-addr thingatpt cal-x em-unix em-term term disp-table ehelp electric em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util srecode/srt-mode semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/format srecode/template srecode/srt-wy semantic/wisent semantic/wisent/wisent semantic/ctxt srecode/ctxt semantic/tag-ls semantic/find srecode/compile srecode/dictionary srecode/table srecode/map srecode semanticdb-matlab semantic/db semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet eieio-base eieio-opt help-mode speedbar sb-image ezimage dframe find-func cedet-matlab matlab derived tempo matlab-load osx-osascript message-x server url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap telnet dired-efap bbdb-vcard-export bbdb-print sendmail flyspell message mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mail-utils gmm-utils mailheader bbdb-vm vm-virtual vm-summary-faces vm-pop utf7 vm-imap vm-thread vm-mime vm-mouse vm-toolbar vm-menu vm-window vm-folder vm-crypto vm-summary vm-motion vm-undo vm-misc vm-message vm-macro bbdb-snarf mail-extr rfc822 bbdb-com mailabbrev bbdb-autoloads bbdb timezone ffap url-parse url-vars auto-capitalize dired-x cl-macs gv rect-mark preview-latex tex-site auto-loads delsel appt cus-edit wid-edit dictionary link connection icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs rect ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff dired ispell easymenu ibuffer edmacro kmacro vm-autoloads vm-vars vm-version vm session uniquify warnings time image-file cus-start cus-load password cl tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util mm-util mail-prsvr password-cache tramp-loaddefs shell pcomplete comint ansi-color ring format-spec advice help-fns cl-lib advice-preload time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel mac-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote mac multi-tty make-network-process emacs) An abbreviated backtrace: Last login: Sun Dec 1 15:52:10 on ttys000 udp003015uds:~ $ lldb /Applications/Emacs.app/Contents/MacOS/Emacs Current executable set to '/Applications/Emacs.app/Contents/MacOS/Emacs' (x86_64). (lldb) run Process 5425 launched: '/Applications/Emacs.app/Contents/MacOS/Emacs' (x86_64) Process 5425 stopped and restarted: thread 1 received signal: SIGCHLD Process 5425 stopped and restarted: thread 1 received signal: SIGCHLD Process 5425 stopped and restarted: thread 1 received signal: SIGCHLD Process 5425 stopped and restarted: thread 1 received signal: SIGCHLD Process 5425 stopped and restarted: thread 1 received signal: SIGCHLD Process 5425 stopped and restarted: thread 1 received signal: SIGALRM ... Process 5425 stopped and restarted: thread 1 received signal: SIGCHLD Process 5425 stopped and restarted: thread 1 received signal: SIGALRM Process 5425 stopped and restarted: thread 1 received signal: SIGALRM 2013-12-01 15:56:54.773 Emacs[5425:d0b] -_continuousScroll is deprecated for NSScrollWheel. Please use -hasPreciseScrollingDeltas. Process 5425 stopped and restarted: thread 1 received signal: SIGALRM Process 5425 stopped and restarted: thread 1 received signal: SIGALRM Process 5425 stopped and restarted: thread 1 received signal: SIGALRM ... Process 5425 stopped and restarted: thread 1 received signal: SIGALRM Process 5425 stopped and restarted: thread 1 received signal: SIGALRM Process 5425 stopped and restarted: thread 1 received signal: SIGALRM Process 5425 stopped and restarted: thread 1 received signal: SIGALRM Process 5425 stopped and restarted: thread 1 received signal: SIGCHLD Process 5425 stopped and restarted: thread 1 received signal: SIGALRM Process 5425 stopped and restarted: thread 1 received signal: SIGALRM Process 5425 stopped and restarted: thread 1 received signal: SIGALRM Process 5425 stopped * thread #1: tid = 0x484e3, 0x00000001000f61d1 Emacs`mark_object + 1073, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=2, address=0x7fff5f3aeff8) frame #0: 0x00000001000f61d1 Emacs`mark_object + 1073 Emacs`mark_object + 1073: -> 0x1000f61d1: callq 0x1000f5da0 ; mark_object 0x1000f61d6: movq 32(%r14), %rdi 0x1000f61da: callq 0x1000f5da0 ; mark_object 0x1000f61df: movl (%r14), %eax (lldb) bt * thread #1: tid = 0x484e3, 0x00000001000f61d1 Emacs`mark_object + 1073, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=2, address=0x7fff5f3aeff8) frame #0: 0x00000001000f61d1 Emacs`mark_object + 1073 frame #1: 0x00000001000f61a8 Emacs`mark_object + 1032 frame #2: 0x00000001000f61a8 Emacs`mark_object + 1032 frame #3: 0x00000001000f6443 Emacs`mark_object + 1699 frame #4: 0x00000001000f62ab Emacs`mark_object + 1291 frame #5: 0x00000001000f61a8 Emacs`mark_object + 1032 frame #6: 0x00000001000f61a8 Emacs`mark_object + 1032 frame #7: 0x00000001000f6443 Emacs`mark_object + 1699 frame #8: 0x00000001000f62ab Emacs`mark_object + 1291 frame #9: 0x00000001000f61a8 Emacs`mark_object + 1032 frame #10: 0x00000001000f61a8 Emacs`mark_object + 1032 frame #11: 0x00000001000f6443 Emacs`mark_object + 1699 frame #12: 0x00000001000f62ab Emacs`mark_object + 1291 ... frame #136042: 0x00000001000f61df Emacs`mark_object + 1087 frame #136043: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136044: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136045: 0x00000001000f61df Emacs`mark_object + 1087 frame #136046: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136047: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136048: 0x00000001000f61df Emacs`mark_object + 1087 frame #136049: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136050: 0x00000001000f5e20 Emacs`mark_object + 128 frame #136051: 0x00000001000f61d6 Emacs`mark_object + 1078 frame #136052: 0x00000001000f61a8 Emacs`mark_object + 1032 frame #136053: 0x00000001000f61d6 Emacs`mark_object + 1078 frame #136054: 0x00000001000f61a8 Emacs`mark_object + 1032 frame #136055: 0x00000001000f61d6 Emacs`mark_object + 1078 frame #136056: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136057: 0x00000001000f61df Emacs`mark_object + 1087 frame #136058: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136059: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136060: 0x00000001000f61df Emacs`mark_object + 1087 frame #136061: 0x00000001000f61a8 Emacs`mark_object + 1032 frame #136062: 0x00000001000f61d6 Emacs`mark_object + 1078 frame #136063: 0x00000001000f61df Emacs`mark_object + 1087 frame #136064: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136065: 0x00000001000f61df Emacs`mark_object + 1087 frame #136066: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136067: 0x00000001000f61df Emacs`mark_object + 1087 frame #136068: 0x00000001000f61a8 Emacs`mark_object + 1032 frame #136069: 0x00000001000f61d6 Emacs`mark_object + 1078 frame #136070: 0x00000001000f61a8 Emacs`mark_object + 1032 frame #136071: 0x00000001000f61d6 Emacs`mark_object + 1078 frame #136072: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136073: 0x00000001000f61df Emacs`mark_object + 1087 frame #136074: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136075: 0x00000001000f61df Emacs`mark_object + 1087 frame #136076: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136077: 0x00000001000f61df Emacs`mark_object + 1087 frame #136078: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136079: 0x00000001000f61df Emacs`mark_object + 1087 frame #136080: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136081: 0x00000001000f61df Emacs`mark_object + 1087 frame #136082: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136083: 0x00000001000f61df Emacs`mark_object + 1087 frame #136084: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136085: 0x00000001000f61df Emacs`mark_object + 1087 frame #136086: 0x00000001000f6443 Emacs`mark_object + 1699 frame #136087: 0x00000001000f65a9 Emacs`mark_buffer + 105 frame #136088: 0x00000001000faffd Emacs`Fgarbage_collect + 637 frame #136089: 0x000000010014ad63 Emacs`exec_byte_code + 1027 frame #136090: 0x00000001001169b7 Emacs`funcall_lambda + 871 frame #136091: 0x0000000100113968 Emacs`Ffuncall + 1160 frame #136092: 0x000000010014b108 Emacs`exec_byte_code + 1960 frame #136093: 0x00000001001169b7 Emacs`funcall_lambda + 871 frame #136094: 0x0000000100113968 Emacs`Ffuncall + 1160 frame #136095: 0x000000010014b108 Emacs`exec_byte_code + 1960 frame #136096: 0x00000001001169b7 Emacs`funcall_lambda + 871 frame #136097: 0x0000000100113968 Emacs`Ffuncall + 1160 frame #136098: 0x0000000100116b5e Emacs`call1 + 30 frame #136099: 0x0000000100131c4b Emacs`Fmapatoms + 203 frame #136100: 0x0000000100113990 Emacs`Ffuncall + 1200 frame #136101: 0x000000010014b108 Emacs`exec_byte_code + 1960 frame #136102: 0x00000001001169b7 Emacs`funcall_lambda + 871 frame #136103: 0x0000000100113968 Emacs`Ffuncall + 1160 frame #136104: 0x000000010014b108 Emacs`exec_byte_code + 1960 frame #136105: 0x00000001001169b7 Emacs`funcall_lambda + 871 frame #136106: 0x0000000100113968 Emacs`Ffuncall + 1160 frame #136107: 0x000000010014b108 Emacs`exec_byte_code + 1960 frame #136108: 0x00000001001161d7 Emacs`eval_sub + 1463 frame #136109: 0x00000001001152f5 Emacs`internal_catch + 213 frame #136110: 0x000000010014bca4 Emacs`exec_byte_code + 4932 frame #136111: 0x00000001001169b7 Emacs`funcall_lambda + 871 frame #136112: 0x0000000100113968 Emacs`Ffuncall + 1160 frame #136113: 0x000000010014b108 Emacs`exec_byte_code + 1960 frame #136114: 0x00000001001169b7 Emacs`funcall_lambda + 871 frame #136115: 0x00000001001165b3 Emacs`apply_lambda + 291 frame #136116: 0x00000001001162f7 Emacs`eval_sub + 1751 frame #136117: 0x0000000100111509 Emacs`Fprogn + 41 frame #136118: 0x000000010010709e Emacs`Fsave_excursion + 62 frame #136119: 0x0000000100115f95 Emacs`eval_sub + 885 frame #136120: 0x0000000100116969 Emacs`funcall_lambda + 793 frame #136121: 0x0000000100113968 Emacs`Ffuncall + 1160 frame #136122: 0x00000001001158f6 Emacs`apply1 + 38 frame #136123: 0x000000010010f8b9 Emacs`Fcall_interactively + 1321 frame #136124: 0x00000001001138a4 Emacs`Ffuncall + 964 frame #136125: 0x0000000100116b36 Emacs`call3 + 38 frame #136126: 0x00000001000aeb12 Emacs`command_loop_1 + 1554 frame #136127: 0x00000001001151f9 Emacs`internal_condition_case + 297 frame #136128: 0x00000001000ae4dd Emacs`command_loop_2 + 77 frame #136129: 0x00000001001152f5 Emacs`internal_catch + 213 frame #136130: 0x00000001000afee2 Emacs`recursive_edit_1 + 226 frame #136131: 0x00000001000a0b67 Emacs`Frecursive_edit + 231 frame #136132: 0x000000010009d8b8 Emacs`main + 5208 frame #136133: 0x0000000100002554 Emacs`start + 52 (lldb) exit Quitting LLDB will kill one or more processes. Do you really want to proceed: [Y/n] y udp003015uds:~ $ ------------------------------------------------------------------------ --e89a8f234b55a246a304eca27d87 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Dear Emacs masters,

I have b= een experiencing repeated crashes on Emacs, and am wondering if the followi= ng reports could lead someone to figure out what the problem might be. =A0T= hese crashes occur after a few hours of normal use, almost always during re= ading mail with vm. =A0I am attaching an abbreviated backtrace when running= emacs under a debugger, and and the full one (8Mb) is available at https://www.dro= pbox.com/s/3hg8v9ct2omc8x9/emacs-bt.txt. =A0I am happy to try helping w= ith the debugging given specific instructions on commands to give lldb. =A0=

I see this crash on both=A0
GNU Emacs 24= .3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
=A0of 2013-03= -13 on bob.porkrind.org
W= indowing system distributor `Apple', version 10.3.1265
and the most recent emacs mac version by YAMAMOTO Mitsuharu.
=

I wrote YAMAMOTO Mitsuharu, the Emacs = for mac developer, and his response is

> The ba= cktrace shows that the stack is used up because some deeply
> nested Lisp data structure is recursively traversed in garbage
> collection (or possibly an unknown bug in the GC code). =A0In = normal OSX
> applications, the stack depth for the main thread= is set to 8MiB by
> default, and Emacs slightly enlarges it to 8720000B (on 64-bit bi= nary)
> by some formula in src/emacs.c:

> =A0 =A0817 =A0 = =A0 =A0long newlim;
> =A0 =A0818 =A0= =A0 =A0extern size_t re_max_failures;
> =A0 =A0819 =A0 =A0 =A0/* Approximate the amou= nt regex.c needs per unit of re_max_failures. =A0*/
> =A0 =A0820 =A0= =A0 =A0int ratio =3D 20 * sizeof (char *);
> =A0 =A0821 =A0 =A0 =A0/* Then add 33% to= cover the size of the smaller stacks that regex.c
> =A0 =A0822 su= ccessively allocates and discards, on its way to the maximum. =A0*/
> =A0 =A0823 =A0 = =A0 =A0ratio +=3D ratio / 3;
> =A0 =A0824 =A0= =A0 =A0/* Add in some extra to cover
> =A0 =A0825 what we're likely to use for = other reasons. =A0*/
> =A0 =A0826 =A0= =A0 =A0newlim =3D re_max_failures * ratio + 200000;

> Probably you can tweak the ratio value above and see if it mitigate= s
> the problem.

I am unable to follow this sugge= stion (cannot compile emacs on my Mac), but perhaps it's useful to some= one else.

Here is the bug report itself:

-------------------------------------------------------= -----------------
In GNU Emacs 24.3.2 (x86_64-apple-darwin11.4.2,= Carbon Version 1.6.0 AppKit 1138.51)
=A0of 2013-11-08 on Yukikaz= e.local
Windowing system distributor `Apple Inc.', version 10.9.0
Configured using:
=A0`configure '--with-mac' '--ena= ble-mac-app=3D/Users/xin/Documents/emacs-mac-port/build' '--prefix= =3D/Users/xin/Documents/emacs-mac-port/build''

Important settings:
=A0 locale-coding-system:= utf-8-unix
=A0 default enable-multibyte-characters: t
=
Major mode: Dired by name

Minor mod= es in effect:
=A0 delete-selection-mode: t
=A0 display-time-mode: t
<= div>=A0 auto-image-file-mode: t
=A0 shell-dirtrack-mode: t
<= div>=A0 tooltip-mode: t
=A0 mac-mouse-wheel-mode: t
=A0= tool-bar-mode: t
=A0 menu-bar-mode: t
=A0 file-name-shadow-mode: t
= =A0 global-font-lock-mode: t
=A0 font-lock-mode: t
=A0 = blink-cursor-mode: t
=A0 auto-composition-mode: t
=A0 a= uto-encryption-mode: t
=A0 auto-compression-mode: t
=A0 buffer-read-only: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t
= =A0 abbrev-mode: t

Recent input:

Recent messages:
Loading .session...done
For informatio= n about GNU Emacs and the GNU system, type C-h C-a. [2 times]
ls = does not support --dired; see `dired-use-ls-dired' for more details.
Quit
Move: 1 of 2
Move: 2 of 2
Move: 2 f= iles
Deleting...done
Deleting...done
Making c= ompletion list...

Load-path shadows:
None found.

Features:
(shadow vm-reply v= m-pcrisis vcard u-vm-color smtpmail w3m browse-url doc-view jka-compr image= -mode w3m-hist w3m-fb w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3= m-util mairix vm-rfaddons vm-page vm-minibuf emacsbug dired-aux info view c= al-china lunar solar cal-dst cal-bahai cal-islam cal-julian cal-hebrew holi= days hol-loaddefs mule-util cal-move goto-addr thingatpt cal-x em-unix em-t= erm term disp-table ehelp electric em-script em-prompt em-ls em-hist em-pre= d em-glob em-dirs em-cmpl em-basic em-banner em-alias esh-var esh-io esh-cm= d esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-m= ode esh-util srecode/srt-mode semantic/analyze semantic/sort semantic/scope= semantic/analyze/fcn semantic/format srecode/template srecode/srt-wy seman= tic/wisent semantic/wisent/wisent semantic/ctxt srecode/ctxt semantic/tag-l= s semantic/find srecode/compile srecode/dictionary srecode/table srecode/ma= p srecode semanticdb-matlab semantic/db semantic/util-modes semantic/util s= emantic semantic/tag semantic/lex semantic/fw mode-local cedet eieio-base e= ieio-opt help-mode speedbar sb-image ezimage dframe find-func cedet-matlab = matlab derived tempo matlab-load osx-osascript message-x server url url-pro= xy url-privacy url-expand url-methods url-history url-cookie url-domsuf url= -util mailcap telnet dired-efap bbdb-vcard-export bbdb-print sendmail flysp= ell message mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rf= c2047 rfc2045 ietf-drums mail-utils gmm-utils mailheader bbdb-vm vm-virtual= vm-summary-faces vm-pop utf7 vm-imap vm-thread vm-mime vm-mouse vm-toolbar= vm-menu vm-window vm-folder vm-crypto vm-summary vm-motion vm-undo vm-misc= vm-message vm-macro bbdb-snarf mail-extr rfc822 bbdb-com mailabbrev bbdb-a= utoloads bbdb timezone ffap url-parse url-vars auto-capitalize dired-x cl-m= acs gv rect-mark preview-latex tex-site auto-loads delsel appt cus-edit wid= -edit dictionary link connection icalendar diary-lib diary-loaddefs cal-men= u calendar cal-loaddefs rect ediff-merg ediff-diff ediff-wind ediff-help ed= iff-util ediff-mult ediff-init ediff dired ispell easymenu ibuffer edmacro = kmacro vm-autoloads vm-vars vm-version vm session uniquify warnings time im= age-file cus-start cus-load password cl tramp tramp-compat auth-source eiei= o byte-opt bytecomp byte-compile cconv gnus-util mm-util mail-prsvr passwor= d-cache tramp-loaddefs shell pcomplete comint ansi-color ring format-spec a= dvice help-fns cl-lib advice-preload time-date tooltip ediff-hook vc-hooks = lisp-float-type mwheel mac-win tool-bar dnd fontset image regexp-opt fringe= tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow tim= er select scroll-bar mouse jit-lock font-lock syntax facemenu font-core fra= me cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao = korean japanese hebrew greek romanian slovak czech european ethiopic indian= cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev mini= buffer loaddefs button faces cus-face macroexp files text-properties overla= y sha1 md5 base64 format env code-pages mule custom widget hashtable-print-= readable backquote mac multi-tty make-network-process emacs)

An abbreviated backtrace:

Last= login: Sun Dec =A01 15:52:10 on ttys000
udp003015uds:~ $ lldb /A= pplications/Emacs.app/Contents/MacOS/Emacs
Current executable set= to '/Applications/Emacs.app/Contents/MacOS/Emacs' (x86_64).
(lldb) run
Process 5425 launched: '/Applications/Emacs.a= pp/Contents/MacOS/Emacs' (x86_64)
Process 5425 stopped and re= started: thread 1 received signal: SIGCHLD
Process 5425 stopped a= nd restarted: thread 1 received signal: SIGCHLD
Process 5425 stopped and restarted: thread 1 received signal: SIGCHLD<= /div>
Process 5425 stopped and restarted: thread 1 received signal: SIG= CHLD
Process 5425 stopped and restarted: thread 1 received signal= : SIGCHLD
Process 5425 stopped and restarted: thread 1 received signal: SIGALRM<= /div>
...
Process 5425 stopped and restarted: thread 1 receiv= ed signal: SIGCHLD
Process 5425 stopped and restarted: thread 1 r= eceived signal: SIGALRM
Process 5425 stopped and restarted: thread 1 received signal: SIGALRM<= /div>
2013-12-01 15:56:54.773 Emacs[5425:d0b] -_continuousScroll is dep= recated for NSScrollWheel. Please use -hasPreciseScrollingDeltas.
Process 5425 stopped and restarted: thread 1 received signal: SIGALRM<= /div>
Process 5425 stopped and restarted: thread 1 received signal: SIG= ALRM
Process 5425 stopped and restarted: thread 1 received signal= : SIGALRM
...
Process 5425 stopped and restarted: thread 1 received si= gnal: SIGALRM
Process 5425 stopped and restarted: thread 1 receiv= ed signal: SIGALRM
Process 5425 stopped and restarted: thread 1 r= eceived signal: SIGALRM
Process 5425 stopped and restarted: thread 1 received signal: SIGALRM<= /div>
Process 5425 stopped and restarted: thread 1 received signal: SIG= CHLD
Process 5425 stopped and restarted: thread 1 received signal= : SIGALRM
Process 5425 stopped and restarted: thread 1 received signal: SIGALRM<= /div>
Process 5425 stopped and restarted: thread 1 received signal: SIG= ALRM
Process 5425 stopped
* thread #1: tid =3D 0x484e3,= 0x00000001000f61d1 Emacs`mark_object + 1073, queue =3D 'com.apple.main= -thread, stop reason =3D EXC_BAD_ACCESS (code=3D2, address=3D0x7fff5f3aeff8= )
=A0 =A0 frame #0: 0x00000001000f61d1 Emacs`mark_object + 1073
Emacs`mark_object + 1073:
-> 0x1000f61d1: =A0callq =A00x1000= f5da0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ; mark_object
=A0 =A00x1000f61d= 6: =A0movq =A0 32(%r14), %rdi
=A0 =A00x1000f61da: =A0callq =A00x1000f5da0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 ; mark_object
=A0 =A00x1000f61df: =A0movl =A0 (%r14), %eax
(lldb) bt
* thread #1: tid =3D 0x484e3, 0x00000001000f61d= 1 Emacs`mark_object + 1073, queue =3D 'com.apple.main-thread, stop reas= on =3D EXC_BAD_ACCESS (code=3D2, address=3D0x7fff5f3aeff8)
=A0 =A0 frame #0: 0x00000001000f61d1 Emacs`mark_object + 1073
=A0 =A0 frame #1: 0x00000001000f61a8 Emacs`mark_object + 1032
= =A0 =A0 frame #2: 0x00000001000f61a8 Emacs`mark_object + 1032
=A0= =A0 frame #3: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #4: 0x00000001000f62ab Emacs`mark_object + 1291
=A0 =A0 frame #5: 0x00000001000f61a8 Emacs`mark_object + 1032
= =A0 =A0 frame #6: 0x00000001000f61a8 Emacs`mark_object + 1032
=A0= =A0 frame #7: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #8: 0x00000001000f62ab Emacs`mark_object + 1291
=A0 =A0 frame #9: 0x00000001000f61a8 Emacs`mark_object + 1032
= =A0 =A0 frame #10: 0x00000001000f61a8 Emacs`mark_object + 1032
= =A0 =A0 frame #11: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #12: 0x00000001000f62ab Emacs`mark_object + 1291
...
=A0 =A0 frame #136042: 0x00000001000f61df Emacs`mark_objec= t + 1087
=A0 =A0 frame #136043: 0x00000001000f6443 Emacs`mark_obj= ect + 1699
=A0 =A0 frame #136044: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136045: 0x00000001000f61df Emacs`mark_object + 1087
=A0 =A0 frame #136046: 0x00000001000f6443 Emacs`mark_object + 1699=
=A0 =A0 frame #136047: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136048: 0x00000001000f61df Emacs`mark_object + 1087
<= div>=A0 =A0 frame #136049: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136050: 0x00000001000f5e20 Emacs`mark_object + 128
=A0 =A0 frame #136051: 0x00000001000f61d6 Emacs`mark_object + 1078
=A0 =A0 frame #136052: 0x00000001000f61a8 Emacs`mark_object + 1032
=A0 =A0 frame #136053: 0x00000001000f61d6 Emacs`mark_object + 1078=
=A0 =A0 frame #136054: 0x00000001000f61a8 Emacs`mark_object + 1032
=A0 =A0 frame #136055: 0x00000001000f61d6 Emacs`mark_object + 1078
<= div>=A0 =A0 frame #136056: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136057: 0x00000001000f61df Emacs`mark_object + 1087
=A0 =A0 frame #136058: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136059: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136060: 0x00000001000f61df Emacs`mark_object + 1087=
=A0 =A0 frame #136061: 0x00000001000f61a8 Emacs`mark_object + 1032
=A0 =A0 frame #136062: 0x00000001000f61d6 Emacs`mark_object + 1078
<= div>=A0 =A0 frame #136063: 0x00000001000f61df Emacs`mark_object + 1087
=A0 =A0 frame #136064: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136065: 0x00000001000f61df Emacs`mark_object + 1087
=A0 =A0 frame #136066: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136067: 0x00000001000f61df Emacs`mark_object + 1087=
=A0 =A0 frame #136068: 0x00000001000f61a8 Emacs`mark_object + 1032
=A0 =A0 frame #136069: 0x00000001000f61d6 Emacs`mark_object + 1078
<= div>=A0 =A0 frame #136070: 0x00000001000f61a8 Emacs`mark_object + 1032
=A0 =A0 frame #136071: 0x00000001000f61d6 Emacs`mark_object + 1078
=A0 =A0 frame #136072: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136073: 0x00000001000f61df Emacs`mark_object + 1087
=A0 =A0 frame #136074: 0x00000001000f6443 Emacs`mark_object + 1699=
=A0 =A0 frame #136075: 0x00000001000f61df Emacs`mark_object + 1087
=A0 =A0 frame #136076: 0x00000001000f6443 Emacs`mark_object + 1699
<= div>=A0 =A0 frame #136077: 0x00000001000f61df Emacs`mark_object + 1087
=A0 =A0 frame #136078: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136079: 0x00000001000f61df Emacs`mark_object + 1087
=A0 =A0 frame #136080: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136081: 0x00000001000f61df Emacs`mark_object + 1087=
=A0 =A0 frame #136082: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136083: 0x00000001000f61df Emacs`mark_object + 1087
<= div>=A0 =A0 frame #136084: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136085: 0x00000001000f61df Emacs`mark_object + 1087
=A0 =A0 frame #136086: 0x00000001000f6443 Emacs`mark_object + 1699
=A0 =A0 frame #136087: 0x00000001000f65a9 Emacs`mark_buffer + 105
=A0 =A0 frame #136088: 0x00000001000faffd Emacs`Fgarbage_collect + = 637
=A0 =A0 frame #136089: 0x000000010014ad63 Emacs`exec_byte_code + 1027<= /div>
=A0 =A0 frame #136090: 0x00000001001169b7 Emacs`funcall_lambda + = 871
=A0 =A0 frame #136091: 0x0000000100113968 Emacs`Ffuncall + 11= 60
=A0 =A0 frame #136092: 0x000000010014b108 Emacs`exec_byte_code + 1960<= /div>
=A0 =A0 frame #136093: 0x00000001001169b7 Emacs`funcall_lambda + = 871
=A0 =A0 frame #136094: 0x0000000100113968 Emacs`Ffuncall + 11= 60
=A0 =A0 frame #136095: 0x000000010014b108 Emacs`exec_byte_code + 1960<= /div>
=A0 =A0 frame #136096: 0x00000001001169b7 Emacs`funcall_lambda + = 871
=A0 =A0 frame #136097: 0x0000000100113968 Emacs`Ffuncall + 11= 60
=A0 =A0 frame #136098: 0x0000000100116b5e Emacs`call1 + 30
= =A0 =A0 frame #136099: 0x0000000100131c4b Emacs`Fmapatoms + 203
= =A0 =A0 frame #136100: 0x0000000100113990 Emacs`Ffuncall + 1200
= =A0 =A0 frame #136101: 0x000000010014b108 Emacs`exec_byte_code + 1960
=A0 =A0 frame #136102: 0x00000001001169b7 Emacs`funcall_lambda + 871
=A0 =A0 frame #136103: 0x0000000100113968 Emacs`Ffuncall + 1160
=A0 =A0 frame #136104: 0x000000010014b108 Emacs`exec_byte_code + 19= 60
=A0 =A0 frame #136105: 0x00000001001169b7 Emacs`funcall_lambda + 871
=A0 =A0 frame #136106: 0x0000000100113968 Emacs`Ffuncall + 1160
=A0 =A0 frame #136107: 0x000000010014b108 Emacs`exec_byte_code + 19= 60
=A0 =A0 frame #136108: 0x00000001001161d7 Emacs`eval_sub + 1463
<= div>=A0 =A0 frame #136109: 0x00000001001152f5 Emacs`internal_catch + 213
=A0 =A0 frame #136110: 0x000000010014bca4 Emacs`exec_byte_code + 49= 32
=A0 =A0 frame #136111: 0x00000001001169b7 Emacs`funcall_lambda + 871
=A0 =A0 frame #136112: 0x0000000100113968 Emacs`Ffuncall + 1160
=A0 =A0 frame #136113: 0x000000010014b108 Emacs`exec_byte_code + 19= 60
=A0 =A0 frame #136114: 0x00000001001169b7 Emacs`funcall_lambda + 871
=A0 =A0 frame #136115: 0x00000001001165b3 Emacs`apply_lambda + 291=
=A0 =A0 frame #136116: 0x00000001001162f7 Emacs`eval_sub + 1751<= /div>
=A0 =A0 frame #136117: 0x0000000100111509 Emacs`Fprogn + 41
=A0 = =A0 frame #136118: 0x000000010010709e Emacs`Fsave_excursion + 62
= =A0 =A0 frame #136119: 0x0000000100115f95 Emacs`eval_sub + 885
= =A0 =A0 frame #136120: 0x0000000100116969 Emacs`funcall_lambda + 793
=A0 =A0 frame #136121: 0x0000000100113968 Emacs`Ffuncall + 1160
<= div>=A0 =A0 frame #136122: 0x00000001001158f6 Emacs`apply1 + 38
= =A0 =A0 frame #136123: 0x000000010010f8b9 Emacs`Fcall_interactively + 1321<= /div>
=A0 =A0 frame #136124: 0x00000001001138a4 Emacs`Ffuncall + 964
= =A0 =A0 frame #136125: 0x0000000100116b36 Emacs`call3 + 38
=A0 = =A0 frame #136126: 0x00000001000aeb12 Emacs`command_loop_1 + 1554
=A0 =A0 frame #136127: 0x00000001001151f9 Emacs`internal_condition_case + = 297
=A0 =A0 frame #136128: 0x00000001000ae4dd Emacs`command_loop_2 + 77
=A0 =A0 frame #136129: 0x00000001001152f5 Emacs`internal_catch + 21= 3
=A0 =A0 frame #136130: 0x00000001000afee2 Emacs`recursive_edit_= 1 + 226
=A0 =A0 frame #136131: 0x00000001000a0b67 Emacs`Frecursive_edit + 231<= /div>
=A0 =A0 frame #136132: 0x000000010009d8b8 Emacs`main + 5208
=
=A0 =A0 frame #136133: 0x0000000100002554 Emacs`start + 52
(= lldb) exit
Quitting LLDB will kill one or more processes. Do you really want to p= roceed: [Y/n] y
udp003015uds:~ $
----------------------= --------------------------------------------------

--e89a8f234b55a246a304eca27d87--