On Fri, Jan 01, 2021 at 12:57:52PM +0100, Dominique Pellé <[email protected]> wrote:
> raf <[email protected]> wrote: > > > On Thu, Dec 31, 2020 at 10:24:55AM +0100, Dominique Pellé > > <[email protected]> wrote: > > > > > raf <[email protected]> wrote: > > > > > > > Hi, > > > > > > > > Happy New Year Bram et al! > > > > > > > > I just tried to compile and test vim for the > > > > first time in ages and got a segmentation fault. > > > > > > > > Environment: > > > > > > > > macos-10.14.6 > > > > vim-8.2 patches 1-2251 > > > > XQuartz 2.7.11 (xorg-server 1.18.4) > > > > (plus other xorg stuff via macports might be relevant) > > > > > > Hi > > > > > > Athena GUI works fine for me on Linux x86_6. > > > > > > Can you try building Vim with the address sanitizer (asan)? > > > It should only be a matter of uncommenting this line vim > > > vim/src/Makefile: > > > > > > SANITIZER_CFLAGS = -g -O0 -fsanitize=address -fno-omit-frame-pointer > > > > > > Then: > > > > > > $ make clean ; make > > > > > > Then try to reproduce the crash. If a memory error happens, asan will > > > dump useful information on stderr. You may need to redirect stderr > > > like this: > > > > > > $ cd vim/src ; ./vim 2> asan.log > > > > With address sanitizing, it doesn't crash. > > Maybe I should install it like that. :-) > > I wonder if I'd notice the performance penalty. > > I assume you checked the content of the file asan.log > for errors. No, there was no stderr output with address sanitizing turned on. I tried several combinations (little or no optimization, with and without -fno-omit-frame-pointer), and it always crashes without -fsanitize=address but it didn't with -fsanitize=address, and there was no asan output. With -fsanitize=undefined, there was this: message_test.c:185:40: runtime error: division by zero message_test.c:190:40: runtime error: division by zero message_test.c:195:41: runtime error: division by zero eval.c:3161:15: runtime error: division by zero eval.c:3161:15: runtime error: division by zero eval.c:3161:15: runtime error: division by zero make[2]: *** [test_gui.res] Segmentation fault: 11 make[1]: *** [scripttests] Error 2 make: *** [test] Error 2 But they all look deliberate and OK, and they aren't related to the test_gui.vim that crashed. > asan probably makes vim 3x times slower or so. > It can be acceptable if you're really willing to discover > and report bugs in Vim. > > Dominique Thanks for your help. I'm assuming it probably won't really be a problem in practice. I've started using it anyway, and it's all good so far. cheers, raf -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20210102001208.6m76qwewhagh7nyl%40raf.org.
