gtranslator crash in gtr_header_update_header() when saving po file

Bug #664314 reported by Pirouette Cacahuète
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gtranslator (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: gtranslator

Stacktrace:

(gdb) bt
#0 __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:31
#1 0x00007ffff51844b8 in g_str_has_suffix (str=0x6c6572766560 <Address 0x6c6572766560 out of bounds>, suffix=0x4593bd ".")
    at /build/buildd/glib2.0-2.26.0/glib/gstrfuncs.c:2918
#2 0x000000000042f820 in gtr_header_update_header ()
#3 0x00000000004259b9 in gtr_po_save_file ()
#4 0x0000000000429dd7 in gtr_save_current_file_dialog ()
#5 0x00007ffff581da6e in g_closure_invoke (closure=0x80ab40, return_value=0x0, n_param_values=1, param_values=0x188c8a0, invocation_hint=0x7fffffffd2a0)
    at /build/buildd/glib2.0-2.26.0/gobject/gclosure.c:766
#6 0x00007ffff58334d7 in signal_emit_unlocked_R (node=0x785960, detail=<value optimized out>, instance=<value optimized out>,
    emission_return=<value optimized out>, instance_and_params=<value optimized out>) at /build/buildd/glib2.0-2.26.0/gobject/gsignal.c:3252
#7 0x00007ffff5834996 in g_signal_emit_valist (instance=0x6e5c80, signal_id=<value optimized out>, detail=0, var_args=0x7fffffffd490)
    at /build/buildd/glib2.0-2.26.0/gobject/gsignal.c:2983
#8 0x00007ffff5834f53 in g_signal_emit (instance=0x6c6572766560, signal_id=4559805, detail=0) at /build/buildd/glib2.0-2.26.0/gobject/gsignal.c:3040
#9 0x00007ffff670ca23 in _gtk_action_emit_activate (action=0x6e5c80) at /build/buildd/gtk+2.0-2.22.0/gtk/gtkaction.c:794
#10 0x00007ffff670f0f9 in closure_accel_activate (closure=0x80ab70, return_value=0x7fffffffd720, n_param_values=<value optimized out>,
    param_values=<value optimized out>, invocation_hint=<value optimized out>, marshal_data=<value optimized out>)
    at /build/buildd/gtk+2.0-2.22.0/gtk/gtkaction.c:1764
#11 0x00007ffff581da6e in g_closure_invoke (closure=0x80ab70, return_value=0x7fffffffd720, n_param_values=4, param_values=0x1694c00,
    invocation_hint=0x7fffffffd6e0) at /build/buildd/glib2.0-2.26.0/gobject/gclosure.c:766
#12 0x00007ffff58334d7 in signal_emit_unlocked_R (node=0x78d710, detail=<value optimized out>, instance=<value optimized out>,
    emission_return=<value optimized out>, instance_and_params=<value optimized out>) at /build/buildd/glib2.0-2.26.0/gobject/gsignal.c:3252
#13 0x00007ffff58347db in g_signal_emit_valist (instance=0x700100, signal_id=<value optimized out>, detail=1256, var_args=0x7fffffffd8d0)
    at /build/buildd/glib2.0-2.26.0/gobject/gsignal.c:2993
#14 0x00007ffff5834f53 in g_signal_emit (instance=0x6c6572766560, signal_id=4559805, detail=0) at /build/buildd/glib2.0-2.26.0/gobject/gsignal.c:3040
#15 0x00007ffff6708c24 in IA__gtk_accel_group_activate (accel_group=0x700100, accel_quark=1256, acceleratable=0x6a01f0, accel_key=115,
    accel_mods=GDK_CONTROL_MASK) at /build/buildd/gtk+2.0-2.22.0/gtk/gtkaccelgroup.c:889
#16 0x00007ffff6708d2d in IA__gtk_accel_groups_activate (object=0x6a01f0, accel_key=115, accel_mods=GDK_CONTROL_MASK)
    at /build/buildd/gtk+2.0-2.22.0/gtk/gtkaccelgroup.c:926
#17 0x00007ffff69007a1 in IA__gtk_window_activate_key (window=0x6a01f0, event=<value optimized out>) at /build/buildd/gtk+2.0-2.22.0/gtk/gtkwindow.c:8365
#18 0x00007ffff6900829 in gtk_window_key_press_event (widget=0x6c6572766560, event=0x4593bd) at /build/buildd/gtk+2.0-2.22.0/gtk/gtkwindow.c:5242
#19 0x00007ffff67d39d8 in _gtk_marshal_BOOLEAN__BOXED (closure=0x6b0c30, return_value=0x7fffffffdc30, n_param_values=<value optimized out>,
    param_values=0x1806ad0, invocation_hint=<value optimized out>, marshal_data=0x7ffff6900810) at /build/buildd/gtk+2.0-2.22.0/gtk/gtkmarshalers.c:86
#20 0x00007ffff581da6e in g_closure_invoke (closure=0x6b0c30, return_value=0x7fffffffdc30, n_param_values=2, param_values=0x1806ad0,
    invocation_hint=0x7fffffffdbf0) at /build/buildd/glib2.0-2.26.0/gobject/gclosure.c:766
#21 0x00007ffff5833120 in signal_emit_unlocked_R (node=0x6b0ca0, detail=<value optimized out>, instance=<value optimized out>,
    emission_return=<value optimized out>, instance_and_params=<value optimized out>) at /build/buildd/glib2.0-2.26.0/gobject/gsignal.c:3290
#22 0x00007ffff58347db in g_signal_emit_valist (instance=0x6a01f0, signal_id=<value optimized out>, detail=0, var_args=0x7fffffffdde0)
    at /build/buildd/glib2.0-2.26.0/gobject/gsignal.c:2993
#23 0x00007ffff5834f53 in g_signal_emit (instance=0x6c6572766560, signal_id=4559805, detail=0) at /build/buildd/glib2.0-2.26.0/gobject/gsignal.c:3040
#24 0x00007ffff68ec6df in gtk_widget_event_internal (widget=0x6a01f0, event=0x17a30f0) at /build/buildd/gtk+2.0-2.22.0/gtk/gtkwidget.c:4985
#25 0x00007ffff67cbf44 in IA__gtk_propagate_event (widget=0x6a01f0, event=0x17a30f0) at /build/buildd/gtk+2.0-2.22.0/gtk/gtkmain.c:2439
#26 0x00007ffff67ccf4b in IA__gtk_main_do_event (event=0x17a30f0) at /build/buildd/gtk+2.0-2.22.0/gtk/gtkmain.c:1665
#27 0x00007ffff644674c in gdk_event_dispatch (source=<value optimized out>, callback=<value optimized out>, user_data=<value optimized out>)
---Type <return> to continue, or q <return> to quit---
    at /build/buildd/gtk+2.0-2.22.0/gdk/x11/gdkevents-x11.c:2377
#28 0x00007ffff5164342 in g_main_dispatch (context=0x6a9d80) at /build/buildd/glib2.0-2.26.0/glib/gmain.c:2149
#29 g_main_context_dispatch (context=0x6a9d80) at /build/buildd/glib2.0-2.26.0/glib/gmain.c:2702
#30 0x00007ffff51682a8 in g_main_context_iterate (context=0x6a9d80, block=<value optimized out>, dispatch=<value optimized out>,
    self=<value optimized out>) at /build/buildd/glib2.0-2.26.0/glib/gmain.c:2780
#31 0x00007ffff51687b5 in g_main_loop_run (loop=0x17ab690) at /build/buildd/glib2.0-2.26.0/glib/gmain.c:2988
#32 0x00007ffff67cd3e7 in IA__gtk_main () at /build/buildd/gtk+2.0-2.22.0/gtk/gtkmain.c:1237
#33 0x000000000041fe2b in main ()

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gtranslator 1.9.11-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
Architecture: amd64
Date: Thu Oct 21 08:17:23 2010
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
ProcEnviron:
 PATH=(custom, user)
 LANG=fr_FR.utf8
 SHELL=/bin/bash
SourcePackage: gtranslator

Revision history for this message
Pirouette Cacahuète (lissyx) wrote :
Revision history for this message
Pirouette Cacahuète (lissyx) wrote :
Revision history for this message
Pirouette Cacahuète (lissyx) wrote :

The issue is related to the presence of comments at the top of the .po file. Removing them, I can save my file !
This lowers the importance of this issue, yet it need to be fixed.

Revision history for this message
Pirouette Cacahuète (lissyx) wrote :

Now it becomes fun, because when saving the file, gtranslator adds comments:

#
# <>, 2010.
#
msgid ""
msgstr ""
"Project-Id-Version: REMORA 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-01-16 11:45-0800\n"
"PO-Revision-Date: 2010-10-21 08:24+0200\n"
"Last-Translator: <>\n"
"Language-Team: Français <email address hidden>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n>1;\n"
"X-Poedit-Language: French\n"
"X-Generator: Lokalize 1.0\n"

Revision history for this message
Pirouette Cacahuète (lissyx) wrote :

And with a non empty translator name, say a comment like this:

#
# Bla bla <>, 2010.
#

No crash on saving.

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.