Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 263 by [email protected]: Malformed YAML hogs CPU for a long time
https://code.google.com/p/vim/issues/detail?id=263

What steps will reproduce the problem?
1. take puppet (ruby) source code (*) and either paste it into open YAML file, insert it there with :r or rename the puppet file to *.yml and open it with vi
2. wait for a **long** time while vi spins CPU
......
3. Finally "pkill -9 vi" from another terminal because it's still unresponsive


(*) The problem might be specific to a code where YAML tries to parse regexps or st. like that. This is a file that causes several second hangup, by adding characters to 'baz' string the lag increases dramatically:

cat test.yml
class foo {
        bar {
baz => "aaaaaaaaaaaaaaaa+bbbbbbbbbbbbbb+cccccccccccccc/dddddddddddddd+/eeeeeeeeeeeeee+ff/ggggggggggggg/hhhhhhhhhhhhhh/jjjj+kk+lllllllllllll/mmmmmmmmmmmmmm//nnnnnnnnnnnn+ooooooooooooooo=",
        }
}


What version of the product are you using? On what operating system?

Ubuntu 14.04.1 LTS - 2:7.4.052-1ubuntu3

Debian GNU/Linux jessie/sid - 2:7.4.430-1

Ubuntu 12.04.5 LTS - 2:7.3.429-2ubuntu2.1 - this one shows much less lag, but this might be caused by the fact that it's a desktop system unlike previous two.




Attachments:
        test2.yml  657 bytes

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui