xfce4-terminal segfaults in terminal_screen_get_size()

Bug #366036 reported by Alexander Iliev
6
Affects Status Importance Assigned to Milestone
xfce4-terminal
Confirmed
Unknown
xfce4-terminal (Ubuntu)
Fix Released
Medium
Lionel Le Folgoc

Bug Description

Binary package hint: xfce4-terminal

Source package: https://launchpad.net/ubuntu/+source/xfce4-terminal/0.2.10-1ubuntu2

$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

$ uname -a
Linux ailiev 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux

$ apt-cache policy xfce4-terminal
xfce4-terminal:
  Installed: 0.2.10-1ubuntu2
  Candidate: 0.2.10-1ubuntu2
  Version table:
 *** 0.2.10-1ubuntu2 0
        500 http://bg.archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status

NOTE: The X server is running in Xinerama mode with two displays, nvidia proprietary drivers.

Steps to reproduce:

1. Start a xterm instance
2. Type 'xfce4-terminal'

Result: Segmentation fault

Expected result: Program to be started normally

Here's a backtrace:

$ gdb /usr/local/bin/Terminal
GNU gdb 6.8-debian
Copyright (C) 2008 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"...
(gdb) run
Starting program: /usr/local/bin/Terminal
[Thread debugging using libthread_db enabled]
[New Thread 0x7f530ccb67d0 (LWP 31958)]
Xlib: extension "RANDR" missing on display ":0.0".

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f530ccb67d0 (LWP 31958)]
0x0000000000419c01 in terminal_screen_get_size (screen=0x0, width_chars=0x7fff14ceb860, height_chars=0x7fff14ceb85c)
    at terminal-screen.c:1100
1100 *width_chars = VTE_TERMINAL (screen->terminal)->column_count;
(gdb) bt
#0 0x0000000000419c01 in terminal_screen_get_size (screen=0x0, width_chars=0x7fff14ceb860,
    height_chars=0x7fff14ceb85c) at terminal-screen.c:1100
#1 0x0000000000422462 in terminal_window_notebook_visibility (window=0x13da090) at terminal-window.c:921
#2 0x0000000000423079 in terminal_window_page_added (notebook=<value optimized out>, child=0x13bd050,
    page_num=<value optimized out>, window=0x13da090) at terminal-window.c:985
#3 0x00007f530aac027d in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#4 0x00007f530aad5e3b in ?? () from /usr/lib/libgobject-2.0.so.0
#5 0x00007f530aad7432 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#6 0x00007f530aad7953 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#7 0x00007f530b52fdae in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#8 0x0000000000420cb1 in terminal_window_add (window=0x13da090, screen=0x13bd050) at terminal-window.c:1710
#9 0x000000000040f7b8 in terminal_app_open_window (app=0x13cbe00, attr=0x13d90b0) at terminal-app.c:546
#10 0x000000000040facb in terminal_app_process (app=0x13cbe00, argv=<value optimized out>, argc=<value optimized out>,
    error=<value optimized out>) at terminal-app.c:483
#11 0x000000000040ec39 in main (argc=1, argv=0x7fff14cebf38) at main.c:264
(gdb)

Revision history for this message
Alexander Iliev (sasoiliev) wrote :

This bug is reproduced also on x86 architecture.

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

Thanks for reporting this bug. This has been reported upstream.

Changed in xfce4-terminal (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in xfce4-terminal:
status: Unknown → Confirmed
Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Hi,

A new xfce4-terminal branch is being developed upstream, and a pre-release (0.2.90) is available. Packages are available for Ubuntu 9.04 (jaunty) in my ppa:
* https://launchpad.net/~mrpouit/+archive/ppa/+files/xfce4-terminal_0.2.90-1ubuntu1~test1_i386.deb (for i386)
* https://launchpad.net/~mrpouit/+archive/ppa/+files/xfce4-terminal_0.2.90-1ubuntu1~test1_amd64.deb (for amd64)

Could you test them to check if your issue is still present?
Thanks.

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

(there is also xfce4-terminal 0.4.0 available for testing in karmic)

Changed in xfce4-terminal (Ubuntu):
status: Triaged → Incomplete
assignee: nobody → Lionel Le Folgoc (mrpouit)
Revision history for this message
Martin Maney (maney) wrote :

Lionel's pre-release worked for me (amd64)... at least as far as starting, which it hadn't been doing since upgrading to Jaunty a little earlier.

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Ok, thanks for the feedback. So this issue is fixed in karmic.

Changed in xfce4-terminal (Ubuntu):
status: Incomplete → 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.