Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG] Long line makes pattern matching (by //) hog Zsh
- X-seq: zsh-workers 38613
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [BUG] Long line makes pattern matching (by //) hog Zsh
- Date: Sun, 5 Jun 2016 16:36:12 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=pNYwCSTRCQNx/cV6lIppo6A66fIJORX3CX/DJ4cMKG8=; b=02YIYnm1odnmPa4ZoQoBaNSkUQlKCFKdhEbfuNxkcLRe24N94p3hWMcmOtjd1/fZjl gdESy/tE0hEWAo+Q3EKPFDlEyBqlrz+p6ZlIqCNj3AmD8G4Nd/2Pe/+LQxdhxedpzzjj TGgNmvYp4B3W4DIIAaDTyPGN8WXn7aoJtkA1Wy4RQRFToozJYoedchIWGBXuFXfxJLso nSG37xH8BDaKr+auExSEx3RizDwXqcpqbUOnEbycYEGI/9qFfBjCz9ATYK8/Hk05PAhE f+A+5J7DndWzhQSYdnWTtR6x0s21vJx7kxdfbsFR8JShBJ5ve+tHJzTNkgIYMei3cVvH 1u7Q==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
attached is a test program that in general blocks Zsh from ending.
Github user kapsh reported "fatal error: out of heap memory" and I
investigated that it's about long lines in his data. The pattern:
([^ /\\\\]##[^0-9/\\\\ ]##[^/\\\\]#(#e))
is:
1. not backslash nor slash nor space [^ /\\\\]##
2. not number, slash, backslash, space [^0-9/\\\\ ]##
3. not slash, backslash [^/\\\\]#
4. end of line (#e)
Removing first segment makes Zsh end after a couple of seconds (but
not on zsh-5.0.8). Tested on zsh-5.0.2, 5.0.8, 5.2
Best regards,
Sebastian Gniazdowski
Attachment:
2pat.zsh
Description: Binary data
Messages sorted by:
Reverse Date,
Date,
Thread,
Author