[Python-modules-team] Bug#671919: Bug#671919: python-sip: segfault in python-sip in use with calibre

Thomas Rösch tomdebian at gmx.de
Thu May 10 17:59:05 UTC 2012


Once again with english error messages:

Building package with

apt-get build-dep python-sip
apt-get source --compile python-sip

works, no problems

Starting calibre with gdb:

gdb /usr/bin/python2.7
(gdb) run /usr/bin/calibre
Starting program: /usr/bin/python2.7 /usr/bin/calibre
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
Python Exception <class 'gdb.error'> There is no member named ma_mask.:
createClassType (client=client at entry=0x7fffe2decea0, 
ctd=ctd at entry=0x7fffe2ded020, mod_dict=mod_dict at entry=)
     at /tmp/sip4-4.13.2/siplib/siplib.c:5502
5502                Py_INCREF(st);

(gdb) where
Python Exception <class 'gdb.error'> There is no member named ma_mask.:
#0  createClassType (client=client at entry=0x7fffe2decea0, 
ctd=ctd at entry=0x7fffe2ded020, mod_dict=mod_dict at entry=)
     at /tmp/sip4-4.13.2/siplib/siplib.c:5502
Python Exception <class 'gdb.error'> There is no member named ma_mask.:
#1  0x00007ffff22f6f31 in sip_api_init_module (client=0x7fffe2decea0, 
mod_dict=)
     at /tmp/sip4-4.13.2/siplib/siplib.c:1396
#2  0x00007fffe2bdf9f7 in initpictureflow () from 
/usr/lib/calibre/calibre/plugins/pictureflow.so
#3  0x00000000004a2ac4 in _PyImport_LoadDynamicModule ()
#4  0x000000000041f47b in import_submodule.39130 ()
#5  0x000000000043caff in load_next.39135 ()
#6  0x000000000041fd44 in import_module_level.isra.3.39156 ()
#7  0x000000000050917b in builtin___import__.32811 ()
#8  0x00000000004eaa3b in PyEval_EvalFrameEx ()
#9  0x00000000004f1db0 in PyEval_EvalCodeEx ()
#10 0x00000000004eafd8 in PyEval_EvalFrameEx ()
#11 0x00000000004eb222 in PyEval_EvalFrameEx ()
#12 0x00000000004f1db0 in PyEval_EvalCodeEx ()
#13 0x00000000004f2e00 in function_call.15047 ()
#14 0x000000000044a176 in PyObject_Call ()
#15 0x000000000047cc7a in instancemethod_call.8523 ()
#16 0x000000000044a176 in PyObject_Call ()
#17 0x00000000004dd7b7 in call_method.25480 ()
#18 0x00000000004ebd03 in PyEval_EvalFrameEx ()
#19 0x00000000004f1db0 in PyEval_EvalCodeEx ()
#20 0x00000000004d8d98 in PyImport_ExecCodeModuleEx ()
#21 0x000000000041ea88 in load_source_module.39076 ()
#22 0x000000000041f47b in import_submodule.39130 ()
#23 0x000000000043caff in load_next.39135 ()
#24 0x000000000041ff01 in import_module_level.isra.3.39156 ()
#25 0x000000000050917b in builtin___import__.32811 ()
#26 0x000000000044a176 in PyObject_Call ()
#27 0x000000000044c666 in PyEval_CallObjectWithKeywords ()
#28 0x00000000004ed1f3 in PyEval_EvalFrameEx ()
#29 0x00000000004f1db0 in PyEval_EvalCodeEx ()
#30 0x00000000004d8d98 in PyImport_ExecCodeModuleEx ()
#31 0x000000000041ea88 in load_source_module.39076 ()
#32 0x000000000041f47b in import_submodule.39130 ()
#33 0x000000000043caff in load_next.39135 ()
#34 0x000000000041ff01 in import_module_level.isra.3.39156 ()
#35 0x000000000050917b in builtin___import__.32811 ()
#36 0x000000000044a176 in PyObject_Call ()
#37 0x000000000044c666 in PyEval_CallObjectWithKeywords ()
#38 0x00000000004ed1f3 in PyEval_EvalFrameEx ()
#39 0x00000000004eb222 in PyEval_EvalFrameEx ()
#40 0x00000000004f1db0 in PyEval_EvalCodeEx ()
#41 0x00000000004eafd8 in PyEval_EvalFrameEx ()
#42 0x00000000004f1db0 in PyEval_EvalCodeEx ()
#43 0x00000000004d980d in PyRun_FileExFlags ()
#44 0x00000000004d9a96 in PyRun_SimpleFileExFlags ()
#45 0x00000000004da39e in Py_Main ()
#46 0x00007ffff6977ead in __libc_start_main (main=<optimized out>, 
argc=<optimized out>, ubp_av=<optimized out>,
     init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized 
out>, stack_end=0x7fffffffe2c8)
     at libc-start.c:228
#47 0x000000000041e131 in _start ()


Next suggestet try: Rebuild calibre

apt-get build-dep calibre
  apt-get source --compile calibre
=> build failed, log is attached.

I will open another bug for calibre, because build is failing without 
any message, but the first problem still exists.
I think the lib should never crash, even the call may be wrong.

With regards

Tom
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: calibre_buildlog.txt
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20120510/3045db3c/attachment-0001.txt>


More information about the Python-modules-team mailing list