[Bug 950087] Re: python2.7 crashed with SIGSEGV in g_object_newv() when using gi binding for xklavier (gir1.2-xkl-1.0)
Martin Pitt
martin.pitt at ubuntu.com
Fri Mar 9 06:41:34 UTC 2012
This is not a bug. The API does not publicly expose the constructor, i.
e. Xkl.Engine.new() does not exist. Xkl.Engine() invokes the GObject
constructor on it, which we cannot hide unfortunately.
The API documentation [1] shows that you need to use the singleton
function Xkl.Engine.get_instance(display) for this. This works fine, the
upstream code has a test script for all this, which you might steal from
[2].
[1] http://xlibs.freedesktop.org/xkbdesc/doc/libxklavier-xkl-engine.html#xkl-engine-get-instance
[2] http://cgit.freedesktop.org/libxklavier/tree/tests/test_gi.py
** Changed in: libxklavier (Ubuntu Precise)
Status: In Progress => Triaged
** Package changed: libxklavier (Ubuntu Precise) => ubiquity (Ubuntu
Precise)
** Changed in: ubiquity (Ubuntu Precise)
Assignee: Martin Pitt (pitti) => Stéphane Graber (stgraber)
** Summary changed:
- python2.7 crashed with SIGSEGV in g_object_newv() when using gi binding for xklavier (gir1.2-xkl-1.0)
+ Calls Xkl.Engine() gobject constructor which is invalid; needs to use Xkl.Engine.get_instance
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/950087
Title:
Calls Xkl.Engine() gobject constructor which is invalid; needs to use
Xkl.Engine.get_instance
Status in “ubiquity” package in Ubuntu:
Triaged
Status in “ubiquity” source package in Precise:
Triaged
Bug description:
stgraber at castiana:~/data/code/ubiquity/ubiquity$ python
Python 2.7.2+ (default, Feb 16 2012, 18:47:58)
[GCC 4.6.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import Xkl
>>> test = Xkl.Engine()
Segmentation fault (core dumped)
Mostly annoying as it's blocking the bugfix for bug 800561
ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: python2.7-minimal 2.7.2-13ubuntu5
ProcVersionSignature: Ubuntu 3.2.0-18.28-generic 3.2.9
Uname: Linux 3.2.0-18-generic x86_64
ApportVersion: 1.94.1-0ubuntu1
Architecture: amd64
Date: Thu Mar 8 12:04:58 2012
ExecutablePath: /usr/bin/python2.7
ProcCmdline: python
ProcEnviron:
SHELL=/bin/bash
TERM=xterm
LANG=en_US.UTF-8
SegvAnalysis:
Segfault happened at: 0x7f6446e98bef: movslq 0xe0(%r12),%rax
PC (0x7f6446e98bef) ok
source "0xe0(%r12)" (0x000000e0) not located in a known VMA region (needed readable region)!
destination "%rax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: python2.7
StacktraceTop:
?? () from /usr/lib/libxklavier.so.16
g_object_newv () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
?? () from /usr/lib/python2.7/dist-packages/gi/_gobject/_gobject.so
?? () from /usr/lib/python2.7/dist-packages/gi/_gobject/_gobject.so
?? ()
Title: python2.7 crashed with SIGSEGV in g_object_newv()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: pkcs11
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/950087/+subscriptions
More information about the foundations-bugs
mailing list