unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs open big Org-mode file error
@ 2017-12-19  5:18 stardiviner
  2017-12-19 16:07 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: stardiviner @ 2017-12-19  5:18 UTC (permalink / raw)
  To: emacs-help

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 
<http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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=<optimized out>, start@entry=0, end=<optimized 
out>, end@entry=1, hl=
     DRAW_NORMAL_TEXT, overlaps=<optimized out>) at xdisp.c:26706
#3  0x00000000004613e9 in x_write_glyphs (w=0x8e811e0, 
updated_row=<optimized out>, start=<optimized out>, 
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 
<bss_sbrk_buffer+8464832>, force_p=<optimized out>,
     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 <command_loop_1>, handlers=...,
     handlers@entry=..., hfun=hfun@entry=0x4fc700 <cmd_error>) 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 <command_loop_2>, arg=...,
     arg@entry=...) at eval.c:1097
---Type <return> to continue, or q <return> 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=<optimized out>, 
argv=0x7fffffffc618) at emacs.c:1720
(gdb)

```





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-19 16:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-19  5:18 Emacs open big Org-mode file error stardiviner
2017-12-19 16:07 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).