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

Bug#187991: marked as done (libc6: regex (re_exec) segfault in UTF-8 locale [Re: grep 2.5.1 segfault, and (more) color patch (again))



Your message dated Sun, 26 Oct 2003 11:32:23 -0500
with message-id <E1ADnoV-0003Yh-00@auric.debian.org>
and subject line Bug#187991: fixed in mutt 1.5.4+20031024-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 7 Apr 2003 12:58:57 +0000
>From jim@meyering.net Mon Apr 07 07:58:56 2003
Return-path: <jim@meyering.net>
Received: from anice-201-1-1-11.abo.wanadoo.fr (elf.meyering.net) [80.13.35.11] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 192WD9-0003xI-00; Mon, 07 Apr 2003 07:58:56 -0500
Received: by elf.meyering.net (Postfix, from userid 1002)
	id 14C084351; Mon,  7 Apr 2003 14:58:24 +0200 (CEST)
To: Eric Agnew <agnew@geekhive.net>, submit@bugs.debian.org
Cc: bug-gnu-utils@gnu.org
Subject: libc6: regex (re_exec) segfault in UTF-8 locale [Re: grep 2.5.1 segfault, and (more) color patch (again)
In-Reply-To: <20030407055622.GE23827@goku.geekhive.net> (Eric Agnew's message of "Sun, 6 Apr 2003 22:56:23 -0700")
References: <20030407055622.GE23827@goku.geekhive.net>
From: Jim Meyering <jim@meyering.net>
Date: Mon, 07 Apr 2003 14:58:20 +0200
Message-ID: <85u1dao45v.fsf@pi.meyering.net>
Lines: 54
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-2.0 required=4.0
	tests=HAS_PACKAGE,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,
	      SPAM_PHRASE_03_05
	version=2.44
X-Spam-Level: 

--=-=-=
Content-Transfer-Encoding: quoted-printable

Package: libc6
Version: 2.3.1-16
Severity: normal

Eric Agnew <agnew@geekhive.net> wrote:
> First, a bug report: I'm getting a segfault on grep 2.5.1 when grepping
> the edict file ( http://ftp.cc.monash.edu.au/pub/nihongo/edict.gz ):
>
>         egrep '^(.)(.)(.)\1\2\3 ' edict
>   or:
>         grep '^\(.\)\(.\)\(.\)\1\2\3 ' edict
>
> both output 13 lines and the seg fault.  strace didn't seem to tell me
> anything, and I've never been able to figure out gdb, so.. hopefully
> someone will be able to reproduce it..  For reference, I'm running
> Linux (debian/unstable) on x86.

Thanks for the report.
Note that to reproduce the failure you probably have to
be using a UTF-8 locale.  The system I used happened to have
fr_FR.UTF-8 installed, so I used that, even though the data
in that file is in Japanese.

On a system with x86 Linux debian/unstable (grep-2.5.1-4
and libc6-2.3.1-16), I pared it down to this:

  $ printf pMik3KTIpNwK | recode /64 \
    | LC_ALL=3Dfr_FR.UTF-8 /bin/grep -nE '^(.)(.)(.)\1\2\3 '
  Segmentation fault
  [Exit 139 (SIGSEGV)]

This also does it:

  $ grep totteringly edict|LC_ALL=3Dfr_FR.UTF-8 /bin/grep -nE '^(.)(.)(.)\1=
\2\3 '
  Segmentation fault
  [Exit 139 (SIGSEGV)]

It looks like a problem in libc's re_exec function:

  $ LC_ALL=3Dfr_FR.UTF-8 gdb /bin/grep
  (gdb) r -E '^(.)(.)(.)\1\2\3 ' k
  Starting program: /bin/grep -E '^(.)(.)(.)\1\2\3 ' k
  (no debugging symbols found)...(no debugging symbols found)...
  Program received signal SIGSEGV, Segmentation fault.
  0x400c9ad5 in re_exec () from /lib/libc.so.6
  (gdb)

But note that if you rebuild grep by running
`configure --with-included-regex' the resulting binary doesn't segfault.
It doesn't find any matches, either.

The same thing happens if I link grep with the
very latest regex code from glibc's CVS repository.

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+kXXw/dLerNMzy6ERAo0pAKCiYRJoPTpxqwuZtRtXblAml43wJwCfXhPt
cxU4/Mx5OLxoSa1xgNwbq2M=
=z0Ll
-----END PGP SIGNATURE-----
--=-=-=--

---------------------------------------
Received: (at 187991-close) by bugs.debian.org; 26 Oct 2003 16:38:17 +0000
>From katie@auric.debian.org Sun Oct 26 10:38:09 2003
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1ADnu1-0003NU-00; Sun, 26 Oct 2003 10:38:05 -0600
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 1ADnoV-0003Yh-00; Sun, 26 Oct 2003 11:32:23 -0500
From: Marco d'Itri <md@linux.it>
To: 187991-close@bugs.debian.org
X-Katie: $Revision: 1.42 $
Subject: Bug#187991: fixed in mutt 1.5.4+20031024-1
Message-Id: <E1ADnoV-0003Yh-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Sun, 26 Oct 2003 11:32:23 -0500
Delivered-To: 187991-close@bugs.debian.org

Source: mutt
Source-Version: 1.5.4+20031024-1

We believe that the bug you reported is fixed in the latest version of
mutt, which is due to be installed in the Debian FTP archive:

mutt-utf8_1.5.4+20031024-1_i386.deb
  to pool/main/m/mutt/mutt-utf8_1.5.4+20031024-1_i386.deb
mutt_1.5.4+20031024-1.diff.gz
  to pool/main/m/mutt/mutt_1.5.4+20031024-1.diff.gz
mutt_1.5.4+20031024-1.dsc
  to pool/main/m/mutt/mutt_1.5.4+20031024-1.dsc
mutt_1.5.4+20031024-1_i386.deb
  to pool/main/m/mutt/mutt_1.5.4+20031024-1_i386.deb
mutt_1.5.4+20031024.orig.tar.gz
  to pool/main/m/mutt/mutt_1.5.4+20031024.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 187991@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marco d'Itri <md@linux.it> (supplier of updated mutt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 24 Oct 2003 15:06:01 +0200
Source: mutt
Binary: mutt mutt-utf8
Architecture: source i386
Version: 1.5.4+20031024-1
Distribution: unstable
Urgency: medium
Maintainer: Marco d'Itri <md@linux.it>
Changed-By: Marco d'Itri <md@linux.it>
Description: 
 mutt       - Text-based mailreader supporting MIME, GPG, PGP and threading
 mutt-utf8  - Text-based mailreader supporting MIME, GPG, PGP and threading
Closes: 133021 187991 188605 207242 208430 209722 210668 212664 213007 213917 215412 216508
Changes: 
 mutt (1.5.4+20031024-1) unstable; urgency=medium
 .
   * New CVS snapshot. (Closes: #133021, #207242, #208430, #213007, #213917)
   * Fix FTBFS bug in debian/control. (Closes: #216508)
   * Compiled with libgnutls7. (Closes: #209722)
   * New patch patch-1.5.4.fw.maildir_inode_sort. (Closes: #212664)
   * New patch patch-1.5.4.helmersson.incomplete_multibyte.
     (Closes: #187991, #188605)
   * New patch patch-1.5.4.Md.gpg_by_keyid. (Closes: #210668)
   * Removed README.NFS, as it talks about 2.0 and 2.2 kernels.
   * Removed reference to $AGENT_SOCKET from README.Debian. (Closes: #215412)
Files: 
 fb87bd59e4ba3ad0fd3d720611f72b03 815 mail standard mutt_1.5.4+20031024-1.dsc
 c88c10ba73d0e87e5805c819fe7846b3 1967245 mail standard mutt_1.5.4+20031024.orig.tar.gz
 ff7e2c33bf3d4db00f2534e145f835d3 51914 mail standard mutt_1.5.4+20031024-1.diff.gz
 da73b3d9a5e13262ad9c42d729945cc6 1355222 mail standard mutt_1.5.4+20031024-1_i386.deb
 f3936da88dc173db5fd6965ba0685543 335650 mail extra mutt-utf8_1.5.4+20031024-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/m/T1FGfw2OHuP7ERAsnEAJ9jGCl8e0Vhf2wialYjKYCKpwmafwCfRjz6
mcuIJf1DqWDKDPDRdwOu3Do=
=ZMKm
-----END PGP SIGNATURE-----



Reply to: