Skip to content

Instantly share code, notes, and snippets.

@norcalli
Created December 18, 2019 03:48
Show Gist options
  • Save norcalli/3e385da6add205cca2218f36993f5fc4 to your computer and use it in GitHub Desktop.
Save norcalli/3e385da6add205cca2218f36993f5fc4 to your computer and use it in GitHub Desktop.
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 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 /home/ashkan/works/3rd/neovim/build/bin/nvim...
[New LWP 1732137]
[New LWP 1732135]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/home/ashkan/works/3rd/neovim/build/bin/nvim'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007f8df7ec8f25 in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f8df78c3700 (LWP 1732137))]
(gdb) #0 0x00007f8df7ec8f25 in raise () from /usr/lib/libc.so.6
No symbol table info available.
#1 0x00007f8df7eb2897 in abort () from /usr/lib/libc.so.6
No symbol table info available.
#2 0x00007f8df7f0c258 in __libc_message () from /usr/lib/libc.so.6
No symbol table info available.
#3 0x00007f8df7f1377a in malloc_printerr () from /usr/lib/libc.so.6
No symbol table info available.
#4 0x00007f8df7f14006 in unlink_chunk.isra () from /usr/lib/libc.so.6
No symbol table info available.
#5 0x00007f8df7f154bb in _int_free () from /usr/lib/libc.so.6
No symbol table info available.
#6 0x0000563d65641235 in xfree (ptr=0x7f8df017a5e0) at ../src/nvim/memory.c:119
No locals.
#7 0x0000563d6576dfd8 in destroy_cells (grid=0x7f8df00117b8) at ../src/nvim/ugrid.c:98
i = 117
#8 0x0000563d6576dcb5 in ugrid_resize (grid=0x7f8df00117b8, width=352, height=124) at ../src/nvim/ugrid.c:30
No locals.
#9 0x0000563d65769c0d in tui_grid_resize (ui=0x563d666b3da0, g=1, width=352, height=124) at ../src/nvim/tui/tui.c:888
data = 0x7f8df0000dd0
grid = 0x7f8df00117b8
#10 0x0000563d6577524e in ui_bridge_grid_resize_event (argv=0x7f8df78c2748) at src/nvim/auto/ui_events_bridge.generated.h:159
ui = 0x563d666b3da0
#11 0x0000563d6557c567 in multiqueue_process_events (this=0x7f8df0000d30) at ../src/nvim/event/multiqueue.c:157
event = {handler = 0x563d657751f1 <ui_bridge_grid_resize_event>, argv = {0x563d666b3ec0, 0x1, 0x160, 0x7c, 0xc, 0x563d670e17d0, 0x7f8df0000d70, 0x7ffdbce85d40, 0x563d6557b9f0 <loop_schedule_fast+86>, 0x563d6577507c <ui_bridge_default_colors_set_event>}}
__PRETTY_FUNCTION__ = "multiqueue_process_events"
#12 0x0000563d6557b994 in loop_poll_events (loop=0x7f8df78c2890, ms=-1) at ../src/nvim/event/loop.c:70
mode = UV_RUN_ONCE
timeout_expired = false
#13 0x0000563d657685dc in tui_main (bridge=0x563d666b3ec0, ui=0x563d666b3da0) at ../src/nvim/tui/tui.c:441
tui_loop = {uv = {data = 0x7f8df78c2890, active_handles = 4, handle_queue = {0x7f8df78c2b18, 0x7f8df0010f00}, active_reqs = {unused = {0x0, 0x0}, count = 0}, stop_flag = 0, flags = 0, backend_fd = 15, pending_queue = {0x7f8df78c28d8, 0x7f8df78c28d8}, watcher_queue = {0x7f8df78c28e8, 0x7f8df78c28e8},
watchers = 0x7f8df0000b60, nwatchers = 30, nfds = 3, wq = {0x7f8df78c2908, 0x7f8df78c2908}, wq_mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 39 times>, __align = 0},
wq_async = {data = 0x0, loop = 0x7f8df78c2890, type = UV_ASYNC, close_cb = 0x0, handle_queue = {0x7f8df78c2de8, 0x7f8df78c2b18}, u = {fd = 0, reserved = {0x0, 0x0, 0x0, 0x0}}, next_closing = 0x0, flags = 20, async_cb = 0x563d65800380 <uv__work_done>, queue = {0x7f8df78c2e30, 0x7f8df78c2a40},
pending = 0}, cloexec_lock = {__data = {__readers = 0, __writers = 0, __wrphase_futex = 0, __writers_futex = 0, __pad3 = 0, __pad4 = 0, __cur_writer = 0, __shared = 0, __rwelision = 0 '\000', __pad1 = "\000\000\000\000\000\000", __pad2 = 0, __flags = 0}, __size = '\000' <repeats 55 times>,
__align = 0}, closing_handles = 0x0, process_handles = {0x7f8df78c2a00, 0x7f8df78c2a00}, prepare_handles = {0x7f8df78c2a10, 0x7f8df78c2a10}, check_handles = {0x7f8df78c2a20, 0x7f8df78c2a20}, idle_handles = {0x7f8df78c2a30, 0x7f8df78c2a30}, async_handles = {0x7f8df78c29a8, 0x7f8df78c2e30},
async_unused = 0x0, async_io_watcher = {cb = 0x563d65803790 <uv__async_io>, pending_queue = {0x7f8df78c2a60, 0x7f8df78c2a60}, watcher_queue = {0x7f8df78c2a70, 0x7f8df78c2a70}, pevents = 1, events = 1, fd = 18}, async_wfd = -1, timer_heap = {min = 0x0, nelts = 0}, timer_counter = 64, time = 71571052,
signal_pipefd = {16, 17}, signal_io_watcher = {cb = 0x563d6580ce20 <uv__signal_event>, pending_queue = {0x7f8df78c2ac8, 0x7f8df78c2ac8}, watcher_queue = {0x7f8df78c2ad8, 0x7f8df78c2ad8}, pevents = 1, events = 1, fd = 16}, child_watcher = {data = 0x0, loop = 0x7f8df78c2890, type = UV_SIGNAL,
close_cb = 0x0, handle_queue = {0x7f8df78c2960, 0x7f8df78c28a0}, u = {fd = 0, reserved = {0x0, 0x0, 0x0, 0x0}}, next_closing = 0x0, flags = 16, signal_cb = 0x0, signum = 0, tree_entry = {rbe_left = 0x0, rbe_right = 0x0, rbe_parent = 0x0, rbe_color = 0}, caught_signals = 0, dispatched_signals = 0},
emfile_fd = 19, inotify_read_watcher = {cb = 0x0, pending_queue = {0x0, 0x0}, watcher_queue = {0x0, 0x0}, pevents = 0, events = 0, fd = 0}, inotify_watchers = 0x0, inotify_fd = -1}, events = 0x7f8df0000cf0, thread_events = 0x7f8df0000d70, fast_events = 0x7f8df0000d30, children = 0x7f8df0000c70,
children_watcher = {data = 0x0, loop = 0x7f8df78c2890, type = UV_SIGNAL, close_cb = 0x0, handle_queue = {0x7f8df78c2cb8, 0x7f8df78c2de8}, u = {fd = 0, reserved = {0x0, 0x0, 0x0, 0x0}}, next_closing = 0x0, flags = 8, signal_cb = 0x0, signum = 0, tree_entry = {rbe_left = 0x0, rbe_right = 0x0,
rbe_parent = 0x0, rbe_color = 0}, caught_signals = 0, dispatched_signals = 0}, children_kill_timer = {data = 0x0, loop = 0x7f8df78c2890, type = UV_TIMER, close_cb = 0x0, handle_queue = {0x7f8df78c2d50, 0x7f8df78c2c20}, u = {fd = 0, reserved = {0x0, 0x0, 0x0, 0x0}}, next_closing = 0x0, flags = 8,
timer_cb = 0x0, heap_node = {0x0, 0x0, 0x0}, timeout = 0, repeat = 0, start_id = 0}, poll_timer = {data = 0x7f8df0000db0, loop = 0x7f8df78c2890, type = UV_TIMER, close_cb = 0x0, handle_queue = {0x7f8df0011660, 0x7f8df78c2cb8}, u = {fd = 0, reserved = {0x0, 0x0, 0x0, 0x0}}, next_closing = 0x0,
flags = 8, timer_cb = 0x563d6557beb2 <timer_cb>, heap_node = {0x0, 0x0, 0x0}, timeout = 71415081, repeat = 20, start_id = 63}, async = {data = 0x0, loop = 0x7f8df78c2890, type = UV_ASYNC, close_cb = 0x0, handle_queue = {0x7f8df78c2c20, 0x7f8df78c2960}, u = {fd = 0, reserved = {0x0, 0x0, 0x0, 0x0}},
next_closing = 0x0, flags = 12, async_cb = 0x563d6557bddb <async_cb>, queue = {0x7f8df78c2a40, 0x7f8df78c29a8}, pending = 0}, mutex = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}},
__size = '\000' <repeats 39 times>, __align = 0}, recursive = 0}
data = 0x7f8df0000dd0
#14 0x0000563d65775a42 in ui_thread_run (data=0x563d666b3ec0) at ../src/nvim/ui_bridge.c:104
bridge = 0x563d666b3ec0
#15 0x00007f8df81e34cf in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
#16 0x00007f8df7f8c2d3 in clone () from /usr/lib/libc.so.6
No symbol table info available.
(gdb) #0 0x00007f8df7ec8f25 in raise () from /usr/lib/libc.so.6
(gdb) #1 0x00007f8df7eb2897 in abort () from /usr/lib/libc.so.6
(gdb) #2 0x00007f8df7f0c258 in __libc_message () from /usr/lib/libc.so.6
(gdb) #3 0x00007f8df7f1377a in malloc_printerr () from /usr/lib/libc.so.6
(gdb) #4 0x00007f8df7f14006 in unlink_chunk.isra () from /usr/lib/libc.so.6
(gdb) #5 0x00007f8df7f154bb in _int_free () from /usr/lib/libc.so.6
(gdb) #6 0x0000563d65641235 in xfree (ptr=0x7f8df017a5e0) at ../src/nvim/memory.c:119
119 free(ptr);
(gdb) #7 0x0000563d6576dfd8 in destroy_cells (grid=0x7f8df00117b8) at ../src/nvim/ugrid.c:98
98 xfree(grid->cells[i]);
(gdb) #8 0x0000563d6576dcb5 in ugrid_resize (grid=0x7f8df00117b8, width=352, height=124) at ../src/nvim/ugrid.c:30
30 destroy_cells(grid);
(gdb) #9 0x0000563d65769c0d in tui_grid_resize (ui=0x563d666b3da0, g=1, width=352, height=124) at ../src/nvim/tui/tui.c:888
888 ugrid_resize(grid, (int)width, (int)height);
(gdb) #10 0x0000563d6577524e in ui_bridge_grid_resize_event (argv=0x7f8df78c2748) at src/nvim/auto/ui_events_bridge.generated.h:159
159 ui->grid_resize(ui, PTR2INT(argv[1]), PTR2INT(argv[2]), PTR2INT(argv[3]));
(gdb) #11 0x0000563d6557c567 in multiqueue_process_events (this=0x7f8df0000d30) at ../src/nvim/event/multiqueue.c:157
157 event.handler(event.argv);
(gdb) #12 0x0000563d6557b994 in loop_poll_events (loop=0x7f8df78c2890, ms=-1) at ../src/nvim/event/loop.c:70
70 multiqueue_process_events(loop->fast_events);
(gdb) #13 0x0000563d657685dc in tui_main (bridge=0x563d666b3ec0, ui=0x563d666b3da0) at ../src/nvim/tui/tui.c:441
441 loop_poll_events(&tui_loop, -1); // tui_loop.events is never processed
(gdb) #14 0x0000563d65775a42 in ui_thread_run (data=0x563d666b3ec0) at ../src/nvim/ui_bridge.c:104
104 bridge->ui_main(bridge, bridge->ui);
(gdb) #15 0x00007f8df81e34cf in start_thread () from /usr/lib/libpthread.so.0
(gdb) quit
PID: 1732135 (nvim)
UID: 1000 (ashkan)
GID: 1000 (ashkan)
Signal: 6 (ABRT)
Timestamp: Tue 2019-12-17 19:46:27 PST (1min 45s ago)
Command Line: /home/ashkan/works/3rd/neovim/build/bin/nvim
Executable: /home/ashkan/works/3rd/neovim/build/bin/nvim
Control Group: /user.slice/user-1000.slice/session-3.scope
Unit: session-3.scope
Slice: user-1000.slice
Session: 3
Owner UID: 1000 (ashkan)
Boot ID: 67c93711f3934f08b5c86d07a6fcc94a
Machine ID: 31f12102597b4dffb7b09d6c695b4971
Hostname: zephyr
Storage: /var/lib/systemd/coredump/core.nvim.1000.67c93711f3934f08b5c86d07a6fcc94a.1732135.1576640787000000000000.lz4
Message: Process 1732135 (nvim) of user 1000 dumped core.
Stack trace of thread 1732137:
#0 0x00007f8df7ec8f25 raise (libc.so.6 + 0x3bf25)
#1 0x00007f8df7eb2897 abort (libc.so.6 + 0x25897)
#2 0x00007f8df7f0c258 __libc_message (libc.so.6 + 0x7f258)
#3 0x00007f8df7f1377a malloc_printerr (libc.so.6 + 0x8677a)
#4 0x00007f8df7f14006 unlink_chunk.isra.0 (libc.so.6 + 0x87006)
#5 0x00007f8df7f154bb _int_free (libc.so.6 + 0x884bb)
#6 0x0000563d65641235 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x216235)
#7 0x0000563d6576dfd8 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x342fd8)
#8 0x0000563d6576dcb5 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x342cb5)
#9 0x0000563d65769c0d n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x33ec0d)
#10 0x0000563d6577524e n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x34a24e)
#11 0x0000563d6557c567 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x151567)
#12 0x0000563d6557b994 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x150994)
#13 0x0000563d657685dc n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x33d5dc)
#14 0x0000563d65775a42 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x34aa42)
#15 0x00007f8df81e34cf start_thread (libpthread.so.0 + 0x94cf)
#16 0x00007f8df7f8c2d3 __clone (libc.so.6 + 0xff2d3)
Stack trace of thread 1732135:
#0 0x0000563d656ee509 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x2c3509)
#1 0x0000563d656f0cee n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x2c5cee)
#2 0x0000563d656f0b54 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x2c5b54)
#3 0x0000563d656f363d n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x2c863d)
#4 0x0000563d65772a8e n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x347a8e)
#5 0x0000563d65772b55 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x347b55)
#6 0x0000563d6557c567 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x151567)
#7 0x0000563d65670f2f n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x245f2f)
#8 0x0000563d656616e7 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x2366e7)
#9 0x0000563d6573ff58 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x314f58)
#10 0x0000563d6565f9bc n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x2349bc)
#11 0x0000563d65616321 n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x1eb321)
#12 0x00007f8df7eb4153 __libc_start_main (libc.so.6 + 0x27153)
#13 0x0000563d654b66ae n/a (/home/ashkan/works/3rd/neovim/build/bin/nvim + 0x8b6ae)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment