[PyQt] sipEnumType_alloc: Assertion for PyQt5 but not PyQt4
Guðjón Guðjónsson
gudjon.i.gudjonsson at gmail.com
Fri May 29 18:49:16 BST 2015
Hi Dmitry
Thanks a lot for your help. I tried to make a smaller Qwt library that
would reproduce the bug and then for some reason I got a much more
interesting backtrace, see attachment.
Is there any more analyse I can do or shall I hope that Phil helps?
If I compile the same code with PyQt4, import Qwt works nicely.
Regards
Gudjon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150529/fe48bf81/attachment.html>
-------------- next part --------------
#0 0x00007ffff6f28107 in __GI_raise (sig=sig at entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff6f294e8 in __GI_abort () at abort.c:89
#2 0x00007ffff6f21226 in __assert_fail_base (fmt=0x7ffff7057ce8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=assertion at entry=0x7fffedba5950 "(((currentType)->td_flags & 0x0007) == 0x0003)",
file=file at entry=0x7fffedba4def "siplib.c", line=line at entry=11997,
function=function at entry=0x7fffedba4c00 <__PRETTY_FUNCTION__.14986> "sipEnumType_alloc") at assert.c:92
#3 0x00007ffff6f212d2 in __GI___assert_fail (
assertion=assertion at entry=0x7fffedba5950 "(((currentType)->td_flags & 0x0007) == 0x0003)",
file=file at entry=0x7fffedba4def "siplib.c", line=line at entry=11997,
function=function at entry=0x7fffedba4c00 <__PRETTY_FUNCTION__.14986> "sipEnumType_alloc") at assert.c:101
#4 0x00007fffedb95f3b in sipEnumType_alloc (self=<optimized out>, nitems=<optimized out>) at siplib.c:11997
#5 0x00000000004bdd07 in type_new.lto_priv () at ../Objects/typeobject.c:2314
#6 0x00000000004bd925 in type_call.lto_priv () at ../Objects/typeobject.c:729
#7 0x00000000004b712e in PyObject_Call () at ../Objects/abstract.c:2529
#8 0x00007fffedb9da22 in createContainerType (cod=<optimized out>,
td=0x7ffff66ecf00 <sipTypeDef_Qwt_QwtAbstractLegend>, bases=<optimized out>,
metatype=<type at remote 0x7fffeddada40>, mod_dict=<optimized out>, type_dict={'__module__': 'Qwt'},
client=0x7ffff66e7140 <sipModuleAPI_Qwt>) at siplib.c:5937
#9 0x00007fffedb9dd29 in createClassType (client=0x7ffff66e7140 <sipModuleAPI_Qwt>,
ctd=0x7ffff66ecf00 <sipTypeDef_Qwt_QwtAbstractLegend>, mod_dict=<unknown at remote 0x6>,
mod_dict at entry={'__name__': 'Qwt', '__doc__': None, '__package__': None}) at siplib.c:6072
#10 0x00007fffedb9df90 in createClassType (mod_dict={'__name__': 'Qwt', '__doc__': None, '__package__': None},
ctd=0x7ffff66ecf00 <sipTypeDef_Qwt_QwtAbstractLegend>, client=0x7ffff66e7140 <sipModuleAPI_Qwt>) at siplib.c:1592
#11 sip_api_init_module (client=0x7ffff66e7140 <sipModuleAPI_Qwt>,
mod_dict={'__name__': 'Qwt', '__doc__': None, '__package__': None}) at siplib.c:1616
#12 0x00007ffff64a1d6c in initQwt () at ./sipQwtcmodule.cpp:976
#13 0x0000000000547719 in _PyImport_LoadDynamicModule () at ../Python/importdl.c:53
#14 0x00000000004b4a92 in import_submodule (fullname=<optimized out>, subname=<optimized out>, mod=<optimized out>)
at ../Python/import.c:2704
#15 load_next () at ../Python/import.c:2519
#16 0x00000000004b3fc3 in import_module_level.isra () at ../Python/import.c:2228
#17 0x00000000004b7396 in PyImport_ImportModuleLevel (level=-1, fromlist=None, locals=<optimized out>,
globals={'__builtins__': <module at remote 0x7ffff7f85b08>, '__name__': '__main__', '__doc__': None, '__package__': None}, name=0x7ffff7e7d6e4 "Qwt") at ../Python/import.c:2292
#18 builtin___import__ () at ../Python/bltinmodule.c:49
#19 0x00000000004d4b1b in PyObject_Call (kw=<optimized out>,
arg=('Qwt', {'__builtins__': <module at remote 0x7ffff7f85b08>, '__name__': '__main__', '__doc__': None, '__package__': None}, {...}, None), func=<built-in function __import__>) at ../Objects/abstract.c:2529
#20 PyEval_CallObjectWithKeywords () at ../Python/ceval.c:3904
#21 0x00000000004d01ab in PyEval_EvalFrameEx () at ../Python/ceval.c:2348
#22 0x00000000004cbd79 in PyEval_EvalCodeEx () at ../Python/ceval.c:3267
#23 0x000000000050518f in PyEval_EvalCode (
locals={'__builtins__': <module at remote 0x7ffff7f85b08>, '__name__': '__main__', '__doc__': None, '__package__': None},
globals={'__builtins__': <module at remote 0x7ffff7f85b08>, '__name__': '__main__', '__doc__': None, '__package__': None}, co=0x7ffff7ebae30) at ../Python/ceval.c:669
#24 run_mod.lto_priv () at ../Python/pythonrun.c:1371
#25 0x000000000044a4cb in PyRun_InteractiveOneFlags (fp=0x15d8, fp at entry=0x7ffff72974e0 <_IO_2_1_stdin_>,
filename=0x15d8 <error: Cannot access memory at address 0x15d8>, filename at entry=0x603404 "<stdin>",
---Type <return> to continue, or q <return> to quit---
flags=0x7fffffffdf40) at ../Python/pythonrun.c:858
#26 0x000000000044a1c9 in PyRun_InteractiveLoopFlags (fp=fp at entry=0x7ffff72974e0 <_IO_2_1_stdin_>,
filename=filename at entry=0x603404 "<stdin>", flags=flags at entry=0x7fffffffdf40) at ../Python/pythonrun.c:778
#27 0x000000000042df25 in PyRun_AnyFileExFlags (fp=0x7ffff72974e0 <_IO_2_1_stdin_>, filename=<optimized out>,
closeit=0, flags=0x7fffffffdf40) at ../Python/pythonrun.c:747
#28 0x000000000049ae4e in Py_Main () at ../Modules/main.c:640
#29 0x00007ffff6f14b45 in __libc_start_main (main=0x49a8e0 <main>, argc=1, argv=0x7fffffffe108, init=<optimized out>,
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe0f8) at libc-start.c:287
#30 0x000000000049a80c in _start ()
More information about the PyQt
mailing list