Vim.8.1.2102 - 32 bits on windows SegFault

38 views
Skip to first unread message

Ni Va

unread,
Sep 30, 2019, 5:45:44 AM9/30/19
to vim_dev
Hi,


Since same compilation under windows 10 MSYS2 32bits to build , I got a seg fault on gvim launch.
Sorry but gdb didn't tell me exact source.

Thank you in advance.


This is my build command :
make -f Make_ming.mak OLE=yes DEBUG=yes GUI=yes XPM=no DIRECTx=yes DYNAMIC_LUA=yes LUA=./lua-5.3.5/src LUA_VER=53 PYTHON3=/c/Python37-32 DYNAMIC_PYTHON3=yes PYTHON3_VER=37 RUBY=C:/Ruby26 DYNAMIC_RUBY=yes RUBY_VER=26 RUBY_API_VER_LONG=2.6.0 TERMINAL=yes EVENT_LOOP=yes

$ gdb /d/Logiciels/Vim/vim81/gvimd.exe
GNU gdb (GDB) 8.3
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 "i686-w64-mingw32".
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 D:/Logiciels/Vim/vim81/gvimd.exe...
(gdb) dir c:/users/foo.bar/source/Vim.8.1.2102/src
Source directories searched: c:/users/foo.bar/source/Vim.8.1.2102/src;$cdir;$cwd
(gdb)
(gdb)
(gdb) run
Starting program: D:\Logiciels\Vim\vim81\gvimd.exe
[New Thread 12392.0x1e48]
[New Thread 12392.0x37dc]
[New Thread 12392.0x359c]
warning: mincore\com\oleaut32\typelib\tlibapi.cpp(2279)\OLEAUT32.dll!75345116: (caller: 75344EB5) ReturnHr(1) tid(1fdc) 8002801D Biblioth▒que non inscrite.
Thread 1 received signal SIGSEGV, Segmentation fault.
0x765b6cb3 in strcat () from C:\WINDOWS\System32\msvcrt.dll


Christian Brabandt

unread,
Sep 30, 2019, 7:28:36 AM9/30/19
to vim_dev

On Mo, 30 Sep 2019, Ni Va wrote:

> Hi,
>
>
> Since same compilation under windows 10 MSYS2 32bits to build , I got a seg
> fault on gvim launch.
> Sorry but gdb didn't tell me exact source.
>
> Thank you in advance.

try starting without any configuration files to rule plugins and
settings out. Also, try starting gvim.exe with -f so it doesn't fork.

Does it also happen with vim.exe?



Best,
Christian
--
Affe:
ein Tier, das auf Bäumen lebt, besonders gern auf Stammbäumen.

Ni Va

unread,
Sep 30, 2019, 7:55:28 AM9/30/19
to vim_dev
Found that this command call system('which msvcrt-ruby260.dll') causes segfault under windows, which does not exist.
Surprised that it causes segfault.

Thank you.

Ken Takata

unread,
Sep 30, 2019, 9:17:36 PM9/30/19
to vim_dev
Hi,


2019/9/30 Mon 20:55:28 UTC+9 Ni Va wrote:
Found that this command call system('which msvcrt-ruby260.dll') causes segfault under windows, which does not exist.
Surprised that it causes segfault.

Thank you.

Can you bisect which version causes this issue?
If you want to get more detail information on gdb, try adding the -g option to CFLAGS by editing Make_cyg_ming.mak.

Regards,
Ken Takata

Ni Va

unread,
Oct 1, 2019, 6:51:45 AM10/1/19
to vim_dev
This appears since v8.1.2092 with call system('which msvcrt-ruby260.dll') in _vimrc.

Here is gdb output:
(gdb) run
Starting program: D:\Logiciels\Vim\vim81\gvimd.exe
[New Thread 5208.0x248c]
[New Thread 5208.0x186c]
[New Thread 5208.0x24f4]
warning: mincore\com\oleaut32\typelib\tlibapi.cpp(2279)\OLEAUT32.dll!75325116: (caller: 75324EB5) ReturnHr(1) tid(d54) 8002801D Biblioth▒que non inscrite.

Thread 1 received signal SIGSEGV, Segmentation fault.
0x77696cb3 in strcat () from C:\WINDOWS\System32\msvcrt.dll

Christian Brabandt

unread,
Oct 1, 2019, 6:57:03 AM10/1/19
to vim_dev

On Di, 01 Okt 2019, Ni Va wrote:

> This appears since v8.1.2092 with call system('which msvcrt-ruby260.dll') in _vimrc.
>
> Here is gdb output:
> (gdb) run
> Starting program: D:\Logiciels\Vim\vim81\gvimd.exe
> [New Thread 5208.0x248c]
> [New Thread 5208.0x186c]
> [New Thread 5208.0x24f4]
> warning: mincore\com\oleaut32\typelib\tlibapi.cpp(2279)\OLEAUT32.dll!75325116: (caller: 75324EB5) ReturnHr(1) tid(d54) 8002801D Biblioth▒que non inscrite.

Can you try 8.1.2105?


Best,
Christian
--
Früher rasierte man sich, wenn man Beethoven hören wollte, jetzt hört
man Beethoven, wenn man sich rasieren will.
-- Peter Bamm

Ni Va

unread,
Oct 1, 2019, 7:54:51 AM10/1/19
to vim_dev
Fixed since 8.1.2105.
Thank you !
Reply all
Reply to author
Forward
0 new messages