Thursday, July 11, 2019

Re: Vim crashes with "Caught deadly signal ABRT" unless launched without .vimrc

'Ottavio Caruso' via vim_use <vim_use@googlegroups.com> wrote:

> [Apologies if you have already received this email. I have not seen it
> on the web interface, so I'm re-sending it.]
>
> Hi all,
>
> I'd like to have the opinion of this list before reporting this issue
> as a bug on github.
>
> I have compiled and installed Vim using pkgsrc on my Linux Mint Debian Edition.
> I've already reported the issue on the pkgsrc-users list and it has
> been suggested that I report the issue upstream.
>
> The build has run fine, but, and this seems to be a common failure,
> when Vim is launched, it crashes like this:
>
> $vim
> Vim: Caught deadly signal
> Vim: Finished.
>
> Full vim --version here:
> http://paste.debian.net/hidden/ded7a246/
>
> Full build log here:
> http://paste.debian.net/hidden/5ebf5480/
>
> I've made a gdb capture here:
> http://paste.debian.net/hidden/4ca4bed2/
>
> Temporary workarounds:
>
> 1) `vim -u NONE` # works, but without modules
>
> 2) recompiling with the option: "CFLAGS=-g INSTALL_UNSTRIPPED=yes"
> produces a binary without crashes.
>
> Any input will be appreciated.

Your links don't work unfortunately.

My guess is that you did not build with:

-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1

Without this, Vim crashes at startup.

Normally the configure script should set those
compilation flags but if you override it, you may
run into the problem.

Other things to try:

1) run vim with valgrind, which will report memory errors
if any:

$ valgrind --num-callers=50 --track-origins=yes ./vim 2> vg.log

Then look at vg.log

2) You can also build with asan (address sanitizer).
Uncomment out this line in vim/src/Makefile:

SANITIZER_CFLAGS = -g -O0 -fsanitize=undefined -fno-omit-frame-pointer

Then:

$ cd vim/src
$ make clean ; make -j8
$ ./vim 2> asan.log

And look into the asan.log for memory errors.

Regards
Dominique

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAON-T_jer9KM85uvXqT8brfNTx0E37n2F1yDtim%3DONVN5gfxRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments: