bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: [GNU sed] bug report


From: Bob Proulx
Subject: Re: [GNU sed] bug report
Date: Sun, 26 Oct 2003 09:47:23 -0700
User-agent: Mutt/1.3.28i

Khanh-Dang wrote:
> I have discovered a bug in GNU sed :
> here is a shell session :
> 
> $ echo "':" | sed "s/\(.*\)\'://"
> Segmentation fault
> $ sed --version
> GNU sed version 4.0.7
> I'm am working on a GNU/Linux system and sed was compiled with gcc 3.2.3 
> on a Gentoo distribution.
> The bug is also reproductible with GNU sed version 4.05, on a RedHat 9 
> system.
>
> There is no bug when typing the same command but without the backslash 
> before the char ':
> 
> $ echo "':" | sed "s/\(.*\)'://"

What version of glibc are you using?  I don't use either RH or Gentoo
and so I do not know what glibc version they ship.  Your symptoms look
like glibc-2.3.1.

I can reproduce your problem using glibc-2.3.1 on ia64.  I have run
into several regular expression problems in that particular version.
This only seems to happen when the RE is not completely clean.  As in
the above because you do not need to escape the single quote.

But older versions of glibc are fine and in particular newer glibc
versions are fine for me as well.  I believe if you update your glibc
library you will resolve your problem.  The problem is gone for me in
glibc-2.3.2.

Bob




reply via email to

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