Skip to content

Instantly share code, notes, and snippets.

@lewang lewang/gist:1702723
Created Jan 30, 2012

Embed
What would you like to do?
emacs crash "gdb where"
(gdb) r
Starting program: /Users/lewang/src/emacs/nextstep/intel64/Emacs.app/Contents/MacOS/Emacs --
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000000000101e0
0x00000001000ce85f in unchain_marker (marker=0x1098bc490) at marker.c:735
735 tail = BUF_MARKERS (b);
(gdb) where
#0 0x00000001000ce85f in unchain_marker (marker=0x1098bc490) at marker.c:735
#1 0x000000010010216b in gc_sweep [inlined] () at /Users/lewang/src/emacs/src/alloc.c:6112
#2 0x000000010010216b in Fgarbage_collect () at alloc.c:5202
#3 0x0000000100119988 in Ffuncall (nargs=4455122064, args=0x7fff5fbf5428) at eval.c:2923
#4 0x000000010011cf97 in internal_condition_case_n (bfun=0x100119890 <Ffuncall>, nargs=2, args=0x109800000, handlers=4320145514, hfun=0x100037d90 <safe_eval_handler>) at eval.c:1621
#5 0x000000010003d818 in safe_call1 [inlined] () at /Users/lewang/src/emacs/src/xdisp.c:2357
#6 0x000000010003d818 in safe_eval [inlined] () at /Users/lewang/src/emacs/src/xdisp.c:2384
#7 0x000000010003d818 in display_mode_element (it=0x7fff5fbf5460, depth=159383552, field_width=1, precision=65920, elt=140734799762528, props=140734799762528, risky=0) at xdisp.c:20259
#8 0x000000010003d920 in display_mode_element (it=0x7fff5fbf5580, depth=2, field_width=0, precision=0, elt=140734799762816, props=140734799762816, risky=0) at xdisp.c:20340
#9 0x000000010003dcc7 in display_mode_line (w=0x1, face_id=MODE_LINE_INACTIVE_FACE_ID, format=4348988774) at xdisp.c:19857
#10 0x000000010003df05 in display_mode_lines (w=0x7fff5fbf55b0) at xdisp.c:19799
#11 0x000000010004b3e6 in redisplay_window (window=140734799762864, just_this_one_p=1606398656) at xdisp.c:15797
#12 0x0000000100035e64 in redisplay_window_0 (window=140734799762864) at xdisp.c:13603
#13 0x000000010011d24d in internal_condition_case_1 (bfun=0x100035e40 <redisplay_window_0>, arg=140734799762864, handlers=4320152646, hfun=0x100017230 <redisplay_window_error>) at eval.c:1537
#14 0x0000000100035e23 in redisplay_windows (window=140734799762864) at xdisp.c:13583
#15 0x000000010004218a in redisplay_internal () at xdisp.c:13160
#16 0x0000000100042a07 in redisplay_preserve_echo_area (from_where=10852469) at xdisp.c:13411
#17 0x00000001000041f1 in Fredisplay (force=4320145466) at dispnew.c:6085
#18 0x0000000100119c43 in Ffuncall (nargs=4305819765, args=0x100119de4) at eval.c:2986
#19 0x0000000100153735 in exec_byte_code (bytestr=4320145466, vector=4297185184, maxdepth=140734799794080, args_template=4320145466, nargs=140734799794072, args=0x0) at bytecode.c:785
#20 0x000000010011c77a in funcall_lambda (fun=140734799794336, nargs=140734799794336, arg_vector=0x7fff5fbfd0a0) at eval.c:3217
#21 0x0000000100119d24 in Ffuncall (nargs=1, args=0x10188369a) at eval.c:3035
#22 0x0000000100153735 in exec_byte_code (bytestr=4320145466, vector=4298448248, maxdepth=140734799794464, args_template=4320145466, nargs=0, args=0x0) at bytecode.c:785
#23 0x000000010011c77a in funcall_lambda (fun=140734799794704, nargs=140734799794704, arg_vector=0x7fff5fbfd210) at eval.c:3217
#24 0x0000000100119d24 in Ffuncall (nargs=2, args=0x101c68afa) at eval.c:3035
#25 0x0000000100153735 in exec_byte_code (bytestr=4320145466, vector=4298422024, maxdepth=140734799794832, args_template=4320145466, nargs=140734799794824, args=0x0) at bytecode.c:785
#26 0x000000010011c77a in funcall_lambda (fun=140734799795088, nargs=140734799795088, arg_vector=0x7fff5fbfd390) at eval.c:3217
#27 0x0000000100119d24 in Ffuncall (nargs=1, args=0x101c66fba) at eval.c:3035
#28 0x0000000100153735 in exec_byte_code (bytestr=4320145466, vector=4298434048, maxdepth=140734799795216, args_template=4320145466, nargs=140734799795208, args=0x10047a1e3) at bytecode.c:785
#29 0x000000010011c77a in funcall_lambda (fun=140734799795456, nargs=140734799795456, arg_vector=0x7fff5fbfd500) at eval.c:3217
#30 0x0000000100119d24 in Ffuncall (nargs=1, args=0x101c642da) at eval.c:3035
#31 0x0000000100153735 in exec_byte_code (bytestr=4320145466, vector=4298438408, maxdepth=140734799795584, args_template=4320145466, nargs=0, args=0x7fff5fbfd580) at bytecode.c:785
#32 0x000000010011c77a in funcall_lambda (fun=140734799795808, nargs=140734799795808, arg_vector=0x7fff5fbfd660) at eval.c:3217
#33 0x0000000100119d24 in Ffuncall (nargs=1, args=0x101c641ba) at eval.c:3035
#34 0x0000000100153735 in exec_byte_code (bytestr=4320145466, vector=4298438176, maxdepth=140734799795936, args_template=4320145466, nargs=140734799795944, args=0x100479b23) at bytecode.c:785
#35 0x000000010011c77a in funcall_lambda (fun=140734799796176, nargs=140734799796176, arg_vector=0x7fff5fbfd7d0) at eval.c:3217
#36 0x0000000100119d24 in Ffuncall (nargs=3, args=0x101c647ca) at eval.c:3035
#37 0x0000000100153735 in exec_byte_code (bytestr=4320145466, vector=4298438024, maxdepth=140734799796304, args_template=4320145466, nargs=140734799796296, args=0x100479b3d) at bytecode.c:785
#38 0x000000010011c77a in funcall_lambda (fun=140734799796544, nargs=140734799796544, arg_vector=0x7fff5fbfd940) at eval.c:3217
#39 0x0000000100119d24 in Ffuncall (nargs=2, args=0x101c670da) at eval.c:3035
#40 0x000000010011c176 in apply1 (fn=Cannot access memory at address 0x0
) at eval.c:2722
#41 0x00000001001155df in Fcall_interactively (function=140734799796944, record_flag=140734799796944, keys=140734799796944) at callint.c:377
#42 0x0000000100119c63 in Ffuncall (nargs=4324749530, args=0x100119de4) at eval.c:2993
#43 0x000000010011cb66 in call3 (fn=4, arg1=0, arg2=3, arg3=0) at eval.c:2786
#44 0x00000001000b4565 in command_loop_1 () at keyboard.c:1571
#45 0x000000010011d393 in internal_condition_case (bfun=0x1000b3f20 <command_loop_1>, handlers=4320201482, hfun=0x1000b54b0 <cmd_error>) at eval.c:1499
#46 0x00000001000b3efe in command_loop_2 (ignore=4320271674) at keyboard.c:1159
#47 0x000000010011d498 in internal_catch (tag=4320271674, func=0x1000b3ec0 <command_loop_2>, arg=4320271674) at eval.c:1256
#48 0x00000001000b59f0 in command_loop [inlined] () at /Users/lewang/src/emacs/src/keyboard.c:1138
#49 0x00000001000b59f0 in recursive_edit_1 () at keyboard.c:758
#50 0x00000001000a5a0c in Frecursive_edit () at keyboard.c:822
#51 0x00000001000a256b in main (argc=25230234, argv=0x7fff5fbfe140) at emacs.c:1715
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.