Segfaults and debug builds
Jonathan Schultz <[email protected]>
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
Testing some code recently I've started getting segfaults deep inside
wxPython. The start of a backtrace looks like this:
#0 0x00007ffff6f7a676 in strlen () at ../sysdeps/x86_64/strlen.S:106
#1 0x00005555556248f4 in PyString_FromString (str=0x4e2566254e256125
<error: Cannot access memory at address 0x4e2566254e256125>) at
../Objects/stringobject.c:121
Python Exception <class 'UnicodeDecodeError'> 'utf-8' codec can't decode
byte 0xf7 in position 3: invalid start byte:
#2 0x0000555555629784 in PyDict_SetItemString (v=, key=<optimized out>,
item=<sip.methoddescriptor at remote 0x7fffe4cf4290>) at
../Objects/dictobject.c:2518
Python Exception <class 'UnicodeDecodeError'> 'utf-8' codec can't decode
byte 0xf7 in position 3: invalid start byte:
#3 0x00007fffea5d3e3f in addMethod (dict=, pmd=0x7ffff705f008) at
../../../../sip/siplib/siplib.c:6959
Python Exception <class 'UnicodeDecodeError'> 'utf-8' codec can't decode
byte 0xf7 in position 3: invalid start byte:
#4 0x00007fffea5d3ed6 in add_lazy_container_attrs (td=0x7ffff728f180
<_nl_C_LC_ADDRESS>, cod=0x7ffff728f1b0 <_nl_C_LC_ADDRESS+48>, dict=) at
../../../../sip/siplib/siplib.c:6986
#5 0x00007fffea5d437f in add_lazy_attrs (td=0x7ffff7291f38
<main_arena+1080>)
at ../../../../sip/siplib/siplib.c:7129
#6 0x00007fffea5d445c in add_all_lazy_attrs (td=0x7ffff7291f38
<main_arena+1080>)
at ../../../../sip/siplib/siplib.c:7160
#7 0x00007fffea5d6610 in sip_api_is_py_method (gil=0x7fffffffc3c4,
pymc=0x7fffffffc3c3 "", sipSelf=0x555556806ca0, cname=0x0,
mname=0x7fffea5df860 "__dtor__") at ../../../../sip/siplib/siplib.c:8516
#8 0x00007fffea5d24e5 in callPyDtor (self=0x555556806ca0) at
../../../../sip/siplib/siplib.c:6025
#9 0x00007fffea5d2373 in sip_api_common_dtor (sipSelf=0x555556806ca0)
at ../../../../sip/siplib/siplib.c:5975
#10 0x00007ffff637e640 in sipwxScrolledWindow::~sipwxScrolledWindow()
(this=0x5555565ca568, __in_chrg=<optimized out>) at
../../../../sip/cpp/sip_corewxScrolledWindow.cpp:151
#11 0x00007ffff637e670 in sipwxScrolledWindow::~sipwxScrolledWindow()
(this=0x5555565ca568, __in_chrg=<optimized out>) at
../../../../sip/cpp/sip_corewxScrolledWindow.cpp:152
#12 0x00007ffff5feb922 in wxBookCtrlBase::AddPage(wxWindow*, wxString
const&, bool, int) (this=0x5555565ca820, page=0x5555567fcec0, text=...,
bSelect=false, imageId=-1)
So from my position of ignorance, I'm guessing that the Python code is
trying to add a page to a notebook, and somewhere inside all that there is
a Unicode error, and a bug is causing a Segfault rather than a smooth
reporting of the Unicode error. But if I could get debugging symbols for
wxPython I'd be able to take a closer look.
So I tried the usual approach to getting a debug build using setuptools,,
and find that wxPython's setup.py script doesn't recognise the --debug
switch. So could someone tell me how to make a debug build of wxPython.
FYI I'm running Linux/Debian unstable.
Help as always much appreciated.
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.