There might be an 64bit->32bit bug in the ctypes module of python. I'm
investigating a bug where a python app does:

xlib = ctypes.cdll.LoadLibrary( 'libX11.so.6')
xlib_dpy = xlib.XOpenDisplay( os.environ['DISPLAY'])
xlib_root = xlib.XDefaultRootWindow( xlib_dpy)

On my Gentoo x86_64 machine this fails, because down in C country
xlib_dpy is returned from XOpenDisplay as 64bit, when when it ends up in
python country it is chopped off the higher bits and ends up being a
32bit value. Back down in C country for the next python line - since it
is a pointer - XDefaultRootWindow accesses the wrong memory segment and
we get a SEGV.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/694249

Title:
  blueman-applet crashed with SIGSEGV in Py_DecRef()

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to