GNU gdb (GDB) 7.12 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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--netbsd". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/vi...Reading symbols from /usr/libdata/debug//usr/bin/vi.debug...done. done. [New process 1] Core was generated by `vi'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x000077f60961cbf9 in _wnoutrefresh (win=0x77f60951f2a0, begy=begy@entry=0, begx=begx@entry=0, wbegy=0, wbegx=0, maxy=38, maxx=136) at /usr/src/lib/libcurses/refresh.c:208 208 if (dwin->cury + wbegy - begy < screen->__virtscr->maxy && (gdb) bt #0 0x000077f60961cbf9 in _wnoutrefresh (win=0x77f60951f2a0, begy=begy@entry=0, begx=begx@entry=0, wbegy=0, wbegx=0, maxy=38, maxx=136) at /usr/src/lib/libcurses/refresh.c:208 #1 0x000077f60961d24c in wnoutrefresh (win=) at /usr/src/lib/libcurses/refresh.c:90 #2 0x00000001cb00d272 in cl_refresh (sp=0x77f60950f000, repaint=4) at /usr/src/external/bsd/nvi/dist/cl/cl_funcs.c:605 #3 0x00000001cb04bef6 in vs_paint (sp=sp@entry=0x77f60950f000, flags=3) at /usr/src/external/bsd/nvi/dist/vi/vs_refresh.c:731 #4 0x00000001cb04d07c in vs_refresh (sp=sp@entry=0x77f60950f000, forcepaint=forcepaint@entry=0) at /usr/src/external/bsd/nvi/dist/vi/vs_refresh.c:99 #5 0x00000001cb0484f5 in vi (spp=spp@entry=0x7f7fff441b80) at /usr/src/external/bsd/nvi/dist/vi/vi.c:112 #6 0x00000001cb0302f0 in editor (wp=0x77f609502400, argc=, argv=) at /usr/src/external/bsd/nvi/dist/common/main.c:436 #7 0x00000001cb0598a0 in main (argc=1, argv=0x7f7fff441df0) at /usr/src/external/bsd/nvi/dist/cl/cl_main.c:135 (gdb) f 0 #0 0x000077f60961cbf9 in _wnoutrefresh (win=0x77f60951f2a0, begy=begy@entry=0, begx=begx@entry=0, wbegy=0, wbegx=0, maxy=38, maxx=136) at /usr/src/lib/libcurses/refresh.c:208 (gdb) list 208 if (dwin->cury + wbegy - begy < screen->__virtscr->maxy && 203 } 204 } 205 } 206 207 /* Check that cursor position on "win" is valid for "__virtscr" */ 208 if (dwin->cury + wbegy - begy < screen->__virtscr->maxy && 209 dwin->cury + wbegy - begy >= 0 && dwin->cury < maxy - begy) 210 screen->__virtscr->cury = dwin->cury + wbegy - begy; 211 if (dwin->curx + wbegx - begx < screen->__virtscr->maxx && 212 dwin->curx + wbegx - begx >= 0 && dwin->curx < maxx - begx) (gdb) bt full #0 0x000077f60961cbf9 in _wnoutrefresh (win=0x77f60951f2a0, begy=begy@entry=0, begx=begx@entry=0, wbegy=0, wbegx=0, maxy=38, maxx=136) at /usr/src/lib/libcurses/refresh.c:208 screen = 0x77f60950a000 sy = wy = wx = y_off = x_off = mx = dy_off = dx_off = endy = wlp = vlp = dwlp = sub_win = orig = swin = 0x77f60951f2a0 dwin = 0x77f60951f2a0 #1 0x000077f60961d24c in wnoutrefresh (win=) at /usr/src/lib/libcurses/refresh.c:90 No locals. #2 0x00000001cb00d272 in cl_refresh (sp=0x77f60950f000, repaint=4) at /usr/src/external/bsd/nvi/dist/cl/cl_funcs.c:605 clp = 0x77f609502800 win = 0x77f60951f2a0 psp = tsp = y = x = #3 0x00000001cb04bef6 in vs_paint (sp=sp@entry=0x77f60950f000, flags=3) at /usr/src/external/bsd/nvi/dist/vi/vs_refresh.c:731 gp = smp = tmp = {lno = 156299264, coff = 140187720226960, soff = 0, c_sboff = 131898591156515, c_eboff = 960, c_scoff = 0 '\000', c_eclen = 0 '\000', c_ecsize = 150 '\226'} vip = 0x77f60951d800 lastline = 156299264 lcnt = cwtotal = cnt = len = 131898601902080 notused = 7700795619 off = y = 0 ch = didpaint = isempty = 30710 leftright_warp = 0 p = 0x77f609501000 L"\xff442440\x7f7f\002" #4 0x00000001cb04d07c in vs_refresh (sp=sp@entry=0x77f60950f000, forcepaint=forcepaint@entry=0) at /usr/src/external/bsd/nvi/dist/vi/vs_refresh.c:99 gp = 0x77f609501000 tsp = need_refresh = priv_paint = 17 #5 0x00000001cb0484f5 in vi (spp=spp@entry=0x7f7fff441b80) at /usr/src/external/bsd/nvi/dist/vi/vi.c:112 gp = 0x77f609501000 wp = 0x77f609502400 abst = {lno = 7906964, cno = 131898590389360} next = 0x0 sp = 0x77f60950f000 cmd = {key = 0, buffer = 0, character = 0, count = 0, count2 = 0, ev = {q = {tqe_next = 0x0, tqe_prev = 0x0}, e_event = E_NOTUSED, e_ipcom = 0, e_c = 0, e_value = K_NOTUSED, e_val1 = 0, e_val2 = 0, e_val3 = 0, e_val4 = 0, e_str1 = 0x0, e_len1 = 0, e_str2 = 0x0, e_len2 = 0}, kp = 0x0, rkp = 0x0, flags = 32, m_start = {lno = 0, cno = 0}, m_stop = {lno = 0, cno = 0}, m_final = {lno = 0, cno = 0}} vp = 0x7f7fff441960 vip = 0x77f60951d800 comcount = 0 mapped = 0 rval = 0 #6 0x00000001cb0302f0 in editor (wp=0x77f609502400, argc=, argv=) at /usr/src/external/bsd/nvi/dist/common/main.c:436 p = ev = {q = {tqe_next = 0x3907120, tqe_prev = 0x77f608a16c10}, e_event = 2872, e_ipcom = 0, e_c = 144843431, e_value = 30710, e_val1 = 140187720227968, e_val2 = 131898606510080, e_val3 = 140179889208498, e_val4 = 21474836485, e_str1 = 0x1 , e_len1 = 131898598756057, e_str2 = 0x77f609966000 L"\xd550b87a\001\x9966400\x77f6\x9962280\x77f6\005", e_len2 = 7700744384} frp = sp = 0x77f60950f000 gp = 0x77f609501000 len = 59797792 flags = 2 ch = flagchk = 0 lflag = 0 secure = 0 startup = 1 readonly = 0 silent = gtags = 0 tag_f = 0x0 wsizearg = 0x0 path = "\377\377\377\377\366w\000\000\070\v\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000$P\t\366w\000\000x\035D\377\177\177\000\000\001\000\000\000\000\000\000\000G>€,~\177\000\000\000\000\000\000\000\000\000\000\365\023€,~\177\000\000\000`\226\t\366w\000\000\242\f€,~\177\000\000\000\020\000\000\000\000\000\000\000`\226\t\366w\000\000`K'\313\001\000\000\000\000\020P\t\366w\000\000\000(P\t\366w\000\000-\b€,~\177\000\000\000\020Q\t\366w\000\000\000\000\000\000\000\000\000\000\021\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\020\035D\377\177\177\000\000ø)P\t\366w\000\000\060\276\252\b\366w\000\000"... w = 0x77f608a222a7 L"\x69735f5f\x74636167\x5f6e6f69\x74676973\x706d6172\x5f5f5f00\x6f6c635f\x735f6b63\x69747465\x3035656d\x5f5f5f00\x6a64615f\x656d6974\x5f003035\x7275635f\x6b7262\x6b72625f\x745f5f00\x675f736c\x615f7465\x726464\x696c5f5f\x745f6362\x675f736c\x615f7465\x726464\x696c5f5f\x725f6362\x5f646c74\x5f736c74\x6f6c6c61\x65746163\x6c5f5f00\x5f636269\x646c7472\x736c745f\x6572665f\x6c5f0065\x735f7077\x72707465\x74617669\x635f0065\x706f7461\x5f006e65\x7379735f\x69736e5f\x343167\x7461635f\x73746567\x61635f00\x6f6c6374\x5f006573\x7379735f\x6769735f\x7473696c\x5f003431\x6e61635f\x7265766f\x74697277\x766e6565\x726176\x6c615f5f\x65636f6c\x6176766e\x63770072\x6f747273\x5f73626d\x5f5f006c\x73776676\x666e6163\x6c6e755f\x656b636f\x6c5f64\x66765f5f\x69727077\x5f66746e\x6f6c6e75\x64656b63\x6d006c5f\x74727362\x7363776f\x75006c5f\x7465676e\x77006377\x636d656d\x6c007268\x6c61636f\x6e6f6365\x6c5f76\x74736377\x616d696f\x6c5f78\x74726377\x5f626d6f\x775f006c\x6f747363\x6c5f64\x74736377\x616d756f\x6c5f78\x78777369\x69676964\x6c5f74\x64777369\x74696769\x69006c5f\x6c617773\x5f6d756e\x775f006c\x6f747363\x6c5f66\x7363775f\x646c6f74\x6d006c5f\x656c7262\x6c5f6e\x7472626d\x5f63776f\x5f5f006c\x65737773\x707574\x646c5f5f\x616f74\x72665f5f\x74646565\x5f00616f\x646c685f\x616f74\x74645f5f\x5f00616f\x7464685f\x5f00616f\x7066735f\x74696e69\x73735f00\x666e6163\x76006c5f\x61637373\x5f00666e\x63737376\x5f666e61\x5f5f006c\x61687773\x66756274\x635f5f00\x6e61656c\x5f007075\x34637261\x646e6172\x755f6d6f\x6f66696e\x6d006d72\x7269646b\x72637700\x626d6f74\x735f5f00\x69666572\x5f006c6c\x5f726478\x6c6f6f62\x64785f00\x6d705f72\x5f007061\x5f726478\x65666572\x636e6572\x64780065\x6d705f72\x696c7061\x705f7473\x5f007274\x73646e65\x65767265\x5f00746e\x73746567\x65767265\x5f00746e\x73746573\x65767265\x5f00746e\x73746573\x65767265\x725f746e\x6e655f00\x72657364\x746e6576\x5f00725f\x73746567\x65767265\x725f746e\x65735f00\x6f727074\x6e656f74\x725f74\x7465675f\x746f7270\x746e656f\x5f00725f\x70646e65\x6f746f72"... wlen = 140187720227632 #7 0x00000001cb0598a0 in main (argc=1, argv=0x7f7fff441df0) at /usr/src/external/bsd/nvi/dist/cl/cl_main.c:135 reenter = 1 clp = 0x77f609502800 gp = 0x77f609501000 wp = 0x77f609502400 rows = 38 cols = 136 rval = p_av = t_av = ttype = 0x7f7fff4425b9 "screen" (gdb) quit