Your message dated Fri, 27 Apr 2007 14:32:42 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#421191: python-gtk2: debug version of gtk library causes 
Segmentation Fault
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)

--- Begin Message ---
Package: python-gtk2
Version: 2.8.6-8
Severity: normal

install the package libgtk2-2.0-0-dbg

add the symbolic links in /usr/lib/debug/usr/lib
lrwxrwxrwx 1 root root      26 2007-04-26 21:57 libgdk-x11-2.0.so -> 
libgdk-x11-2.0.so.0.800.20
lrwxrwxrwx 1 root root      26 2007-04-26 21:57 libgdk-x11-2.0.so.0 -> 
libgdk-x11-2.0.so.0.800.20
lrwxrwxrwx 1 root root      26 2007-04-26 21:57 libgtk-x11-2.0.so -> 
libgtk-x11-2.0.so.0.800.20
lrwxrwxrwx 1 root root      26 2007-04-26 21:57 libgtk-x11-2.0.so.0 -> 
libgtk-x11-2.0.so.0.800.20

and try out:

[EMAIL PROTECTED]:~$ LD_LIBRARY_PATH=/usr/lib/debug/usr/lib python -c "import 
gtk"
Segmentation fault

setting ulimit results in a core file with following backtrace:

#0  0xb7f3107f in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2
#1  0xb7f385b0 in _dl_make_stack_executable () from /lib/ld-linux.so.2
#2  0xb7f34432 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2
#3  0xb7f37ece in _dl_make_stack_executable () from /lib/ld-linux.so.2
#4  0xb7ef1e1d in dlopen () from /lib/i686/cmov/libdl.so.2
#5  0xb7f34432 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2
#6  0xb7ef249c in dlerror () from /lib/i686/cmov/libdl.so.2
#7  0xb7ef1d51 in dlopen () from /lib/i686/cmov/libdl.so.2
#8  0x080e1312 in _PyImport_GetDynLoadFunc ()
#9  0x080d6302 in _PyImport_LoadDynamicModule ()
#10 0x080d4325 in PyImport_ExecCodeModule ()
#11 0x080d4a49 in PyImport_ReloadModule ()
#12 0x080d4ef1 in PyImport_ReloadModule ()
#13 0x080d50fe in PyImport_ImportModuleEx ()
#14 0x080afe91 in _PyBuiltin_Init ()
#15 0x080589d7 in PyObject_Call ()
#16 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#17 0x080b7a90 in PyEval_EvalFrame ()
#18 0x080ba765 in PyEval_EvalCodeEx ()
#19 0x080ba7c9 in PyEval_EvalCode ()
#20 0x080d38fc in PyImport_ExecCodeModuleEx ()
#21 0x080d3f76 in PyImport_ExecCodeModule ()
#22 0x080d5886 in PyImport_ImportModule ()
#23 0x080d4a49 in PyImport_ReloadModule ()
#24 0x080d4ef1 in PyImport_ReloadModule ()
#25 0x080d50fe in PyImport_ImportModuleEx ()
#26 0x080afe91 in _PyBuiltin_Init ()
#27 0x080589d7 in PyObject_Call ()
#28 0x080b3d2d in PyEval_CallObjectWithKeywords ()
#29 0x080b7a90 in PyEval_EvalFrame ()
#30 0x080ba765 in PyEval_EvalCodeEx ()
#31 0x080ba7c9 in PyEval_EvalCode ()
#32 0x080dcfcb in PyRun_SimpleStringFlags ()
#33 0x080557a2 in Py_Main ()
#34 0x08055032 in main ()

the same happens with gtk-2.10 and pygtk-2.10 (unstable)

I am trying to trace down a x11 error. Could you also tell me how to use the 
--sync flag without dbg version of gtk?

The last lines of strace are:

LD_LIBRARY_PATH=/usr/lib/debug/usr/lib strace /usr/bin/python2.4 -c "import gtk"

open("/usr/lib/libpng12.so.0", O_RDONLY) = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2406\0"..., 512) = 512
fstat64(5, {st_mode=S_IFREG|0644, st_size=137760, ...}) = 0
mmap2(NULL, 140716, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 
0xb7204000
mmap2(0xb7226000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x21) = 0xb7226000
close(5)                                = 0

so it might be an issue for libpng12, too.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-gtk2 depends on:
ii  libatk1.0-0                  1.18.0-2    The ATK accessibility toolkit
ii  libc6                        2.5-1       GNU C Library: Shared libraries
ii  libcairo2                    1.4.4-1     The Cairo 2D vector graphics libra
ii  libfontconfig1               2.4.2-1.2   generic font configuration library
ii  libglib2.0-0                 2.12.11-3   The GLib library of C routines
ii  libgtk2.0-0                  2.8.20-7    The GTK+ graphical user interface 
ii  libpango1.0-0                1.16.2-2    Layout and rendering of internatio
ii  libx11-6                     2:1.0.3-7   X11 client-side library
ii  libxcursor1                  1.1.7-4     X cursor management library
ii  libxext6                     1:1.0.1-2   X11 miscellaneous extension librar
ii  libxfixes3                   1:4.0.1-5   X11 miscellaneous 'fixes' extensio
ii  libxi6                       1:1.0.1-4   X11 Input extension library
ii  libxinerama1                 1:1.0.1-4.1 X11 Xinerama extension library
ii  libxrandr2                   2:1.1.0.2-5 X11 RandR extension library
ii  libxrender1                  1:0.9.1-3   X Rendering Extension client libra
ii  python                       2.4.4-2     An interactive high-level object-o
ii  python-cairo                 1.4.0-2     Python bindings for the Cairo vect
ii  python-numeric               24.2-7      Numerical (matrix-oriented) Mathem
ii  python-support               0.6.3       automated rebuilding support for p

python-gtk2 recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Le vendredi 27 avril 2007 à 11:57 +0200, Achim Gaedke a écrit :
> Why do I do all this? Well, I'd like to have debugging symbols in
> libgtk2 and the debugging flags available.

> Could you tell me how to do that? Is it necessary to build pygtk linked
> against libgtk2-dgb?
> I was not able to find proper instructions to use libgtk2-dbg.

There is nothing special to do. Just install the package, and the
debugging symbols will become available when using gdb.

Cheers,
-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.


--- End Message ---

Reply via email to