Skip to content

Instantly share code, notes, and snippets.

@fmoralesc
Created July 18, 2015 21:01
Show Gist options
  • Save fmoralesc/efc7a5b103554c41603c to your computer and use it in GitHub Desktop.
Save fmoralesc/efc7a5b103554c41603c to your computer and use it in GitHub Desktop.
> neovim git:(fix-resize) gdb ./build/bin/nvim
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 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-unknown-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 ./build/bin/nvim...done.
(gdb) run
Starting program: /home/felipe/devel/neovim/build/bin/nvim
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00000000005fcbd1 in read_cb (uvstream=0x7fffffffb280, cnt=40, buf=0x7fffffff7c60)
at /home/felipe/devel/neovim/src/nvim/event/rstream.c:125
#2 0x0000000000606fbf in uv__read (stream=stream@entry=0x7fffffffb280)
at /home/felipe/devel/neovim/.deps/build/src/libuv/src/unix/stream.c:1156
#3 0x00000000006076cc in uv__stream_io (loop=<optimized out>, w=0x7fffffffb308, events=1)
at /home/felipe/devel/neovim/.deps/build/src/libuv/src/unix/stream.c:1219
#4 0x000000000060bcf4 in uv__io_poll (loop=loop@entry=0x8fe180 <loop>, timeout=-1)
at /home/felipe/devel/neovim/.deps/build/src/libuv/src/unix/linux-core.c:319
#5 0x00000000006001d7 in uv_run (loop=0x8fe180 <loop>, mode=UV_RUN_ONCE)
at /home/felipe/devel/neovim/.deps/build/src/libuv/src/unix/core.c:324
#6 0x00000000005fe37b in loop_run_once (loop=0x8fe180 <loop>)
at /home/felipe/devel/neovim/src/nvim/event/loop.c:106
#7 0x00000000005fe1c7 in loop_poll_events (loop=0x8fe180 <loop>, ms=-1)
at /home/felipe/devel/neovim/src/nvim/event/loop.c:48
#8 0x00000000005fb940 in process_wait (proc=0x7fffffffb110, ms=-1)
at /home/felipe/devel/neovim/src/nvim/event/process.c:162
#9 0x00000000005ea639 in do_os_system (argv=0x7ffff6576610, input=0x0, len=0, output=0x0,
nread=0x7fffffffc7b0, silent=false, forward_output=false)
at /home/felipe/devel/neovim/src/nvim/os/shell.c:250
#10 0x00000000005ea2ac in os_call_shell (
cmd=0x7ffff65058e0 "unset nonomatch; vimglob() { while [ $# -ge 1 ]; do echo \"$1\"; shift; done }; vimglob >/tmp/nvimpRQuiN/1 $VIM/vimfiles/ftoff.vim", opts=(kShellOptExpand | kShellOptSilent),
extra_args=0x0) at /home/felipe/devel/neovim/src/nvim/os/shell.c:125
#11 0x00000000004ccd6e in call_shell (
cmd=0x7ffff65058e0 "unset nonomatch; vimglob() { while [ $# -ge 1 ]; do echo \"$1\"; shift; done }; vimglob >/tmp/nvimpRQuiN/1 $VIM/vimfiles/ftoff.vim", opts=(kShellOptExpand | kShellOptSilent),
extra_shell_arg=0x0) at /home/felipe/devel/neovim/src/nvim/misc2.c:316
#12 0x00000000004c74bc in mch_expand_wildcards (num_pat=1, pat=0x7fffffffc9d0,
---Type <return> to continue, or q <return> to quit---
num_file=0x7fffffffc9cc, file=0x7fffffffc9c0, flags=2050)
at /home/felipe/devel/neovim/src/nvim/os_unix.c:425
#13 0x0000000000511dea in gen_expand_wildcards (num_pat=1, pat=0x7fffffffc9d0,
num_file=0x7fffffffc9cc, file=0x7fffffffc9c0, flags=2)
at /home/felipe/devel/neovim/src/nvim/path.c:1119
#14 0x0000000000462ff6 in do_in_runtimepath (name=0x686f04 "ftoff.vim", all=1,
callback=0x462dac <source_callback>, cookie=0x0)
at /home/felipe/devel/neovim/src/nvim/ex_cmds2.c:2173
#15 0x0000000000462dfd in source_runtime (name=0x686f04 "ftoff.vim", all=1)
at /home/felipe/devel/neovim/src/nvim/ex_cmds2.c:2106
#16 0x00000000005beee7 in ex_filetype (eap=0x7fffffffcad0)
at /home/felipe/devel/neovim/src/nvim/ex_docmd.c:9269
#17 0x00000000005b04ca in do_one_cmd (cmdlinep=0x7fffffffd180, sourcing=1, cstack=0x7fffffffcce0,
fgetline=0x4fceae <get_func_line>, cookie=0x7ffff64b0800)
at /home/felipe/devel/neovim/src/nvim/ex_docmd.c:2195
#18 0x00000000005ad0da in do_cmdline (cmdline=0x0, fgetline=0x4fceae <get_func_line>,
cookie=0x7ffff64b0800, flags=7) at /home/felipe/devel/neovim/src/nvim/ex_docmd.c:621
#19 0x00000000004fc39f in call_user_func (fp=0x7ffff64449c0, argcount=0, argvars=0x7fffffffd6c0,
rettv=0x7fffffffd880, firstline=1, lastline=1, selfdict=0x0)
at /home/felipe/devel/neovim/src/nvim/eval.c:19110
#20 0x00000000004e2ea3 in call_func (funcname=0x7ffff6512990 "plug#end", len=8,
rettv=0x7fffffffd880, argcount=0, argvars=0x7fffffffd6c0, firstline=1, lastline=1,
doesrange=0x7fffffffd87c, evaluate=1, selfdict=0x0)
at /home/felipe/devel/neovim/src/nvim/eval.c:6982
#21 0x00000000004e2aaf in get_func_tv (name=0x7ffff6512990 "plug#end", len=8,
rettv=0x7fffffffd880, arg=0x7fffffffd8a0, firstline=1, lastline=1, doesrange=0x7fffffffd87c,
evaluate=1, selfdict=0x0) at /home/felipe/devel/neovim/src/nvim/eval.c:6848
#22 0x00000000004db583 in ex_call (eap=0x7fffffffd960)
at /home/felipe/devel/neovim/src/nvim/eval.c:2710
---Type <return> to continue, or q <return> to quit---
#23 0x00000000005b04ca in do_one_cmd (cmdlinep=0x7fffffffe010, sourcing=1, cstack=0x7fffffffdb70,
fgetline=0x463e92 <getsourceline>, cookie=0x7fffffffe140)
at /home/felipe/devel/neovim/src/nvim/ex_docmd.c:2195
#24 0x00000000005ad0da in do_cmdline (cmdline=0x7ffff64f4300 "\" vim: set fdm=marker :",
fgetline=0x463e92 <getsourceline>, cookie=0x7fffffffe140, flags=7)
at /home/felipe/devel/neovim/src/nvim/ex_docmd.c:621
#25 0x0000000000463ac6 in do_source (fname=0x673ac2 "~/.nvimrc", check_other=1, is_vimrc=1)
at /home/felipe/devel/neovim/src/nvim/ex_cmds2.c:2523
#26 0x00000000004d4dd9 in source_startup_scripts (parmp=0x7fffffffe260)
at /home/felipe/devel/neovim/src/nvim/main.c:1834
#27 0x00000000004d1fcc in main (argc=1, argv=0x7fffffffe488)
at /home/felipe/devel/neovim/src/nvim/main.c:337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment