Comment 2 for bug 10667

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Wed, 24 Nov 2004 08:53:19 +0000
From: Jeff Epler <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: python-opengl: OpenGL.Tk package segfaults at import

Package: python-opengl
Version: 2.0.1.08-5
Severity: grave
Tags: patch
Justification: renders package unusable

The OpenGL.Tk package in python-opengl segfaults at import.

The problem goes away when the following patch is applied, causing the
Togl extension to Tcl to build without the "stubs" mechanism:
------------------------------------------------------------------------
diff -ur PyOpenGL-2.0.1.09-orig/setup/togl_setup.py PyOpenGL-2.0.1.09/setup/togl_setup.py
--- PyOpenGL-2.0.1.09-orig/setup/togl_setup.py 2004-10-18 20:40:44.000000000 +0000
+++ PyOpenGL-2.0.1.09/setup/togl_setup.py 2004-11-24 08:39:17.000000000 +0000
@@ -200,8 +200,6 @@
    objects = self.compiler.compile (sources,
         output_dir=self.build_temp,
         macros=[
- ('USE_TCL_STUBS',1),
- ('USE_TK_STUBS',1),
         ],
         include_dirs=self.include_dirs,
         debug=self.debug,
------------------------------------------------------------------------
[Careful: the file has DOS-style line endings, and so the patch above
includes carriage return characters. I also just noticed that the patch
is against the wrong version of PyOpenGL, but the version of the file in
2.0.1.08 is essentially identical]

I can't tell whether this is really a tcl or tk packaging bug or a
PyOpenGL/Togl bug. Simple programs intended to test USE_TCL_STUBS
succeed, rather than segfaulting.

The same problem exists on at least Fedora Core 2 and Mandrake 10, and
has been reported upstream:
https://sourceforge.net/tracker/?func=detail&aid=1071058&group_id=5988&atid=105988

A project admin has followed-up by saying
> Date: 2004-11-22 09:55
> Sender: mcfletch
>
> Strangely, works OOTB on Gentoo AMD64 (or did last time I
> checked). What is going on with these consumer-oriented
> distributions lately? Seems like every time we turn around
> we've got another break on them. Sigh.

[Note: this system is a hard-drive install of BDI-46, a morphix-based CD
from the EMC project]
-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.25-adeos
Locale: LANG=C, LC_CTYPE=C

Versions of packages python-opengl depends on:
ii python-numeric 23.6-2 Numerical (matrix-oriented) Mathem
ii python2.3-opengl 2.0.1.08-5 Python binding to OpenGL

-- no debconf information