Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#35436 - [Vim] Vim core dumped when open a html file.

Attached to Project: Arch Linux
Opened by osily (ly50247) - Thursday, 23 May 2013, 09:23 GMT
Last edited by Thomas Dziedzic (tomd123) - Friday, 05 July 2013, 05:48 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Thomas Dziedzic (tomd123)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Vim core dumped when open a html file.

Additional info:
* vim 7.3.918-1/vim 7.3.918-2/gvim 7.3.918-1/gvim 7.3.918-2


Steps to reproduce:
vim index.html
This task depends upon

Closed by  Thomas Dziedzic (tomd123)
Friday, 05 July 2013, 05:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  gvim 7.3.1287-1
Comment by Thomas Dziedzic (tomd123) - Thursday, 23 May 2013, 13:52 GMT
works for me, please try to get your vimrc to a minimal test case for me please, make sure to disable all plugins.

also doesn't crash for me with vim -u NONE
Comment by Iru Dog (mytbk) - Thursday, 23 May 2013, 14:43 GMT
I also have this bug, and I've found setting locale to zh_CN.utf8(seems it's utf8 locales that cause this bug) will cause this bug.
The attached file is a coredump.
   coredump.xz (226.4 KiB)
Comment by Iru Dog (mytbk) - Thursday, 23 May 2013, 14:50 GMT
Up to now, I found 3 conditions necessary to cause this bug:
1. locale is zh_CN.utf8 or en_US.utf8
2. have "syntax on" in ~/.vimrc
3. the extension of the file is ".html", not others like ".c",".sh",etc
Comment by Iru Dog (mytbk) - Thursday, 23 May 2013, 15:43 GMT
PS: if I chroot into a minimalized Arch and use its vim, it's fine.
Comment by Iru Dog (mytbk) - Thursday, 23 May 2013, 16:11 GMT
This is a backtrace.
   gdb.txt (1.8 KiB)
Comment by Iru Dog (mytbk) - Friday, 24 May 2013, 01:22 GMT
I just got a minimal file that caused the crash.
Comment by Iru Dog (mytbk) - Friday, 24 May 2013, 14:35 GMT
It's strange that this bug only happens in x86_64 archlinux systems, and doesn't happen in i686.
A method to reproduce this bug is:
1. Start the computer with the archlinux-2013.05.01 iso and boot the x86_64 system, the locale is en_US.UTF8
2. Select a mirror
3. pacman -Sy vim
4. wget www.baidu.com
5. echo 'syntax on' > ~/.vimrc
6. vim index.html
And then vim crashes.
Comment by Thomas Dziedzic (tomd123) - Friday, 24 May 2013, 14:51 GMT
Thanks for the backtrace, it's been the most helpful to me since I don't have access to my dev machine currently.

I've been following vim dev and that particular error looks like a recently patched issue.

Relevant lines in vim 918 (repo version):
https://code.google.com/p/vim/source/browse/src/regexp.c?name=v7-3-918#6837
Line in vim tip:
https://code.google.com/p/vim/source/browse/src/regexp.c#6902

I would like to try to rebuild a new vim next week to see if this particular issue has been fixed.
In the mean time, you could try to build the latest vim yourself if you want to check if it indeed fixes the issue.
Comment by Iru Dog (mytbk) - Saturday, 25 May 2013, 00:51 GMT
I've just built a vim from hg(7.3.1012) and it works fine.
Comment by Iru Dog (mytbk) - Saturday, 25 May 2013, 06:06 GMT
I've just done a bisect and here's the result.

The first good revision is:
changeset: 4454:44b89b025cdf
tag: v7-3-975
user: Bram Moolenaar <bram@vim.org>
date: Mon May 20 13:44:29 2013 +0200
summary: updated for version 7.3.975
Comment by Thomas Dziedzic (tomd123) - Sunday, 26 May 2013, 21:55 GMT
Hey Iru, I got access to my dev machine today so I updated vim in [testing] to the latest patch level 1030.

Please test if this version fixes your issue. You can just cherrypick vim/gvim + vim-runtime directly out of [testing].

Although I'm not sure I will release 1030 to the general public since vim has had lots of changes applied to it recently which could break other things.

Thanks.
Comment by Iru Dog (mytbk) - Sunday, 26 May 2013, 23:19 GMT
This vim fixed this issue.
Thanks.

Loading...