bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] Segfault when using higher ascii range in regexp


From: Luuk
Subject: Re: [bug-gawk] Segfault when using higher ascii range in regexp
Date: Sun, 29 May 2016 09:38:19 +0200



On 28-05-16 21:58, Jaromir Obr wrote:
Hi,

steps to reproduce:

$ printf "a"|awk '/[\x80-\x81]/ {count++}; END {print count}'
awk: cmd. line:1: fatal error: internal error: segfault
Aborted (core dumped)

or simply:
$ printf "a"|awk '/[\x7f-\x80]/'
awk: cmd. line:1: fatal error: internal error: segfault
Aborted (core dumped)

Used SW:
  • Ubuntu 16.04 x86_64
  • gawk --version: GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0)
See the attached crashdump.

Regards

Jaromir Obr

Is that relatied to this?:
$ printf "a" | sed -r 's/[\x7f-\x80]/#/'
sed: -e _expression_ #1, char 16: Invalid collation character


$ sed --version
sed (GNU sed) 4.2.2
Copyright (C) 2012 Free Software Foundation, Inc.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]