Bug#319987: marked as done (Segmentation fault in python: vte.Terminal.set_colors)

Debian Bug Tracking System owner at bugs.debian.org
Mon Sep 12 20:48:30 UTC 2005


Your message dated Mon, 12 Sep 2005 13:33:32 -0700
with message-id <E1EEuzc-0002oS-00 at spohr.debian.org>
and subject line Bug#319987: fixed in vte 1:0.11.15-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 26 Jul 2005 03:57:50 +0000
>From glasse at rpi.edu Mon Jul 25 20:57:50 2005
Return-path: <glasse at rpi.edu>
Received: from mail1.acecape.com [66.114.74.12] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1DxGZi-0002yB-00; Mon, 25 Jul 2005 20:57:50 -0700
Received: from [192.168.1.102] (p70-80.acedsl.com [66.114.70.80])
	by mail1.acecape.com (8.12.11/8.12.11) with ESMTP id j6Q3vk42019125
	for <submit at bugs.debian.org>; Mon, 25 Jul 2005 23:57:47 -0400
Message-ID: <42E5B497.1060204 at rpi.edu>
Date: Mon, 25 Jul 2005 23:57:11 -0400
From: Ethan Glasser-Camp <glasse at rpi.edu>
User-Agent: Debian Thunderbird 1.0.2 (X11/20050331)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: submit at bugs.debian.org
Subject: Segmentation fault in python: vte.Terminal.set_colors
X-Enigmail-Version: 0.91.0.0
Content-Type: multipart/mixed;
 boundary="------------040207060505080706050309"
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

This is a multi-part message in MIME format.
--------------040207060505080706050309
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Package: python-vte
Version: 0.11.13-2

Attached is an example script that should set colors on a VTE Terminal widget to
be all white. It segfaults when run with the python-vte package.

I tracked the problem down to the python/vte.c file, in
_wrap_vte_terminal_set_colors(), line 472 or so:

    if (PySequence_Check(py_palette)) {
	palette_size = PySequence_Length(py_palette);
        palette = g_malloc(sizeof(GdkColor) * palette_size);
	for (i = 0; i < palette_size; i++) {
	    item = PySequence_GetItem(py_palette, i); /* INCREFs */
            if (!pyg_boxed_check(item, GDK_TYPE_COLOR)) {
		g_free(palette);
        	PyErr_SetString(PyExc_TypeError, "palette should be a list of GdkColors");
		return NULL;
	    }
	    /*           Good here              */
	    palette[i] = *((GdkColor*)pyg_boxed_get(py_palette, GdkColor));
	    /*      Never get here -- ^^^^^ segfaults!!       */
	    printf("about to dec\n");
            Py_DECREF(item);
	    printf("decremented successfully\n");
	}
    }

I think py_palette in this line should be changed to item. I haven't done any
strenuous testing, but this appears to make the program not seg fault.

Ethan

--------------040207060505080706050309
Content-Type: text/x-python;
 name="use_vte.py"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="use_vte.py"

import gtk
import vte

w = gtk.Window()
v = vte.Terminal()
w.add(v)
v.show()
w.show()
black = gtk.gdk.Color(0, 0, 0)
white = gtk.gdk.Color(255, 255, 255)
palette = [gtk.gdk.Color(255,255,255) for x in range(8)]
v.set_colors(black, white, palette)
gtk.main()

--------------040207060505080706050309--

---------------------------------------
Received: (at 319987-close) by bugs.debian.org; 12 Sep 2005 20:38:08 +0000
>From katie at spohr.debian.org Mon Sep 12 13:38:08 2005
Return-path: <katie at spohr.debian.org>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
	id 1EEuzc-0002oS-00; Mon, 12 Sep 2005 13:33:32 -0700
From: Loic Minier <lool at dooz.org>
To: 319987-close at bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#319987: fixed in vte 1:0.11.15-1
Message-Id: <E1EEuzc-0002oS-00 at spohr.debian.org>
Sender: Archive Administrator <katie at spohr.debian.org>
Date: Mon, 12 Sep 2005 13:33:32 -0700
Delivered-To: 319987-close at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: vte
Source-Version: 1:0.11.15-1

We believe that the bug you reported is fixed in the latest version of
vte, which is due to be installed in the Debian FTP archive:

libvte-common_0.11.15-1_all.deb
  to pool/main/v/vte/libvte-common_0.11.15-1_all.deb
libvte-dev_0.11.15-1_i386.deb
  to pool/main/v/vte/libvte-dev_0.11.15-1_i386.deb
libvte-doc_0.11.15-1_all.deb
  to pool/main/v/vte/libvte-doc_0.11.15-1_all.deb
libvte4_0.11.15-1_i386.deb
  to pool/main/v/vte/libvte4_0.11.15-1_i386.deb
python-vte_0.11.15-1_i386.deb
  to pool/main/v/vte/python-vte_0.11.15-1_i386.deb
vte_0.11.15-1.diff.gz
  to pool/main/v/vte/vte_0.11.15-1.diff.gz
vte_0.11.15-1.dsc
  to pool/main/v/vte/vte_0.11.15-1.dsc
vte_0.11.15.orig.tar.gz
  to pool/main/v/vte/vte_0.11.15.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 319987 at bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Loic Minier <lool at dooz.org> (supplier of updated vte package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster at debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 11 Sep 2005 16:03:32 +0200
Source: vte
Binary: python-vte libvte4 libvte-doc libvte-common libvte-dev
Architecture: source i386 all
Version: 1:0.11.15-1
Distribution: unstable
Urgency: low
Maintainer: Arnaud Patard <arnaud.patard at rtp-net.org>
Changed-By: Loic Minier <lool at dooz.org>
Description: 
 libvte-common - Terminal emulator widget for GTK+ 2.0 - common files
 libvte-dev - Terminal emulator widget for GTK+ 2.0 - development files
 libvte-doc - Terminal emulator widget for GTK+ 2.0 - development files
 libvte4    - Terminal emulator widget for GTK+ 2.0 - runtime files
 python-vte - Python bindings for the VTE widget set
Closes: 319987
Changes: 
 vte (1:0.11.15-1) unstable; urgency=low
 .
   [ Sebastien Bacher ]
   * debian/control.in:
     - use ${python:Depends}.
   * debian/python-vte.install:
     - don't use a specific python version.
   * debian/rules:
     - use dh_python.
 .
   [ Loic Minier ]
   * New upstream releases.
     - Fix confusion between py_palette and item in
       _wrap_vte_terminal_set_colors(), doesn't segfault anymore in
       vte.Terminal.set_colors(). (Closes: #319987)
   * Add CDBS' utils.
   * Drop obsolete patches. [debian/patches/02_path_xtra.patch,
     debian/patches/03_path_xtra-2.patch,
     debian/patches/11_hide_pageup_behavior.patch]
   * Temporarily add libxt-dev build-dependency to let
     AC_PATH_X/AC_PATH_XTRA autodetect X development files, see
     <http://bugzilla.gnome.org/show_bug.cgi?id=314669>.
   * Update FSF address. [debian/copyright]
Files: 
 f5fc6125fe0f910baac11a37c6bf02fd 1814 libs optional vte_0.11.15-1.dsc
 76ddbe8367864c8d5f647f39bdc0de50 1243589 libs optional vte_0.11.15.orig.tar.gz
 75f351109523333b442e7833e6838398 9615 libs optional vte_0.11.15-1.diff.gz
 9f1da86496f552ca737a7a7458321d58 113478 libs optional libvte-common_0.11.15-1_all.deb
 2625df3a1f5a6dfb036ea869b37d8c23 84032 doc optional libvte-doc_0.11.15-1_all.deb
 04628a13e87eff784d0900a3c7583b94 678280 libs optional libvte4_0.11.15-1_i386.deb
 b34e13c8d1cbbd9bb621a328422e334b 438878 libdevel optional libvte-dev_0.11.15-1_i386.deb
 691ef10ac125ed66ed63170b83f0f319 122060 python optional python-vte_0.11.15-1_i386.deb

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

iD8DBQFDJEQO4VUX8isJIMARAkZQAJ9jzhethj9DTzCPF3w6WXCWNS2/lACfSpKm
8X0xcy4tbQZvK8+L+m5PUS8=
=byEx
-----END PGP SIGNATURE-----





More information about the Pkg-gnome-maintainers mailing list