From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: stardiviner Newsgroups: gmane.emacs.help Subject: Emacs open big Org-mode file error Date: Tue, 19 Dec 2017 13:18:22 +0800 Message-ID: <5421c8d4-3874-ad7b-7c91-baa7921d2be0@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1513660639 11043 195.159.176.226 (19 Dec 2017 05:17:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Dec 2017 05:17:19 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 To: emacs-help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 19 06:17:15 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRAHC-0002Ht-99 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Dec 2017 06:17:14 +0100 Original-Received: from localhost ([::1]:49184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRAJ7-0002l5-B5 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Dec 2017 00:19:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRAIR-0002ij-DH for help-gnu-emacs@gnu.org; Tue, 19 Dec 2017 00:18:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRAIO-00078b-I8 for help-gnu-emacs@gnu.org; Tue, 19 Dec 2017 00:18:31 -0500 Original-Received: from mail-pl0-x233.google.com ([2607:f8b0:400e:c01::233]:39496) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRAIO-00077Q-6M for help-gnu-emacs@gnu.org; Tue, 19 Dec 2017 00:18:28 -0500 Original-Received: by mail-pl0-x233.google.com with SMTP id bi12so6331644plb.6 for ; Mon, 18 Dec 2017 21:18:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=hiJlTb8HVludNCmdC1wwpgjaOhMKfImmMKqyXuxjATw=; b=gCGypLB3tq3nf/iil7HVC4zoMu80fZwY7RBe2QBw3E/kkPHz7QOSg+XjvHDhRK2I0e MkaMNh6BX+Nae5eBDQNRHPz3yvrWk87t8azUrFDUr3hHt9OyNPYJPVcClVBAgS3J9GI6 NkHnh91ukawhcJYGZF83sJ3Hm8rSHE5tEz9Pz3iVcOmm/aKTLIX3bsmCQ1ykAy/1aJdh 3A5kfpC6zxuzBpGECcYeMBPI0RU5Ms5jbH6d9Vgxs6cBBo9Wj8rOz9Co1CjSczhitii5 XrG7Uw0WjLYqz+uOrBbJ4ArZDWpb+NB35CzADQEFmiBT3siZD9Udi01P2mqUO0Y6TFHT EStA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=hiJlTb8HVludNCmdC1wwpgjaOhMKfImmMKqyXuxjATw=; b=O1blRFvVwIALOyKb5RzGnezP4UGJNw2yN+/wy1k9nNif2I9u8Pz/z7xSTTpSWELt1q dpSd410T+MSySZ6A7z0omaBIHeFYCJa7mOIrXGScRjUryorJClFu1si2JL5AdLxOppU8 DJGOc7CeUClglgXHvuaeXOZM49HmvdPmVSmZuS1uM+cUEK06ll2Wh6xNB6mcVkWv4oVK 1/HLcBUHhtqqOmQvejbtOqZW16RoAFI4IEj0whRaQ4L3N5tcmwIctsRfTnjxHhkSjIWD 4exTPQ8p+oCncONOdLWF7Jc6Vr6NCzj2bFBxkEtfi9QEgCMjwSQ5VH3v435hV2pJrVZL /OCg== X-Gm-Message-State: AKGB3mLZlORxEWSyT+1CdkI9kVqahyeix5cWcpwco/4YZhoWVHxjsPvk hGPkV1kj1Ie648h1UwHWTNnvkDs= X-Google-Smtp-Source: ACJfBotB0BGArLvQtwcFfsPIwoZ8nybxOAC/nMw8MsN71l1spT5LbDv3SaGZCQn8R7dLzZnD6r/d1w== X-Received: by 10.84.217.14 with SMTP id o14mr2124972pli.169.1513660706591; Mon, 18 Dec 2017 21:18:26 -0800 (PST) Original-Received: from [0.0.0.0] ([119.28.89.243]) by smtp.gmail.com with ESMTPSA id m25sm30244981pfk.37.2017.12.18.21.18.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Dec 2017 21:18:25 -0800 (PST) Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::233 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115394 Archived-At: I have a big Org-mode file about 1.3M. When I open it, Emacs crash. Then I try to do a simple GDB debug: ``` gdb /usr/local/bin/emacs ``` Got output: ``` gdb /usr/local/bin/emacs GNU gdb (GDB) 8.0.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.  Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/local/bin/emacs...done. (gdb) run Starting program: /usr/local/bin/emacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7fffde98f700 (LWP 21593)] [New Thread 0x7fffdda9d700 (LWP 21594)] [New Thread 0x7fffd7b8e700 (LWP 21595)] [New Thread 0x7fffd6f23700 (LWP 21596)] [New Thread 0x7fffd53da700 (LWP 21601)] Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. 0x00000000004caa74 in x_draw_image_glyph_string (s=0x7fffffffa270) at xterm.c:3268 3268      if (s->slice.y + s->slice.height >= s->img->height) ``` Then I execute command "bt" to get backtrace: ``` (gdb) bt #0  0x00000000004caa74 in x_draw_image_glyph_string (s=0x7fffffffa270) at xterm.c:3268 #1  0x00000000004caa74 in x_draw_glyph_string (s=0x7fffffffa270) at xterm.c:3642 #2  0x000000000045b2b5 in draw_glyphs (w=w@entry=0x8e811e0, x=949, row=0xa655c10, area=area@entry=     TEXT_AREA, start=, start@entry=0, end=, end@entry=1, hl=     DRAW_NORMAL_TEXT, overlaps=) at xdisp.c:26706 #3  0x00000000004613e9 in x_write_glyphs (w=0x8e811e0, updated_row=, start=, updated_area=TEXT_AREA, len=1) at xdisp.c:28714 #4  0x000000000041eb42 in update_text_area (vpos=0, updated_row=0xa655c10, w=0x8e811e0) at dispnew.c:3615 #5  0x000000000041eb42 in update_window_line (w=w@entry=0x8e811e0, vpos=vpos@entry=0, mouse_face_overwritten_p=mouse_face_overwritten_p@entry=0x7fffffffa607) at dispnew.c:3858 #6  0x000000000042087c in update_window (w=w@entry=0x8e811e0, force_p=force_p@entry=true) at dispnew.c:3480 #7  0x000000000042157a in update_window_tree (w=0x8e811e0, force_p=force_p@entry=true) at dispnew.c:3222 #8  0x0000000000421567 in update_window_tree (w=0x8e4aaf0, force_p=force_p@entry=true) at dispnew.c:3220 #9  0x0000000000421567 in update_window_tree (w=0x8a0ac40, force_p=force_p@entry=true) at dispnew.c:3220 #10 0x0000000000421567 in update_window_tree (w=w@entry=0x8cd1620, force_p=force_p@entry=true) at dispnew.c:3220 #11 0x000000000042351d in update_frame (f=f@entry=0x142ac80 , force_p=,     force_p@entry=false, inhibit_hairy_id_p=inhibit_hairy_id_p@entry=false) at dispnew.c:3111 #12 0x0000000000458015 in redisplay_internal () at xdisp.c:14361 #13 0x0000000000459ac5 in redisplay () at xdisp.c:13503 #14 0x0000000000501893 in read_char (commandflag=commandflag@entry=1, map=...,     map@entry=..., prev_event=..., used_mouse_menu=used_mouse_menu@entry=0x7fffffffc15b, end_time=end_time@entry=0x0)     at keyboard.c:2482 #15 0x000000000050465a in read_key_sequence (keybuf=keybuf@entry=0x7fffffffc260, prompt=...,     prompt@entry=..., dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false, bufsize=30) at keyboard.c:9161 #16 0x00000000005061dc in command_loop_1 () at keyboard.c:1370 #17 0x000000000056c85e in internal_condition_case (bfun=bfun@entry=0x505fd0 , handlers=...,     handlers@entry=..., hfun=hfun@entry=0x4fc700 ) at eval.c:1332 #18 0x00000000004f7754 in command_loop_2 (ignore=..., ignore@entry=...) at keyboard.c:1111 #19 0x000000000056c7cd in internal_catch (tag=..., tag@entry=..., func=func@entry=0x4f7730 , arg=...,     arg@entry=...) at eval.c:1097 ---Type to continue, or q to quit--- #20 0x00000000004f76eb in command_loop () at keyboard.c:1090 #21 0x00000000004fc313 in recursive_edit_1 () at keyboard.c:696 #22 0x00000000004fc636 in Frecursive_edit () at keyboard.c:767 #23 0x000000000041b302 in main (argc=, argv=0x7fffffffc618) at emacs.c:1720 (gdb) ```