Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

crashing on file open/exit with segmentation fault after installation #158

Open
aishpant opened this issue Sep 21, 2017 · 3 comments
Open

Comments

@aishpant
Copy link

aishpant commented Sep 21, 2017

I am running linux on a virtual box. These are the configurations:

ubuntu 16.04 4.4.0-64-generic
vim 7.4
gcc 5.4.0
lua 5.2

I ran the following commands for installation:

apt-get install liblua5.2-dev lua5.2 
cd ~/.vim/bundle/color_coded
mkdir build && cd build
cmake ..
make && make install 
make clean && make clean_clang

This is the error I see when I try to open a .c file:

terminate called without an active exception
Vim: Caught deadly signal SEGV                  [1]    8501 segmentation fault (core dumped)  vim hello-module.c
Vim: Finished.  

I do not have luajit installed. When I open any other file it opens up normally but crashes on exit:

*** Error in `vim': free(): invalid pointer: 0x000055e5e62a6588 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fa71f1717e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7fa71f17a37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7fa71f17e53c]
/lib/x86_64-linux-gnu/libc.so.6(+0x39ff8)[0x7fa71f133ff8]
/lib/x86_64-linux-gnu/libc.so.6(+0x3a045)[0x7fa71f134045]
vim(mch_exit+0x4b)[0x55e5e5141fab]
vim(+0xc2341)[0x55e5e50a1341]
vim(do_cmdline+0x10f7)[0x55e5e50a77e7]
vim(+0x13ac25)[0x55e5e5119c25]
vim(normal_cmd+0x8d1)[0x55e5e51231c1]
vim(main_loop+0x405)[0x55e5e5211aa5]
vim(main+0x163d)[0x55e5e504148d]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fa71f11a830]
vim(_start+0x29)[0x55e5e5042739]
======= Memory map: ========
55e5e4fdf000-55e5e5285000 r-xp 00000000 08:01 1321804                    /usr/bin/vim.gtk3
55e5e5484000-55e5e5492000 r--p 002a5000 08:01 1321804                    /usr/bin/vim.gtk3
55e5e5492000-55e5e54aa000 rw-p 002b3000 08:01 1321804                    /usr/bin/vim.gtk3
55e5e54aa000-55e5e54b7000 rw-p 00000000 00:00 0 
55e5e6072000-55e5e6397000 rw-p 00000000 00:00 0                          [heap]
7fa70c000000-7fa70c021000 rw-p 00000000 00:00 0 
7fa70c021000-7fa710000000 ---p 00000000 00:00 0 
7fa711dfd000-7fa711dfe000 ---p 00000000 00:00 0 
7fa711dfe000-7fa7125fe000 rw-p 00000000 00:00 0 
7fa7125fe000-7fa712609000 r-xp 00000000 08:01 263783                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
7fa712609000-7fa712808000 ---p 0000b000 08:01 263783                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
7fa712808000-7fa712809000 r--p 0000a000 08:01 263783                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
7fa712809000-7fa71280a000 rw-p 0000b000 08:01 263783                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
7fa71280a000-7fa712810000 rw-p 00000000 00:00 0 
7fa712810000-7fa71281b000 r-xp 00000000 08:01 263786                     /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7fa71281b000-7fa712a1a000 ---p 0000b000 08:01 263786                     /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7fa712a1a000-7fa712a1b000 r--p 0000a000 08:01 263786                     /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7fa712a1b000-7fa712a1c000 rw-p 0000b000 08:01 263786                     /lib/x86_64-linux-gnu/libnss_nis-2.23.so
7fa712a1c000-7fa712a32000 r-xp 00000000 08:01 263488                     /lib/x86_64-linux-gnu/libnsl-2.23.so
7fa712a32000-7fa712c31000 ---p 00016000 08:01 263488                     /lib/x86_64-linux-gnu/libnsl-2.23.so
7fa712c31000-7fa712c32000 r--p 00015000 08:01 263488                     /lib/x86_64-linux-gnu/libnsl-2.23.so
7fa712c32000-7fa712c33000 rw-p 00016000 08:01 263488                     /lib/x86_64-linux-gnu/libnsl-2.23.so
7fa712c33000-7fa712c35000 rw-p 00000000 00:00 0 
7fa712c35000-7fa712c3d000 r-xp 00000000 08:01 263792                     /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7fa712c3d000-7fa712e3c000 ---p 00008000 08:01 263792                     /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7fa712e3c000-7fa712e3d000 r--p 00007000 08:01 263792                     /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7fa712e3d000-7fa712e3e000 rw-p 00008000 08:01 263792                     /lib/x86_64-linux-gnu/libnss_compat-2.23.so
7fa712e3e000-7fa7158c5000 r-xp 00000000 08:01 400137                     /home/aishwarya/.vim/bundle/color_coded/build/clang+llvm-3.9.0-x86_64-opensuse13.2/lib/libclang.so.3.9
7fa7158c5000-7fa715ac5000 ---p 02a87000 08:01 400137                     /home/aishwarya/.vim/bundle/color_coded/build/clang+llvm-3.9.0-x86_64-opensuse13.2/lib/libclang.so.3.9
7fa715ac5000-7fa715e47000 r--p 02a87000 08:01 400137                     /home/aishwarya/.vim/bundle/color_coded/build/clang+llvm-3.9.0-x86_64-opensuse13.2/lib/libclang.so.3.9
7fa715e47000-7fa715e48000 rw-p 02e09000 08:01 400137                     /home/aishwarya/.vim/bundle/color_coded/build/clang+llvm-3.9.0-x86_64-opensuse13.2/lib/libclang.so.3.9
7fa715e48000-7fa715e7b000 rw-p 00000000 00:00 0 
7fa715e7b000-7fa71706c000 r-xp 00000000 08:01 289450                     /home/aishwarya/.vim/bundle/color_coded/color_coded.so
7fa71706c000-7fa71726c000 ---p 011f1000 08:01 289450                     /home/aishwarya/.vim/bundle/color_coded/color_coded.so
7fa71726c000-7fa717331000 r--p 011f1000 08:01 289450                     /home/aishwarya/.vim/bundle/color_coded/color_coded.so
7fa717331000-7fa717343000 rw-p 012b6000 08:01 289450                     /home/aishwarya/.vim/bundle/color_coded/color_coded.so
7fa717343000-7fa717347000 rw-p 00000000 00:00 0 
7fa717347000-7fa71761f000 r--p 00000000 08:01 1311758                    /usr/lib/locale/locale-archive
7fa71761f000-7fa717631000 r-xp 00000000 08:01 267231                     /lib/x86_64-linux-gnu/libgpg-error.so.0.17.0
7fa717631000-7fa717831000 ---p 00012000 08:01 267231                     /lib/x86_64-linux-gnu/libgpg-error.so.0.17.0
7fa717831000-7fa717832000 r--p 00012000 08:01 267231                     /lib/x86_64-linux-gnu/libgpg-error.so.0.17.0
7fa717832000-7fa717833000 rw-p 00013000 08:01 267231                     /lib/x86_64-linux-gnu/libgpg-error.so.0.17.0
7fa717833000-7fa71790b000 r-xp 00000000 08:01 262354                     /lib/x86_64-linux-gnu/libgcrypt.so.20.0.5
7fa71790b000-7fa717b0a000 ---p 000d8000 08:01 262354                     /lib/x86_64-linux-gnu/libgcrypt.so.20.0.5
7fa717b0a000-7fa717b0b000 r--p 000d7000 08:01 262354                     /lib/x86_64-linux-gnu/libgcrypt.so.20.0.5
7fa717b0b000-7fa717b13000 rw-p 000d8000 08:01 262354                     /lib/x86_64-linux-gnu/libgcrypt.so.20.0.5
7fa717b13000-7fa717b14000 rw-p 00000000 00:00 0 
7fa717b14000-7fa717b35000 r-xp 00000000 08:01 267254                     /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7fa717b35000-7fa717d34000 ---p 00021000 08:01 267254                     /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7fa717d34000-7fa717d35000 r--p 00020000 08:01 267254                     /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7fa717d35000-7fa717d36000 rw-p 00021000 08:01 267254                     /lib/x86_64-linux-gnu/liblzma.so.5.0.0
7fa717d36000-7fa717d4d000 r-xp 00000000 08:01 1321260                    /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0
7fa717d4d000-7fa717f4c000 ---p 00017000 08:01 1321260                    /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0
7fa717f4c000-7fa717f4d000 r--p 00016000 08:01 1321260                    /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0
7fa717f4d000-7fa717f4e000 rw-p 00017000 08:01 1321260                    /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.58.0
7fa717f4e000-7fa717f72000 r-xp 00000000 08:01 1316609                    /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.0.1
7fa717f72000-7fa718171000 ---p 00024000 08:01 1316609                    /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.0.1
7fa718171000-7fa718173000 r--p 00023000 08:01 1316609                    /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.0.1
7fa718173000-7fa718174000 rw-p 00025000 08:01 1316609                    /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.0.1
7fa718174000-7fa718179000 r-xp 00000000 08:01 1321123                    /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fa718179000-7fa718378000 ---p 00005000 08:01 1321123                    /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fa718378000-7fa718379000 r--p 00004000 08:01 1321123                    /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fa718379000-7fa71837a000 rw-p 00005000 08:01 1321123                    /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7fa71837a000-7fa71837c000 r-xp 00000000 08:01 1321112                    /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fa71837c000-7fa71857c000 ---p 00002000 08:01 1321112                    /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fa71857c000-7fa71857d000 r--p 00002000 08:01 1321112                    /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fa71857d000-7fa71857e000 rw-p 00003000 08:01 1321112                    /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7fa71857e000-7fa718584000 r-xp 00000000 08:01 1321366                    /usr/lib/x86_64-linux-gnu/libdatrie.so.1.3.3
7fa718584000-7fa718784000 ---p 00006000 08:01 1321366                    /usr/lib/x86_64-linux-gnu/libdatrie.so.1.3.3
7fa718784000-7fa718785000 r--p 00006000 08:01 1321366                    /usr/lib/x86_64-linux-gnu/libdatrie.so.1.3.3
7fa718785000-7fa718786000 rw-p 00007000 08:01 1321366                    /usr/lib/x86_64-linux-gnu/libdatrie.so.1.3.3
7fa718786000-7fa71879c000 r-xp 00000000 08:01 267225                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa71879c000-7fa71899b000 ---p 00016000 08:01 267225                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa71899b000-7fa71899c000 rw-p 00015000 08:01 267225                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa71899c000-7fa718b0e000 r-xp 00000000 08:01 1312899                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fa718b0e000-7fa718d0e000 ---p 00172000 08:01 1312899                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fa718d0e000-7fa718d18000 r--p 00172000 08:01 1312899                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fa718d18000-7fa718d1a000 rw-p 0017c000 08:01 1312899                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7fa718d1a000-7fa718d1e000 rw-p 00000000 00:00 0 
7fa718d1e000-7fa718d4e000 r-xp 00000000 08:01 1322094                    /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.9.0.1
7fa718d4e000-7fa718f4d000 ---p 00030000 08:01 1322094                    /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.9.0.1
7fa718f4d000-7fa718f4e000 r--p 0002f000 08:01 1322094                    /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.9.0.1
7fa718f4e000-7fa718f4f000 rw-p 00030000 08:01 1322094                    /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.9.0.1
7fa718f4f000-7fa718f52000 r-xp 00000000 08:01 1321262                    /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
7fa718f52000-7fa719151000 ---p 00003000 08:01 1321262                    /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
7fa719151000-7fa719152000 r--p 00002000 08:01 1321262                    /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
7fa719152000-7fa719153000 rw-p 00003000 08:01 1321262                    /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0
7fa719153000-7fa7191c2000 r-xp 00000000 08:01 1316043                    /usr/lib/x86_64-linux-gnu/libmirprotobuf.so.3
7fa7191c2000-7fa7193c1000 ---p 0006f000 08:01 1316043                    /usr/lib/x86_64-linux-gnu/libmirprotobuf.so.3
7fa7193c1000-7fa7193c4000 r--p 0006e000 08:01 1316043                    /usr/lib/x86_64-linux-gnu/libmirprotobuf.so.3
7fa7193c4000-7fa7193c5000 rw-p 00071000 08:01 1316043                    /usr/lib/x86_64-linux-gnu/libmirprotobuf.so.3
7fa7193c5000-7fa7193f3000 r-xp 00000000 08:01 1321916                    /usr/lib/x86_64-linux-gnu/libmircommon.so.5
7fa7193f3000-7fa7195f3000 ---p 0002e000 08:01 1321916                    /usr/lib/x86_64-linux-gnu/libmircommon.so.5
7fa7195f3000-7fa7195f5000 r--p 0002e000 08:01 1321916                    /usr/lib/x86_64-linux-gnu/libmircommon.so.5
7fa7195f5000-7fa7195f6000 rw-p 00030000 08:01 1321916                    /usr/lib/x86_64-linux-gnu/libmircommon.so.5
7fa7195f6000-7fa719652000 r-xp 00000000 08:01 1316445                    /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.10000.1
7fa719652000-7fa719852000 ---p 0005c000 08:01 1316445                    /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.10000.1
7fa719852000-7fa719853000 r--p 0005c000 08:01 1316445                    /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.10000.1
7fa719853000-7fa719854000 rw-p 0005d000 08:01 1316445                    /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.10000.1
7fa719854000-7fa71989e000 r-xp 00000000 08:01 266823                     /lib/x86_64-linux-gnu/libdbus-1.so.3.14.6
7fa71989e000-7fa719a9e000 ---p 0004a000 08:01 266823                     /lib/x86_64-linux-gnu/libdbus-1.so.3.14.6
7fa719a9e000-7fa719a9f000 r--p 0004a000 08:01 266823                     /lib/x86_64-linux-gnu/libdbus-1.so.3.14.6
Vim: Caught deadly signal ABRT 0004b000 08:01 266823                     /lib/x86_64-linux-gnu/libdbus-1.so.3.14.6
Error detected while processing function color_coded#exit:Vim: Finished.

line    6:
[string "vim chunk"]:1: attempt to call global 'color_coded_exit' (a nil value)
[1]    8673 abort (core dumped)  vim bad_history.sh

@jeaye
Copy link
Owner

jeaye commented Sep 22, 2017

Thanks for the detailed report! This appears to be a duplicate of #155 to me, which is open and unresolved. The issue is that some vims, like vim-gnome and vim-gtk3, ship with their own boost and loading a plugin which also links to boost, even dynamically (with the same version), seems to be causing crashes.

@buptjamin
Copy link

I encounter this problem too. Annoying!

@vikaschoudhary16
Copy link

same problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants