pygtk's pangocairo module crashes pydoc search

Bug #1003751 reported by John McPherson
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pygtk (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 12.04, 64bit

Python crashes every time I run "pydoc -k $something", which should search all installed modules to find keywords from the doc strings.

Eg:
$ pydoc -k subprocess
subprocess - subprocess - Subprocesses with accessible I/O streams

** (python2.7:22364): CRITICAL **: pyg_register_boxed: assertion `boxed_type != 0' failed
zsh: segmentation fault (core dumped) pydoc -k subprocess

If I strace it, I see that the last python module read is pygtk:
open("/usr/lib/python2.7/dist-packages/gtk-2.0/atk.so", O_RDONLY) = 11
open("/usr/lib/python2.7/dist-packages/gtk-2.0/atk.so", O_RDONLY|O_CLOEXEC) = 12
open("./pangocairo.so", O_RDONLY) = -1 ENOENT (No such file or directory)
...
open("/usr/lib/python2.7/dist-packages/gtk-2.0/pangocairo.so", O_RDONLY|O_CLOEXEC) = 12

** (python2.7:22008): CRITICAL **: pyg_register_boxed: assertion `boxed_type != 0' failed
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
zsh: segmentation fault (core dumped) strace -eopen pydoc -k id3

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pygtk (Ubuntu):
status: New → Confirmed
Revision history for this message
Alexandr Novel (normalex) wrote :

i do confirm same problem with pangocairo.so crasing pydoc
system is 64 bit, on 32 bit works without problems.

$ file /usr/lib/python2.7/dist-packages/gtk-2.0/pangocairo.so
/usr/lib/python2.7/dist-packages/gtk-2.0/pangocairo.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0xe807ac0ccf8534a420d04777b8f229c0b8e18c56, stripped

.....................
open("/usr/lib/python2.7/dist-packages/gtk-2.0/pango.so", O_RDONLY) = 9
fstat(9, {st_mode=S_IFREG|0644, st_size=171008, ...}) = 0

.......................

open("/usr/lib/python2.7/dist-packages/gtk-2.0/pangocairo.so", O_RDONLY|O_CLOEXEC) = 10
read(10, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\36\0\0\0\0\0\0"..., 832) = 832
fstat(10, {st_mode=S_IFREG|0644, st_size=20352, ...}) = 0
mmap(NULL, 2115592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 10, 0) = 0x7fcbb99a6000
mprotect(0x7fcbb99aa000, 2093056, PROT_NONE) = 0
mmap(0x7fcbb9ba9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 10, 0x3000) = 0x7fcbb9ba9000
close(10) = 0
mprotect(0x7fcbb9ba9000, 4096, PROT_READ) = 0
close(9) = 0
open("/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 9
fstat(9, {st_mode=S_IFREG|0644, st_size=26258, ...}) = 0
mmap(NULL, 26258, PROT_READ, MAP_SHARED, 9, 0) = 0x7fcbc7fbd000
close(9) = 0
futex(0x7fcbc6c54b10, FUTEX_WAKE_PRIVATE, 2147483647) = 0
write(2, "\n** (python:17514): CRITICAL **:"..., 88
** (python:17514): CRITICAL **: pyg_register_boxed: assertion `boxed_type != 0' failed
) = 88
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)

Revision history for this message
Alexandr Novel (normalex) wrote :

actually it fails on a different 32bit fresh install of Precise 12.04 as well.

open("/usr/lib/python2.7/dist-packages/gtk-2.0/pangocairo.so", O_RDONLY|O_LARGEFILE) = 9
fstat64(9, {st_mode=S_IFREG|0644, st_size=18744, ...}) = 0
open("/usr/lib/python2.7/dist-packages/gtk-2.0/pangocairo.so", O_RDONLY|O_CLOEXEC) = 10
read(10, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\23\0\0004\0\0\0"..., 512) = 512
fstat64(10, {st_mode=S_IFREG|0644, st_size=18744, ...}) = 0
mmap2(NULL, 21540, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 10, 0) = 0xdcb000
mprotect(0xdce000, 4096, PROT_NONE) = 0
mmap2(0xdcf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 10, 0x3) = 0xdcf000
close(10) = 0
mprotect(0xdcf000, 4096, PROT_READ) = 0
close(9) = 0
write(2, "\n** (python2.7:10739): CRITICAL "..., 91
** (python2.7:10739): CRITICAL **: pyg_register_boxed: assertion `boxed_type != 0' failed
) = 91
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)

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.