Skip to content

Instantly share code, notes, and snippets.

@justinmk
Created August 28, 2015 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinmk/8e0668f664693041236a to your computer and use it in GitHub Desktop.
Save justinmk/8e0668f664693041236a to your computer and use it in GitHub Desktop.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ..... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ................................................ done
#0 je_arena_mapbits_binind_get [inlined] () at /Users/justin/dev/neovim/.deps/build/src/jemalloc/include/jemalloc/internal/arena.h:573
573 mapbits = arena_mapbits_get(chunk, pageind);
(gdb) thread apply all bt full
Thread 2 (core thread 1):
#0 0x00007fff8dc543fa in select$DARWIN_EXTSN ()
No symbol table info available.
#1 0x0000000107ccb5aa in uv__stream_osx_select (arg=0x87c4070) at /Users/justin/dev/neovim/.deps/build/src/libuv/src/unix/stream.c:169
buf = "xxxxx", '\0' <repeats 900 times>, "0�\a\000\000\000\000�\016\b�\000\000\000\000^���", '\0' <repeats 50 times>, "���\032�\000\000`\024�\032�\000\000\003\000\000\000\000\000\000\000`\024�\032�\000\000\000\000�\032�\000\000\003\000�\a\000\000\000"
r = 33554525
events = <value temporarily unavailable, due to optimizations>
#2 0x0000000107ccdc29 in uv__thread_start (arg=<value temporarily unavailable, due to optimizations>) at /Users/justin/dev/neovim/.deps/build/src/libuv/src/unix/thread.c:49
No locals.
#3 0x00007fff8e698268 in _pthread_body ()
No symbol table info available.
#4 0x00007fff8e6981e5 in _pthread_start ()
No symbol table info available.
#5 0x00007fff8e69641d in thread_start ()
No symbol table info available.
Current language: auto; currently minimal
Thread 1 (core thread 0):
#0 je_arena_mapbits_binind_get [inlined] () at /Users/justin/dev/neovim/.deps/build/src/jemalloc/include/jemalloc/internal/arena.h:573
mapbits = <value temporarily unavailable, due to optimizations>
binind = <value temporarily unavailable, due to optimizations>
chunk = (arena_chunk_t *) 0x55c00000
pageind = <value temporarily unavailable, due to optimizations>
binind = <value temporarily unavailable, due to optimizations>
ret = <value temporarily unavailable, due to optimizations>
chunk = (arena_chunk_t *) 0x55c00000
ret = <value temporarily unavailable, due to optimizations>
usize = <value temporarily unavailable, due to optimizations>
#1 je_arena_salloc [inlined] () at /Users/justin/dev/neovim/.deps/build/src/jemalloc/include/jemalloc/internal/arena.h:991
mapbits = <value temporarily unavailable, due to optimizations>
binind = <value temporarily unavailable, due to optimizations>
chunk = (arena_chunk_t *) 0x55c00000
pageind = <value temporarily unavailable, due to optimizations>
binind = <value temporarily unavailable, due to optimizations>
ret = <value temporarily unavailable, due to optimizations>
chunk = (arena_chunk_t *) 0x55c00000
ret = <value temporarily unavailable, due to optimizations>
usize = <value temporarily unavailable, due to optimizations>
#2 0x0000000107cfc920 in ifree (ptr=0x55dad793) at src/jemalloc.c:1228
mapbits = <value temporarily unavailable, due to optimizations>
binind = <value temporarily unavailable, due to optimizations>
chunk = (arena_chunk_t *) 0x55c00000
pageind = <value temporarily unavailable, due to optimizations>
binind = <value temporarily unavailable, due to optimizations>
ret = <value temporarily unavailable, due to optimizations>
chunk = (arena_chunk_t *) 0x55c00000
ret = <value temporarily unavailable, due to optimizations>
usize = <value temporarily unavailable, due to optimizations>
#3 0x0000000107b60c95 in xfree (ptr=0x55dad793) at /Users/justin/dev/neovim/src/nvim/memory.c:108
No locals.
#4 0x0000000107c2b5ea in shada_write (sd_writer=0x7fff581cc7e0, sd_reader=0x7fff581cc790) at /Users/justin/dev/neovim/src/nvim/shada.c:2835
i = 23
ret = kSDWriteSuccessfull
max_kbyte_i = 10
wms = (WriteMergerState * const) 0x8300000
dump_one_history = {true, true, true, true, true}
dump_global_vars = true
max_reg_lines = 50
limit_reg_lines = true
dump_registers = true
removable_bufs = {
n_buckets = 0,
size = 0,
n_occupied = 0,
upper_bound = 0,
flags = 0x0,
keys = 0x0,
vals = 0x0
}
max_kbyte = 10
num_marked_files = 100
dump_global_marks = true
dump_history = true
srni_flags = 7676
packer = (msgpack_packer * const) 0x7fe81ac09c40
search_highlighted = false
search_last_used = true
jump_iter = (const void *) 0x0
file_markss_size = 64
all_file_markss = (FileMarks ** const) 0x803cc00
cur_file_marks = (FileMarks **) 0x803ce00
file_markss_to_dump = 64
#5 0x0000000107c28a8d in shada_write_file (file=0x0, nomerge=false) at /Users/justin/dev/neovim/src/nvim/shada.c:2982
fname = 0x815e640 "/Users/justin/.nvim/shada/main.shada"
tempname = 0x830e220 "/Users/justin/.nvim/shada/main.shada.tmp.a"
sd_writer = {
write = 0x107c28f60 <write_file>,
close = 0x107c29090 <close_sd_writer>,
cookie = 0x1c,
error = 0x0,
sd_conv = {
vc_type = 0,
vc_factor = 1,
vc_fd = 0x0,
vc_fail = false
}
}
sd_reader = {
read = 0x107c3aab0 <read_file>,
close = 0x107c3ac60 <close_sd_reader>,
skip = 0x107c3ac90 <sd_reader_skip_read>,
cookie = 0x1a,
eof = true,
error = 0x0,
fpos = 32085,
sd_conv = {
vc_type = 0,
vc_factor = 1,
vc_fd = 0x0,
vc_fail = false
}
}
fd = 28
sw_ret = 32767
#6 0x0000000107b41142 in getout (exitval=0) at /Users/justin/dev/neovim/src/nvim/main.c:809
tp = (tabpage_T *) 0x0
next_tp = (tabpage_T *) 0x0
#7 0x0000000107ab5ebf in do_wqall (eap=0x7fff581ccbe8) at /Users/justin/dev/neovim/src/nvim/ex_cmds.c:1827
error = 0
save_forceit = 0
#8 0x0000000107acecdf in do_one_cmd (cmdlinep=0x7fff581ccef0, sourcing=0, cstack=0x7fff581ccef8, fgetline=0x107af1970 <getexline>, cookie=0x0) at /Users/justin/dev/neovim/src/nvim/ex_docmd.c:2196
p = (char_u *) 0x8287cf2 ""
lnum = 2147483647
n = 0
errormsg = (char_u *) 0x0
ea = {
arg = 0x8287cf2 "",
nextcmd = 0x0,
cmd = 0x8287cf0 "xa",
cmdlinep = 0x7fff581ccef0,
cmdidx = CMD_xall,
argt = 258,
skip = 0,
forceit = 0,
addr_count = 0,
line1 = 1,
line2 = 1,
addr_type = 0,
flags = 0,
do_ecmd_cmd = 0x0,
do_ecmd_lnum = 0,
append = 0,
usefilter = 0,
amount = 0,
regname = 0,
force_bin = 0,
read_edit = 0,
force_ff = 0,
force_enc = 0,
bad_char = 0,
useridx = 0,
errmsg = 0x0,
getline = 0x107af1970 <getexline>,
cookie = 0x0,
cstack = 0x7fff581ccef8
}
verbose_save = -1
save_msg_scroll = 1
save_msg_silent = -1
did_esilent = 0
did_sandbox = 0
save_cmdmod = {
hide = 0,
split = 0,
tab = 0,
confirm = 0,
keepalt = 0,
keepmarks = 0,
keepjumps = 0,
lockmarks = 0,
keeppatterns = 0,
noswapfile = false,
save_ei = 0x0
}
ni = 0
cmd = (char_u *) 0x8287cf0 "xa"
#9 0x0000000107aca232 in do_cmdline (cmdline=0x0, fgetline=0x107af1970 <getexline>, cookie=0x0, flags=0) at /Users/justin/dev/neovim/src/nvim/ex_docmd.c:622
recursive = 1
call_depth = 1
next_cmdline = (char_u *) 0x8287cf0 "xa"
cmdline_copy = (char_u *) 0x8287cf0 "xa"
used_getline = 1
msg_didout_before_start = 1
count = 1
did_inc = 1
retval = 1
cstack = {
cs_flags = {4640, 2049, 0, 0, -12464, 22556, 32767, 0, -11585, 1995, 1, 0, 4640, 2049, 0, 0, 28024, 2008, 1, 0, 1, 0, 0, 0, -32768, 2062, 0, 0, -12448, 22556, 32767, 0, -7662, 1980, 1, 0, 1, 0, 0, 0, -12336, 22556, 32767, 0, -32768, 2062, 0, 0, 0, 0},
cs_pending = "\000\000\000\000��\034X�\000\000���\a\001\000\000\000��\034X�\000\000\001\000\000\000\000\000\000\000���\a\001\000\000\000\001\000\000\000\000",
cs_pend = {
csp_rv = {0x1, 0x0, 0x0, 0x57, 0x7fff581cd010, 0x107b1ea87, 0x80e8000, 0x1, 0x8e006e037b397255, 0x8e006e037b397255, 0x0, 0x0, 0x0, 0x0, 0x7fff581cd030, 0x107b60b28, 0x112, 0x82942c0, 0x112, 0x112, 0x7fff581cd060, 0x107b60c15, 0x7fff581cd060, 0x7fff8f433f70, 0x82942f6, 0x8e006e037b397255, 0x7fff581cd110, 0x107b1b0e5, 0x1581cd0d0, 0x82942fa, 0x82942f6, 0x107d7d4a3, 0x82941ba, 0x82941b6, 0x107d7d393, 0x82941b6, 0x4, 0x5a, 0x7fff581cd0d0, 0x100000000, 0x400000036, 0x11200000004, 0x82942c0, 0x8294180, 0x7fff581cd110, 0x107b60c95, 0x816f230, 0x100000000, 0x7fff581cd2a0, 0x107b1d65c},
csp_ex = {0x1, 0x0, 0x0, 0x57, 0x7fff581cd010, 0x107b1ea87, 0x80e8000, 0x1, 0x8e006e037b397255, 0x8e006e037b397255, 0x0, 0x0, 0x0, 0x0, 0x7fff581cd030, 0x107b60b28, 0x112, 0x82942c0, 0x112, 0x112, 0x7fff581cd060, 0x107b60c15, 0x7fff581cd060, 0x7fff8f433f70, 0x82942f6, 0x8e006e037b397255, 0x7fff581cd110, 0x107b1b0e5, 0x1581cd0d0, 0x82942fa, 0x82942f6, 0x107d7d4a3, 0x82941ba, 0x82941b6, 0x107d7d393, 0x82941b6, 0x4, 0x5a, 0x7fff581cd0d0, 0x100000000, 0x400000036, 0x11200000004, 0x82942c0, 0x8294180, 0x7fff581cd110, 0x107b60c95, 0x816f230, 0x100000000, 0x7fff581cd2a0, 0x107b1d65c}
},
cs_forinfo = {0x3a08011220, 0x107d86d78, 0xbb8, 0xbb8, 0xbb8, 0x10600000000, 0x107d7d392, 0x6e037b397255, 0x7fff581cd190, 0x80e8000, 0x7fff581cd190, 0x100000000, 0xffffffff00000002, 0x816f230, 0x7fff581cd1d0, 0x107ca1744, 0x7fff581cd200, 0x80e8000, 0x0, 0x100000107ca15d2, 0x7fff581cd220, 0x5a0000005a, 0x7fff581cd1f0, 0x107ca0bb0, 0xffffffff, 0x0, 0x0, 0x7ca0a40, 0xffffffff, 0x0, 0x5a07d7d391, 0x100000000, 0x0, 0xffffffff00000000, 0x0, 0x1, 0x10100000000, 0x100000000, 0x200000000, 0x8170cc0, 0x0, 0x0, 0x816f230, 0x3a00000000, 0x10000003a, 0x3a, 0x816ab98, 0x8e006e037b397255, 0x7fff581cd3b0, 0x107b1bfc2},
cs_line = {58, 1, 13957, 0, 0, 0, 0, 0, 0, 0, 2067362389, -1912574461, 1478284048, 32767, 130786731, 1, 131521472, 1, 1, 0, 2, 0, 131624264, 1, 1478284064, 32767, 2067362389, -1912574461, 1478284464, 32767, 13958, 1, 17542, 0, 17798, 1, 18054, 0, 18310, 0, 18566, 0, 18822, 263, 19078, 1, 19334, 58, 1, 0},
cs_idx = -1,
cs_looplevel = 0,
cs_trylevel = 0,
cs_emsg_silent_list = 0x0,
cs_lflags = 0 '\0'
}
lines_ga = {
ga_len = 0,
ga_maxlen = 0,
ga_itemsize = 16,
ga_growsize = 10,
ga_data = 0x0
}
current_line = 0
fname = (char_u *) 0x0
breakpoint = (linenr_T *) 0x0
dbg_tick = (int *) 0x0
debug_saved = {
trylevel = 130777088,
force_abort = 1,
caught_stack = 0x0,
vv_exception = 0x87b4000 "*",
vv_throwpoint = 0x823fac0 "",
did_emsg = 142295112,
got_int = 0,
did_throw = 2067362389,
need_rethrow = -1912574461,
check_cstack = -675924991,
current_exception = 0x107d86d90
}
initial_trylevel = 0
saved_msg_list = (struct msglist **) 0x0
private_msg_list = (struct msglist *) 0x0
cmd_getline = (char_u *(*)(int, void *, int)) 0x107af1970 <getexline>
cmd_cookie = (void *) 0x0
cmd_loop_cookie = {
lines_gap = 0x0,
current_line = 0,
repeating = 0,
getline = 0,
cookie = 0x8e006e037b397255
}
real_cookie = (void *) 0x0
getline_is_func = 0
#10 0x0000000107b8cbfb in nv_colon (cap=0x7fff581cd4e8) at /Users/justin/dev/neovim/src/nvim/normal.c:4080
old_p_im = 0
cmd_result = false
#11 0x0000000107b829b5 in normal_cmd (oap=0x7fff581cd5a8, toplevel=true) at /Users/justin/dev/neovim/src/nvim/normal.c:912
old_mapped_len = 0
ca = {
oap = 0x7fff581cd5a8,
prechar = 0,
cmdchar = 58,
nchar = 0,
ncharC1 = 0,
ncharC2 = 0,
extra_char = 0,
opcount = 0,
count0 = 0,
count1 = 1,
arg = 0,
retval = 0,
searchbuf = 0x0
}
c = 58
ctrl_w = false
old_col = 0
need_flushbuf = false
old_pos = {
lnum = 1,
col = 0,
coladd = 0
}
mapped_len = 0
idx = 60
set_prevcount = false
#12 0x0000000107b40eab in main_loop (cmdwin=0, noexmode=0) at /Users/justin/dev/neovim/src/nvim/main.c:749
oa = {
op_type = 0,
regname = 0,
motion_type = 0,
motion_force = 0,
use_reg_one = false,
inclusive = false,
end_adjusted = false,
start = {
lnum = 0,
col = 0,
coladd = 0
},
end = {
lnum = 0,
col = 0,
coladd = 0
},
cursor_start = {
lnum = 0,
col = 0,
coladd = 0
},
line_count = 0,
empty = false,
is_VIsual = false,
block_mode = false,
start_vcol = 0,
end_vcol = 0,
prev_opcount = 0,
prev_count0 = 0
}
previous_got_int = 0
conceal_old_cursor_line = 0
conceal_new_cursor_line = 0
conceal_update_lines = 0
#13 0x0000000107b3dc1b in main (argc=2, argv=0x7fff581cd7c8) at /Users/justin/dev/neovim/src/nvim/main.c:536
fname = (char_u *) 0x80113d0 "execute s:Merge('merge', <bang>0, <q-args>)"
params = {
argc = 2,
argv = 0x7fff581cd7c8,
use_vimrc = 0x0,
n_commands = 0,
commands = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
cmds_tofree = "\000\000\000\000\000\000\000\000\000",
n_pre_commands = 0,
pre_commands = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
edit_type = 1,
tagname = 0x0,
use_ef = 0x0,
want_full_screen = 1,
input_isatty = true,
output_isatty = true,
err_isatty = true,
headless = false,
no_swap_file = 0,
use_debug_break_level = -1,
window_count = 1,
window_layout = 0,
diff_mode = 0
}
reading_input = true
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment