Ubuntu

geany crashes when selecting whole lines with Turkish locale

Reported by ehcpdeveloper on 2012-10-28
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
geany (Ubuntu)
Undecided
Unassigned

Bug Description

$ geany

(geany:24122): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
Segmentation fault

This bug persists since last few months,
I cannot use geany anymore, because it crashes frequently because of this.

bug re-generate:

open geany, open a file or type a few lines,
go to start of line,
press shift-down arrow
geany gone..

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: geany 1.22+dfsg-2
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
Uname: Linux 3.5.0-17-generic x86_64
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
Date: Sun Oct 28 21:56:14 2012
InstallationDate: Installed on 2012-08-12 (76 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120724.2)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=tr_TR.UTF-8
 SHELL=/bin/bash
SourcePackage: geany
UpgradeStatus: No upgrade log present (probably fresh install)

ehcpdeveloper (ehcpdeveloper) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in geany (Ubuntu):
status: New → Confirmed
Colomban Wendling (banw) wrote :

Could you please provide a backtrace of the crash? (e.g. using GDB)

ehcpdeveloper (ehcpdeveloper) wrote :
Download full text (4.5 KiB)

$ gdb geany
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
/usr/bin/geany'den semboller okunuyor...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/geany
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeed0a700 (LWP 7040)]
[New Thread 0x7fffee509700 (LWP 7041)]
[New Thread 0x7fffed6d4700 (LWP 7042)]
[New Thread 0x7fffdd0e9700 (LWP 7045)]

-----------------------
GEANY STARTED NORMALLY,
HERE I DID SHIFT-DOWN SELECTION IN GEANY,
-----------------------

(geany:7037): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff533d3b1 in vfprintf () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007ffff533d3b1 in vfprintf () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff53fc1d1 in __vasprintf_chk ()
   from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff616743b in g_vasprintf ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007ffff614a64e in g_string_append_vprintf ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007ffff614a867 in g_string_append_printf ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00000000004a5a77 in ui_update_statusbar ()
#6 0x00000000004683c4 in ?? ()
#7 0x00000000004707da in ?? ()
#8 0x00007ffff65ee140 in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9 0x00007ffff65ff766 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#10 0x00007ffff66070cb in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#11 0x00007ffff6607b50 in g_signal_emit_by_name ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#12 0x000000000046370a in editor_sci_notify_cb ()
#13 0x00007ffff65ee140 in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#14 0x00007ffff65ff550 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#15 0x00007ffff66074af in g_signal_emit_valist ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#16 0x00007ffff6607642 in g_signal_emit ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00000000004af4eb in ScintillaGTK::NotifyParent(SCNotification) ()
#18 0x00000000004cad82 in Editor::NotifyUpdateUI() ()
#19 0x00000000004d49d2 in Editor::Paint(Surface*, PRectangle) ()
#20 0x00000000004b3b26 in ScintillaGTK::ExposeTextThis(_GtkWidget*, _GdkEventExpose*) ()
#21 0x00007ffff78d7599 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#22 0x00007ffff65ee140 in g_closure_invoke ()
   from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#23 0x00007ffff65ff550 in ?? ()
   from /usr/lib/x86_64-linux-gn...

Read more...

summary: - geany crash when selecting shift up-down
+ geany crash when selecting with shift up-down

OK, I see. It's a typo in the Turkish translation that improperly translates "%dL" to "%sS" (%d being a c-format here, expecting a digit, but %s is the format for a string -- thus, a digit is read like it was a string, leading to the crash).

Fixed upstream, and patch attached.

In the meanwhile, you can either run Geany with another language (e.g. `LANG=C geany`), or rebuild your translation file tourself using the upstream fixed tr.po (`msgfmt tr.po -o /usr/share/locale/tr/LC_MESSAGES/geany.mo` using http://git.geany.org/geany/tree/po/tr.po).

summary: - geany crash when selecting with shift up-down
+ geany crashes when selecting wholes lines with Turkish locale
Colomban Wendling (banw) on 2012-10-30
summary: - geany crashes when selecting wholes lines with Turkish locale
+ geany crashes when selecting whole lines with Turkish locale

The attachment "Fix a c-format typo in the Turkish translation leading to a crash" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers