Vim upstream fixed issue with dynamic Perl load in https://github.com/vim/vim/commit/55460da26c2756ec057c03c7d8641eda861bfcd2 - previously Perl was dynamically linked with VIm, which ended up with Vim depending on perl-libs, which was unintentional. Since the new patchlevel Vim started to segfault when perl module is used. The segfault happens with Perl in all current Fedora releases (F37+). I've tried to compile Perl 5.38 by myself from upstream tarball and segfault disappeared. The issue is not present in Ubuntu either (compiled upstream Vim with their local Perl). I'll attach 'perl -V' from my compilation (Fedora 40) and from Ubuntu 23.04, and backtrace from Fedora 40 with packaged Perl. Reproducible: Always Steps to Reproduce: $ sudo dnf -y install https://kojipkgs.fedoraproject.org//packages/vim/9.0.1822/1.fc40/noarch/vim-data-9.0.1822-1.fc40.noarch.rpm https://kojipkgs.fedoraproject.org//packages/vim/9.0.1822/1.fc40/noarch/vim-filesystem-9.0.1822-1.fc40.noarch.rpm https://kojipkgs.fedoraproject.org//packages/vim/9.0.1822/1.fc40/x86_64/vim-common-9.0.1822-1.fc40.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/vim/9.0.1822/1.fc40/x86_64/vim-enhanced-9.0.1822-1.fc40.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/vim/9.0.1822/1.fc40/x86_64/vim-minimal-9.0.1822-1.fc40.x86_64.rpm $ sudo dnf -y install perl-devel $ vim -c 'perl print 'hello'' -c 'q!' Vim: Caught deadly signal SEGV Vim: Finished. Segmentation fault (core dumped) Actual Results: Segfault Expected Results: No segfault, return value 0
Created attachment 1986524 [details] Full backtrace
Created attachment 1986525 [details] perl -V from Fedora 40, manually built
Created attachment 1986526 [details] perl -V - shipped in Ubuntu
In case you would like to try building Vim from upstream, here are steps (in Fedora 40 virtual machine from tmt): # dnf -y install libtool git-core # dnf download --source vim # dnf -y builddep *.src.rpm # git clone https://github.com/vim/vim # cd vim # make distclean && export CFLAGS=""; export CFLAGS="$CFLAGS -fPIC -fPIE"; ./configure --enable-perlinterp=dynamic --with-x=no --enable-gui=no && make && ./src/vim -c 'perl print 'hello'' -c 'q!'
Thanks for the report. I can reproduce the issue. I look at it.
Perl works with the newest Vim patchlevel.
The current CI run still fails, but no due Perl https://artifacts.dev.testing-farm.io/79be01d0-25f2-4b02-be54-27983d6e8b82/ .