[#83773] [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769 — usa@...
Issue #14108 has been updated by usa (Usaku NAKAMURA).
9 messages
2017/11/15
[#83774] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— Eric Wong <normalperson@...>
2017/11/15
usa@garbagecollect.jp wrote:
[#83775] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— "U.NAKAMURA" <usa@...>
2017/11/15
Hi, Eric
[#83779] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— Eric Wong <normalperson@...>
2017/11/15
"U.NAKAMURA" <usa@garbagecollect.jp> wrote:
[#83781] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— "U.NAKAMURA" <usa@...>
2017/11/15
Hi, Eric,
[#83782] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— Eric Wong <normalperson@...>
2017/11/15
IlUuTkFLQU1VUkEiIDx1c2FAZ2FyYmFnZWNvbGxlY3QuanA+IHdyb3RlOgo+IEhpLCBFcmljLAo+
[ruby-core:83743] [Ruby trunk Bug#14101] Unreliable handling of groups nested within absent/absence operator of regex
From:
lord.thom@...
Date:
2017-11-12 15:55:38 UTC
List:
ruby-core #83743
Issue #14101 has been reported by tom-lord (Tom Lord). ---------------------------------------- Bug #14101: Unreliable handling of groups nested within absent/absence operator of regex https://bugs.ruby-lang.org/issues/14101 * Author: tom-lord (Tom Lord) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.5.0 * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- The new absent/absence regex operator, added to Onigmo and bundled into ruby since v2.4.1, supports nested groupings such as: ~~~ruby "abb".match /(?~(a|b)b)/ => #<MatchData "a" 1:"a"> ~~~ However, under some scenarios (I haven't been able to determine the exact cause), the execution fails: ~~~ ruby "abb".match /(?~(a|c)c)/ ArgumentError: negative string size (or size too big) from (irb):1:in `scan' ~~~ Interestingly, when running the above in `pry`, we see some malformed object created: ~~~ ruby "abb".match /(?~(a|c)c)/ #=> #<MatchData "abb" 1:#<MatchData:0x3fd47ec398d4> "abb".scan /(?~(a|c)c)/ #=> ArgumentError: negative string size (or size too big) ~~~ I am unclear whether this bug belongs in the ruby project, or Onigmo. Documentation on the operator is still a work in progress (https://github.com/k-takata/Onigmo/issues/87); perhaps nested groups should not be allowed by the engine? -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>