sed segfaults in Italian locales

Bug #10387 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
sed (Debian)
Fix Released
Unknown
sed (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Automatically imported from Debian bug report #281686 http://bugs.debian.org/281686

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #281686 http://bugs.debian.org/281686

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Wed, 17 Nov 2004 10:00:15 +0100
From: Sythos <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: sed segfault

Package: sed
Version: 4.1.2-2
Severity: critical
Justification: breaks unrelated software

sed segfault, other related packages use sed for log facilities or text
wrapping don't work properly

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-Ezra-C3
Locale: LANG=it_IT@euro, LC_CTYPE=it_IT@euro (charmap=ISO-8859-15)

Versions of packages sed depends on:
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an

-- no debconf information

Revision history for this message
In , Clint Adams (clint) wrote : Re: Bug#281686: sed segfault

> sed segfault, other related packages use sed for log facilities or text
> wrapping don't work properly

Does 4.1.2-3 segfault? If so, please elaborate.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 17 Nov 2004 09:14:13 -0500
From: Clint Adams <email address hidden>
To: Sythos <email address hidden>, <email address hidden>
Subject: Re: Bug#281686: sed segfault

> sed segfault, other related packages use sed for log facilities or text
> wrapping don't work properly

Does 4.1.2-3 segfault? If so, please elaborate.

Revision history for this message
In , Francesco Rabbi (sythos) wrote :
Download full text (10.4 KiB)

Il Wed, 17 Nov 2004 11:44:15 -0500
Clint Adams <email address hidden> scrisse:

segfault too...

s# dpkg -l sed
Desiderato=sconosciUto/Installato/Rimosso/P:eliminato/H:bloccato
| Stato=Non/Installato/file Config./U:spacchett./conf. Fallita/H:inst.parzial.
|/ Err?=(nessuno)/H:bloc./necess.Reinst./X=entrambi (Stato,Err: maiusc.=grave)
||/ Nome Versione Descrizione
+++-==============-==============-============================================
ii sed 4.1.2-4 The GNU sed stream editor

stracing sed:
# strace sed --help
execve("/bin/sed", ["sed", "--help"], [/* 15 vars */]) = 0
uname({sys="Linux", node="vortex", ...}) = 0
brk(0) = 0x8057bb0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40017000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file
or directory) open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such
file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=18075, ...}) = 0
old_mmap(NULL, 18075, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory) open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200^\1"..., 512) =
512 fstat64(3, {st_mode=S_IFREG|0644, st_size=1244080, ...}) = 0
old_mmap(NULL, 1254244, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001d000
old_mmap(0x40145000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x127000) = 0x40145000 old_mmap(0x4014d000, 9060, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014d000 close(3)
                  = 0 munmap(0x40018000, 18075) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1609264, ...}) = 0
mmap2(NULL, 1609264, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40150000
close(3) = 0
brk(0) = 0x8057bb0
brk(0x8078bb0) = 0x8078bb0
brk(0) = 0x8078bb0
brk(0x8079000) = 0x8079000
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2539, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40018000 read(3, "# Locale name alias data base.\n#"..., 4096) = 2539
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40018000, 4096) = 0
open("/usr/share/locale/it_IT@euro/LC_MESSAGES/sed.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/it@euro/LC_MESSAGES/sed.mo", O_RDONLY) = -1 ENOENT (No
such file or directory) open("/usr/share/locale/it_IT/LC_MESSAGES/sed.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/it/LC_MESSAGES/sed.mo", O_RDONLY) = 3 fstat64(3,
{st_mode=S_IFREG|0644, st_size=9668, ...}) = 0 old_mmap(NULL, 9668, PROT_READ,
MAP_PRIVATE, 3, 0) = 0x40018000 close(3) = 0
open("/usr/lib/gconv...

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (11.2 KiB)

Message-Id: <email address hidden>
Date: Thu, 18 Nov 2004 00:14:57 +0100
From: Sythos <email address hidden>
To: Clint Adams <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#281686: sed segfault

Il Wed, 17 Nov 2004 11:44:15 -0500
Clint Adams <email address hidden> scrisse:

segfault too...

s# dpkg -l sed
Desiderato=3DsconosciUto/Installato/Rimosso/P:eliminato/H:bloccato
| Stato=3DNon/Installato/file Config./U:spacchett./conf. Fallita/H:inst.par=
zial.
|/ Err?=3D(nessuno)/H:bloc./necess.Reinst./X=3Dentrambi (Stato,Err: maiusc.=
=3Dgrave)
||/ Nome Versione Descrizione
+++-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D-=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
ii sed 4.1.2-4 The GNU sed stream editor

stracing sed:
# strace sed --help
execve("/bin/sed", ["sed", "--help"], [/* 15 vars */]) =3D 0
uname({sys=3D"Linux", node=3D"vortex", ...}) =3D 0
brk(0) =3D 0x8057bb0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0=
) =3D
0x40017000 access("/etc/ld.so.nohwcap", F_OK) =3D -1 ENOENT (No such f=
ile
or directory) open("/etc/ld.so.preload", O_RDONLY) =3D -1 ENOENT (No such
file or directory) open("/etc/ld.so.cache", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D18075, ...}) =3D 0
old_mmap(NULL, 18075, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40018000
close(3) =3D 0
access("/etc/ld.so.nohwcap", F_OK) =3D -1 ENOENT (No such file or
directory) open("/lib/libc.so.6", O_RDONLY) =3D 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200^\1"..., 512) =
=3D
512 fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D1244080, ...}) =3D 0
old_mmap(NULL, 1254244, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =3D 0x4001d=
000
old_mmap(0x40145000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x127000) =3D 0x40145000 old_mmap(0x4014d000, 9060, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) =3D 0x4014d000 close(3) =
    =20
                  =3D 0 munmap(0x40018000, 18075) =3D 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D1609264, ...}) =3D 0
mmap2(NULL, 1609264, PROT_READ, MAP_PRIVATE, 3, 0) =3D 0x40150000
close(3) =3D 0
brk(0) =3D 0x8057bb0
brk(0x8078bb0) =3D 0x8078bb0
brk(0) =3D 0x8078bb0
brk(0x8079000) =3D 0x8079000
open("/usr/share/locale/locale.alias", O_RDONLY) =3D 3
fstat64(3, {st_mode=3DS_IFREG|0644, st_size=3D2539, ...}) =3D 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0=
) =3D
0x40018000 read(3, "# Locale name alias data base.\n#"..., 4096) =3D 2539
read(3, "", 4096) =3D 0
close(3) =3D 0
munmap(0x40018000, 4096) =3D 0
open("/usr/share/locale/it_IT@euro/LC_MESSAGES/sed.mo", O_RDONLY)...

Revision history for this message
In , Modestas Vainius (geromanas) wrote : The segfault is caused by the bug in the "it" translation

Package: sed
Version: 4.1.2-4
Followup-For: Bug #281686

The bug can be reproduced by running:

LANGUAGE=it sed --help

in non-it locales. I've made a patch which fixes the bug.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (499, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-mdx-mdx
Locale: LANG=lt_LT, LC_CTYPE=lt_LT (charmap=ISO-8859-13)

Versions of packages sed depends on:
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an

-- no debconf information

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Thu, 18 Nov 2004 10:28:45 +0200
From: Modestas Vainius <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: The segfault is caused by the bug in the "it" translation

--===============0717546257==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: sed
Version: 4.1.2-4
Followup-For: Bug #281686

The bug can be reproduced by running:

LANGUAGE=it sed --help

in non-it locales. I've made a patch which fixes the bug.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (499, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-mdx-mdx
Locale: LANG=lt_LT, LC_CTYPE=lt_LT (charmap=ISO-8859-13)

Versions of packages sed depends on:
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an

-- no debconf information

--===============0717546257==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="it.patch"

diff -uNr sed-4.1.2/po/it.po sed-4.1.2.new/po/it.po
--- sed-4.1.2/po/it.po 2004-08-22 12:21:54.000000000 +0300
+++ sed-4.1.2.new/po/it.po 2004-11-18 10:02:44.000000000 +0200
@@ -298,7 +298,7 @@
 "continuous\n"
 " long stream.\n"
 msgstr ""
-"%s -s, --separate\n"
+" -s, --separate\n"
 " considera i file di input come separati invece che come un\n"
 " unico file lungo.\n"

--===============0717546257==--

Revision history for this message
In , Francesco Rabbi (sythos) wrote : Re: Bug#281686: Info received (was Bug#281686: sed segfault)

On Wed, Nov 17, 2004 at 04:18:07PM -0800, Debian Bug Tracking System wrote:

SED 4.1.2-4 segfault too... :(

It seem don't involve other package uses SED in any kind of malfunction

--

Sythos - http://www.sythos.net

  () ASCII Ribbon Campaign - against html/rtf/vCard in mail
  /\ - against M$ attachments

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 18 Nov 2004 11:34:55 +0100
From: Sythos <email address hidden>
To: <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#281686: Info received (was Bug#281686: sed segfault)

On Wed, Nov 17, 2004 at 04:18:07PM -0800, Debian Bug Tracking System wrote:

SED 4.1.2-4 segfault too... :(

It seem don't involve other package uses SED in any kind of malfunction

--

Sythos - http://www.sythos.net

  () ASCII Ribbon Campaign - against html/rtf/vCard in mail
  /\ - against M$ attachments

Revision history for this message
In , Clint Adams (clint) wrote : Re: Bug#281686: sed segfault

> segfault too...

Does it segfault with LANG=C ? How about it_IT.UTF8 ?

Revision history for this message
In , Francesco Rabbi (sythos) wrote :

On Thu, Nov 18, 2004 at 10:23:13AM -0500, Clint Adams wrote:
> > segfault too...
> Does it segfault with LANG=C ? How about it_IT.UTF8 ?

LANG=C work fine

LANG=it_IT.UTF8 segfault

--

Sythos - http://www.sythos.net

  () ASCII Ribbon Campaign - against html/rtf/vCard in mail
  /\ - against M$ attachments

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 18 Nov 2004 10:23:13 -0500
From: Clint Adams <email address hidden>
To: Sythos <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#281686: sed segfault

> segfault too...

Does it segfault with LANG=C ? How about it_IT.UTF8 ?

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 18 Nov 2004 16:35:36 +0100
From: Sythos <email address hidden>
To: Clint Adams <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#281686: sed segfault

On Thu, Nov 18, 2004 at 10:23:13AM -0500, Clint Adams wrote:
> > segfault too...
> Does it segfault with LANG=C ? How about it_IT.UTF8 ?

LANG=C work fine

LANG=it_IT.UTF8 segfault

--

Sythos - http://www.sythos.net

  () ASCII Ribbon Campaign - against html/rtf/vCard in mail
  /\ - against M$ attachments

Revision history for this message
In , Clint Adams (clint) wrote :

> LANG=C work fine
>
> LANG=it_IT.UTF8 segfault

Okay, give 4.1.2-5 a try.

Revision history for this message
In , Clint Adams (clint) wrote : Bug#281686: fixed in sed 4.1.2-5

Source: sed
Source-Version: 4.1.2-5

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

sed_4.1.2-5.diff.gz
  to pool/main/s/sed/sed_4.1.2-5.diff.gz
sed_4.1.2-5.dsc
  to pool/main/s/sed/sed_4.1.2-5.dsc
sed_4.1.2-5_sparc.deb
  to pool/main/s/sed/sed_4.1.2-5_sparc.deb

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 <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Clint Adams <email address hidden> (supplier of updated sed 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 <email address hidden>)

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

Format: 1.7
Date: Thu, 18 Nov 2004 11:10:53 -0500
Source: sed
Binary: sed
Architecture: source sparc
Version: 4.1.2-5
Distribution: unstable
Urgency: low
Maintainer: Clint Adams <email address hidden>
Changed-By: Clint Adams <email address hidden>
Description:
 sed - The GNU sed stream editor
Closes: 281686
Changes:
 sed (4.1.2-5) unstable; urgency=low
 .
   * Apply patch from Modestas Vainius to fix it.po segfault.
     closes: #281686.
Files:
 1cd4688dade8923ef7b8f682a867f06e 557 base required sed_4.1.2-5.dsc
 2f3429afc578444bc1bf9fabb8815aa8 87772 base required sed_4.1.2-5.diff.gz
 fb66b04b208c60f5784ed7c3a237c3e5 203656 base required sed_4.1.2-5_sparc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Debian!

iD8DBQFBnM175m0u66uWM3ARAo9gAJ9Q7ew2Iwbe372fd1Vp99m8/M30OACfR8QR
stq8fGFv2oS/5TKy0v8vvdM=
=U72s
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 18 Nov 2004 11:26:52 -0500
From: Clint Adams <email address hidden>
To: Sythos <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#281686: sed segfault

> LANG=C work fine
>
> LANG=it_IT.UTF8 segfault

Okay, give 4.1.2-5 a try.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Thu, 18 Nov 2004 11:47:15 -0500
From: Clint Adams <email address hidden>
To: <email address hidden>
Subject: Bug#281686: fixed in sed 4.1.2-5

Source: sed
Source-Version: 4.1.2-5

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

sed_4.1.2-5.diff.gz
  to pool/main/s/sed/sed_4.1.2-5.diff.gz
sed_4.1.2-5.dsc
  to pool/main/s/sed/sed_4.1.2-5.dsc
sed_4.1.2-5_sparc.deb
  to pool/main/s/sed/sed_4.1.2-5_sparc.deb

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 <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Clint Adams <email address hidden> (supplier of updated sed 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 <email address hidden>)

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

Format: 1.7
Date: Thu, 18 Nov 2004 11:10:53 -0500
Source: sed
Binary: sed
Architecture: source sparc
Version: 4.1.2-5
Distribution: unstable
Urgency: low
Maintainer: Clint Adams <email address hidden>
Changed-By: Clint Adams <email address hidden>
Description:
 sed - The GNU sed stream editor
Closes: 281686
Changes:
 sed (4.1.2-5) unstable; urgency=low
 .
   * Apply patch from Modestas Vainius to fix it.po segfault.
     closes: #281686.
Files:
 1cd4688dade8923ef7b8f682a867f06e 557 base required sed_4.1.2-5.dsc
 2f3429afc578444bc1bf9fabb8815aa8 87772 base required sed_4.1.2-5.diff.gz
 fb66b04b208c60f5784ed7c3a237c3e5 203656 base required sed_4.1.2-5_sparc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Debian!

iD8DBQFBnM175m0u66uWM3ARAo9gAJ9Q7ew2Iwbe372fd1Vp99m8/M30OACfR8QR
stq8fGFv2oS/5TKy0v8vvdM=
=U72s
-----END PGP SIGNATURE-----

Revision history for this message
In , Francesco Rabbi (sythos) wrote : Re: Bug#281686: sed segfault

Il Thu, 18 Nov 2004 11:26:52 -0500
Clint Adams <email address hidden> scrisse:

> > LANG=C work fine
> >
> > LANG=it_IT.UTF8 segfault
>
> Okay, give 4.1.2-5 a try.

works fine!!!

--
Sythos - http://www.sythos.net

  () ASCII Ribbon Campaign - against html/rtf/vCard in mail
  /\ - against M$ attachments

Un connect a 300 e` facile
 -- Kurgan [parlando di fare handshake a voce con un modem]

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Fri, 19 Nov 2004 00:54:04 +0100
From: Sythos <email address hidden>
To: Clint Adams <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#281686: sed segfault

Il Thu, 18 Nov 2004 11:26:52 -0500
Clint Adams <email address hidden> scrisse:

> > LANG=C work fine
> >
> > LANG=it_IT.UTF8 segfault
>
> Okay, give 4.1.2-5 a try.

works fine!!!

--
Sythos - http://www.sythos.net

  () ASCII Ribbon Campaign - against html/rtf/vCard in mail
  /\ - against M$ attachments

Un connect a 300 e` facile
 -- Kurgan [parlando di fare handshake a voce con un modem]

Revision history for this message
Matt Zimmerman (mdz) wrote :

Reported fixed in 4.1.2-5

       sed | 4.1.2-5 | http://archive.ubuntu.com hoary/main Packages

Changed in sed:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.