$ gawk --version GNU Awk 5.3.0, API 4.0 .... $ gawk -v b=1111-22-33 -v r="^([0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?)?$" ' END { match(b,"^([^,]*)(,(.*))?$",m) print m[1] print match(m[1],r) print match(m[3],r) } ' /dev/null 1111-22-33 1 gawk: cmd. line:6: fatal error: internal error Aborted $
This seems like something that should probably be reported upstream unless you have reason to believe it is gentoo-specific?
(In reply to Greg Kubaryk from comment #1) > This seems like something that should probably be reported upstream unless > you have reason to believe it is gentoo-specific? Since the above code worked in umpteen versions of "gawk" up to and including 5.2.2, the new version potentially breaks plenty of "gawk" programmes. So it could at least be again set to non-stable or even be soft-blocked. Apart from that I simply cannot judge whether or not this is a Gentoo-specific bug.
I've forwarded it upstream at https://lists.gnu.org/archive/html/bug-gawk/2024-01/msg00013.html. They usually respond very quickly to bugs so I'll wait for that first.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f8ef094bd4fb0dfaf7ab70fc79fc826eb0540b8 commit 6f8ef094bd4fb0dfaf7ab70fc79fc826eb0540b8 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-01-28 23:31:09 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-28 23:31:24 +0000 sys-apps/gawk: backport str2wstr fix Closes: https://bugs.gentoo.org/921503 Signed-off-by: Sam James <sam@gentoo.org> sys-apps/gawk/files/gawk-5.3.0-str2wstr.patch | 193 ++++++++++++++++++++++++++ sys-apps/gawk/gawk-5.3.0-r1.ebuild | 140 +++++++++++++++++++ 2 files changed, 333 insertions(+)