pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org, Aleksander Alekseev <aleksander@timescale.com>
Cc: dhyan@nataraj.su
Subject: Re: BUG #18708: regex problem: (?:[^\d\D]){0} asserts with "lp->nouts == 0 && rp->nins == 0"
Date: Sat, 16 Nov 2024 11:02:58 -0500
Message-ID: <2745175.1731772978@sss.pgh.pa.us> (raw )
In-Reply-To: <661fd81b-f069-8f30-1a41-e195c57449b4@gmail.com >
References: <18708-f94f2599c9d2c005@postgresql.org >
<CAJ7c6TMPSrcbzkX0ePnNTbh7M22hRiPfD0KOcW4L9YjdbnF0Ug@mail.gmail.com >
<2242483.1731627374@sss.pgh.pa.us >
<2344149.1731636867@sss.pgh.pa.us >
<CAJ7c6TMXLaoBB6GmgkkSRH_WoLxqSU_K6ORnw9rP+3JexuKSMQ@mail.gmail.com >
<CAJ7c6TP+0MHu7t3QDdXHMf1DW9r56qnyr_7NsTQOB5+pKQEkcg@mail.gmail.com >
<2631851.1731715737@sss.pgh.pa.us >
<661fd81b-f069-8f30-1a41-e195c57449b4@gmail.com >
Alexander Lakhin <exclusion@gmail.com> writes:
> Please look at the hornet 's failure on processing a test query added here:
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=hornet&dt=2024-11-15%2023%3A49%3A38
Hmm... for the archives' sake, that looks like
select * from test_regex('[^\\d\\D]', '0123456789abc*', 'ILPE');
- test_regex
- --------------------------------------------------------
- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE,REG_UIMPOSSIBLE}
- (1 row)
-
+ ERROR: invalid regular expression: out of memory
-- check char classes' handling of newlines
I'm not sure what to make of it. That regex shouldn't consume very
much memory. To confirm that, I stepped through it and found that
newstate() is reached 14 times and newarc() 35 times. That's a
pretty tiny amount of memory, and there are other regexps in the
tests that are far larger.
Moreover, no other animal has shown this, including hornet itself
on the v16 branch. (It's only run this test in v15 and v16 so far,
so that's not a lot of data points.)
I'm inclined to guess this was some weird momentary glitch. If it
reproduces then I'll look closer.
regards, tom lane
view thread (16+ messages) latest in thread
Message-ID: <2745175.1731772978@sss.pgh.pa.us>
Permalink: ../2745175.1731772978@sss.pgh.pa.us/
Also on: postgresql.org/message-id/2745175.1731772978@sss.pgh.pa.us
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, exclusion@gmail.com, aleksander@timescale.com, dhyan@nataraj.su
Subject: Re: BUG #18708: regex problem: (?:[^\d\D]){0} asserts with "lp->nouts == 0 && rp->nins == 0"
In-Reply-To: <2745175.1731772978@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox