Re: Assert triggered during RE_compile_and_cache

From: Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Assert triggered during RE_compile_and_cache
Date: 2021-08-05 20:49:00
Message-ID: 7F9BFA6F-9BC6-4A27-BFA1-2F01682BD644@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Aug 5, 2021, at 1:38 PM, Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com> wrote:
>
> +select 'vyrlvyrlwvqko' ~ '(?:(?:((.))))((\2)\1.){0,0}?';

I've boiled it down a bit more:

+select '' ~ '()\1{0}';
+ ?column?
+----------
+ t
+(1 row)
+
+select '' ~ '()(\1){0}';
+ ?column?
+----------
+ t
+(1 row)
+
+select '' ~ '(())\2{0}';
+ ?column?
+----------
+ t
+(1 row)
+
+select '' ~ '(())(\2){0}';
+server closed the connection unexpectedly
+ This probably means the server terminated abnormally
+ before or while processing the request.
+connection to server was lost

Any ideas?


Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Dilger 2021-08-05 21:37:21 Re: Another regexp performance improvement: skip useless paren-captures
Previous Message Mark Dilger 2021-08-05 20:38:58 Assert triggered during RE_compile_and_cache