Segfault when capslock pressed

Bug #1313761 reported by Sergey Anek
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Terminator
Fix Released
Medium
Unassigned

Bug Description

1. Launch terminator
2. Open new tab
3. Doubleclick on tab(title edit)
4. Press CapsLock

AR:
Segfault

Ubuntu 14.04, terminator 0.97.

Related branches

Revision history for this message
Sergey Anek (sj-sr) wrote :
Changed in terminator:
importance: Undecided → Medium
milestone: none → 1.0
status: New → Confirmed
Revision history for this message
wizwiz50 (wizwiz50) wrote :

In gtkentry.c the function gtk_entry_focus_out() isn't called because function _entry_to_label() (editablelabel.py) returns True instead of False. This stop other handlers to process the 'focus-out-event'. It explains why GtkEntry doesn't disconnect 'state-changed' which is triggered by hitting capslock.

Revision history for this message
wizwiz50 (wizwiz50) wrote :
Revision history for this message
wizwiz50 (wizwiz50) wrote :

This patch ensure the 'focus out' event will be catch by gtkentry (see comment in patch)

Revision history for this message
wizwiz50 (wizwiz50) wrote :

Sorry, this is the patch :)

Revision history for this message
Bryce Harrington (bryce) wrote :

Confirmed the behavior.

Revision history for this message
Arnaud Launay (asl-ubuntuone) wrote :

Confirmed the behavior.

Revision history for this message
Bryce Harrington (bryce) wrote :

Confirmed in testing that proposed patch fixes the crash. Fix LGTM.
Pushed up to trunk as revision 1553.

Changed in terminator:
status: Confirmed → Fix Committed
Changed in terminator:
status: Fix Committed → Fix Released
Revision history for this message
Ronald Portier (Therp) (rportier1962) wrote :

Problem is not solved completely.

Debian Jessie and terminator 0.97.

Steps to reproduce:

- Open terminator and multiple tabs
- Edit title of at least one tab
- Use Caps Lock in Window

# dmesg
[846857.158820] /usr/bin/termin[14105]: segfault at 14 ip 00007f31e161fdc9 sp 00007ffe3c9c9280 error 4 in libgtk-x11-2.0.so.0.2400.25[7f31e155a000+440000]

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

@Ronald: You can't use a release older that the release that fixed a bug, then claim the problem isn't solved! You have to upgrade to the newer version. I'd recommend you test the new gtk3 version 1.91 and see if the issue still exists. Then, if it does, *raise a new bug*. Please don't resurrect a bug that was last touched ~18 months ago. The gtk3 libraries are much less susceptible to segfault'ing, and doesn't exhibit this behaviour even without having the patch attached to this bug.

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.