gtranslator: Saving po file make program crash

Bug #25167 reported by Debian Bug Importer
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTranslator
Fix Released
Medium
gtranslator (Debian)
Fix Released
Unknown
gtranslator (Ubuntu)
Fix Released
Medium
MOTU
Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (3.5 KiB)

Message-Id: <email address hidden>
Date: Mon, 07 Nov 2005 19:08:08 +0100
From: Sylvain Archenault <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: gtranslator: Saving po file make program crash

--===============5915561897050634898==
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-15"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by localhost.localdomain id jA7I883f007968

Package: gtranslator
Version: 1.1.6-3
Severity: grave
Justification: renders package unusable

When I save some po files, the application crashes. It happens with some
po files not all, it's certainly due to a encoding problem.=20

Here is the output of gtranslator=A0:

(gtranslator:7842): gtranslator-WARNING **:
/home/sylvain/Traduction/po-debconf/Todo/ipsec-tools/fr.po:24: line
contains invalid UTF-8

(gtranslator:7842): GLib-WARNING **: GError set over the top of a
previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL
before it's set.
The overwriting error message was: Invalid byte sequence in conversion
input

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14
Locale: LANG=3Dfr_FR@euro, LC_CTYPE=3Dfr_FR@euro (charmap=3DISO-8859-15)

Versions of packages gtranslator depends on:
ii libart-2.0-2 2.3.17-1 Library of functions for 2D =
graphi
ii libaspell15 0.60.4-1 GNU Aspell spell-checker run=
time l
ii libatk1.0-0 1.10.3-1 The ATK accessibility toolki=
t
ii libbonobo2-0 2.10.1-1 Bonobo CORBA interfaces libr=
ary
ii libbonoboui2-0 2.10.1-1 The Bonobo UI library
ii libc6 2.3.5-7 GNU C Library: Shared librar=
ies an
ii libgconf2-4 2.10.1-6 GNOME configuration database=
 syste
ii libglib2.0-0 2.8.3-1 The GLib library of C routin=
es
ii libgnome2-0 2.10.1-1 The GNOME 2 library - runtim=
e file
ii libgnomecanvas2-0 2.10.2-2 A powerful object-oriented d=
isplay
ii libgnomeui-0 2.10.1-1 The GNOME 2 libraries (User =
Interf
ii libgnomevfs2-0 2.10.1-5 The GNOME virtual file-syste=
m libr
ii libgtk2.0-0 2.6.10-1 The GTK+ graphical user inte=
rface=20
ii libgtkspell0 2.0.10-3 a spell-checking addon for G=
TK's T
ii libice6 6.8.2.dfsg.1-10 Inter-Client Exchange librar=
y
ii liborbit2 1:2.12.4-1 libraries for ORBit2 - a COR=
BA ORB
ii libpango1.0-0 1.8.2-3 Layout and rendering of inte=
rnatio
ii libpopt0 1.7-5 lib for parsing cmdline para=
meters
ii libsm6 6.8.2.dfsg.1-10 X Window System Session Mana=
gement
ii libxml2 2.6.22-2 GNOME XML library
ii xlibs 6.8.2.dfsg.1-10 X Window System clie...

Read more...

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

Message-ID: <email address hidden>
Date: Mon, 7 Nov 2005 10:35:05 -0800
From: Steve Langasek <email address hidden>
To: Sylvain Archenault <email address hidden>,
 <email address hidden>
Subject: Re: Bug#337987: gtranslator: Saving po file make program crash

--r5Pyd7+fXNt84Ff3
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Nov 07, 2005 at 07:08:08PM +0100, Sylvain Archenault wrote:
> When I save some po files, the application crashes. It happens with some
> po files not all, it's certainly due to a encoding problem.=20

> Here is the output of gtranslator=A0:

> (gtranslator:7842): gtranslator-WARNING **:
> /home/sylvain/Traduction/po-debconf/Todo/ipsec-tools/fr.po:24: line
> contains invalid UTF-8

> (gtranslator:7842): GLib-WARNING **: GError set over the top of a
> previous GError or uninitialized memory.
> This indicates a bug in someone's code. You must ensure an error is NULL
> before it's set.
> The overwriting error message was: Invalid byte sequence in conversion
> input

If this only happens when you have a broken .po file, then I don't think
that should be considered "grave".

Though the .po file you attached seems to be empty, so I can't verify this
for myself...

--=20
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
<email address hidden> http://www.debian.org/

--r5Pyd7+fXNt84Ff3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQFDb55ZKN6ufymYLloRAuixAKDFr37ZCcPxnGVpfi8nfmDWjjhWwACfbsz0
7Xi34OZIS992wEY6K5OGaV4=
=woUi
-----END PGP SIGNATURE-----

--r5Pyd7+fXNt84Ff3--

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

Message-id: <email address hidden>
Date: Mon, 07 Nov 2005 19:40:39 +0100
From: Sylvain Archenault <email address hidden>
To: <email address hidden>
Subject: Empty file

I'm sorry about the empty file, it's due to the fact gtranslator empty
it and I didn't realize when sending the bug report. Actually, I edited
the file and save it with kbabel and now gtranslator didn't crash
anymore, It's certainly due to an error in encoding.

--
Sylvain Archenault

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

Message-Id: <email address hidden>
Date: Mon, 7 Nov 2005 11:50:12 -0800
From: Steve Langasek <email address hidden>
To: <email address hidden>
Subject: severity of 337987 is important

# Automatically generated email from bts, devscripts version 2.9.8
severity 337987 important

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

Message-id: <email address hidden>
Date: Wed, 09 Nov 2005 20:22:14 +0100
From: Sylvain Archenault <email address hidden>
To: <email address hidden>
Subject: Re: Empty file

--------------enig493F4D603AC8B4431D04D424
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Sylvain Archenault wrote:
> I'm sorry about the empty file, it's due to the fact gtranslator empty
> it and I didn't realize when sending the bug report. Actually, I edited
> the file and save it with kbabel and now gtranslator didn't crash
> anymore, It's certainly due to an error in encoding.
>
I found out the cause of the problem, it always happen when the po file
contains invalid UTF-8. It makes program crashes. So i need to re save
the file (with kbabel e.g).

So the bug gravity could be changed, but I don't know how to do.

--
Sylvain Archenault

--------------enig493F4D603AC8B4431D04D424
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDckxm3M6ekcMWoxURAsYWAJ0R7PLcQx6i5Qlliyyr/BY6zEE9TACffq0E
pcVGBmjsZJyIYUh2Ef8JKi8=
=ousw
-----END PGP SIGNATURE-----

--------------enig493F4D603AC8B4431D04D424--

Revision history for this message
Daniel Holbach (dholbach) wrote :
Revision history for this message
Carlo Vanini (silhusk) wrote :

I get a similar error:

(gtranslator:5864): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: La conversione del set di caratteri da "text/plain, charset=CHARSET" a "utf-8" non è supportata

(translation of the last line: character set conversion from "text/plain, charset=CHARSET" to "utf-8" not supported)

more times and gtranslator crashes when I try to _open_ a PO file containing the (somewhat malformed) header
"Content-Type: text/plain, charset=CHARSET\n"
Just changing the header line to
"Content-Type: text/plain; charset=CHARSET\n"
(note: the comma becomes a colon) prevents any crash.

msgfmt doesn't mind about this difference.

version: gtranslator 1.1.6 (1.1.6-3build1)

Revision history for this message
Daniel Holbach (dholbach) wrote :

Could you please attach the file that makes it crash?

Changed in gtranslator:
assignee: seb128 → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Carlo Vanini (silhusk) wrote : file causing crash of gtranslator

Opening this file containing the header line
"Content-Type: text/plain, charset=UTF-8\n"
causes a crash in gtranslator 1.1.6

Revision history for this message
Daniel Holbach (dholbach) wrote :

I followed up on the upstream bug.

Changed in gtranslator:
status: Needs Info → Confirmed
Changed in gtranslator:
assignee: desktop-bugs → motu
status: Confirmed → Unconfirmed
Changed in gtranslator:
status: New → Fix Released
Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

This is fixed in upstream cvs.

Daniel T Chen (crimsun)
Changed in gtranslator:
status: New → Fix Released
Changed in gtranslator:
importance: Unknown → Medium
Changed in gtranslator (Debian):
status: New → 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.