Hi! I was about finished for the night, but then I thought to recompile option.c this way:
$ cd src/vim-gtk $ touch option.c $ make PERL_CFLAGS="$(perl -MExtUtils::Embed -e ccopts) -g -O0 -fno-omit-frame-pointer" | gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/i386-kfreebsd-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-kfreebsd-gnu/glib-2.0/include -I/usr/include/freetype2 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/i386-kfreebsd-gnu/perl/5.24/CORE -g -O0 -fno-omit-frame-pointer -o objects/option.o option.c (all $*_CFLAGS were undefined except for PERL_CFLAGS, plus my additions) and I finally got a backtrace from gdb! | #0 0x0810d45b in parse_cino (buf=0x82eebe0) at misc1.c:6955 | p = 0x0 | l = <optimized out> | digits = <optimized out> | n = <optimized out> | divider = <optimized out> | fraction = 0 | sw = 0 | #1 0x0813cedd in check_buf_options (buf=0x82eebe0) at option.c:5518 | No locals. | #2 0x08145dd1 in buf_copy_options (buf=0x82eebe0, flags=2) at option.c:10916 | should_copy = 1 | save_p_isk = 0x0 | dont_do_help = 137175392 | did_isk = 0 | #3 0x0805e51e in buflist_new (ffname=<optimized out>, sfname=<optimized out>, lnum=1, flags=2) at buffer.c:2056 | buf = 0x82eebe0 | st = {st_dev = 4294967295, st_ino = 288, st_mode = 19273, __pad_mode = 10485, st_nlink = 55768, __pad_nlink = 2094, st_uid = 176, st_gid = 0, | st_rdev = 12, st_atim = {tv_sec = 135342037, tv_nsec = 176}, st_mtim = {tv_sec = 0, tv_nsec = 137288152}, st_ctim = {tv_sec = 134727816, | tv_nsec = 137124284}, st_size = 137177536, st_blocks = 756049599198, st_blksize = 1, st_flags = 0, st_gen = 135075162, __unused1 = { | 137438953482, 578216775452196874}} | #4 0x081d4f1d in win_alloc_firstwin (oldwin=oldwin@entry=0x0) at window.c:3477 | No locals. | #5 0x081d4f8a in win_alloc_first () at window.c:3430 | No locals. | #6 0x081fef52 in common_init (paramp=0x82d8e20 <params>) at main.c:983 | No locals. | #7 0x08053809 in main (argc=<optimized out>, argv=<optimized out>) at main.c:173 | i = <optimized out> It was invoked with: $ cd po $ ktrace -di -- ../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq af.po and the ktrace ends the same way as usual: | 58482 101232 vim 0.011392 CALL stat(0x82ed890,0xbfbfe300) | 58482 101232 vim 0.011397 NAMI "/usr/local/share/vim/vim80" | 58482 101232 vim 0.011410 RET stat -1 errno 2 No such file or directory | 58482 101232 vim 0.011414 CALL stat(0x82ed8b0,0xbfbfe300) | 58482 101232 vim 0.011416 NAMI "/usr/local/share/vim/runtime" | 58482 101232 vim 0.011421 RET stat -1 errno 2 No such file or directory | 58482 101232 vim 0.011454 CALL ioctl(0x1,0x402c7413,0xbfbfe3d4) | 58482 101232 vim 0.011459 RET ioctl 0 | 58482 101232 vim 0.011513 PSIG SIGSEGV SIG_DFL code=SEGV_MAPERR Regards, -- Steven Chamberlain ste...@pyro.eu.org
signature.asc
Description: Digital signature