This looks like a bug in the python interpreter.
The routine setup_context in Python/_warnings.c looks like this.
setup_context(Py_ssize_t stack_level, PyObject **filename, int *lineno,
PyObject **module, PyObject **registry)
{
PyObject *globals;
/* Setup globals and lineno. */
PyFrameObject *f = PyThreadState_GET()->frame;
PyThreadState_GET is a macro defined in Include/pystate.h
#ifdef Py_DEBUG
#define PyThreadState_GET() PyThreadState_Get()
#else
#define PyThreadState_GET() (_PyThreadState_Current)
#endif
Py_DEBUG does not appear to have been defined when this version of
python was compiled. So the contents of _PyThreadState_Current are used
as a pointer. Unfortunately it looks like this routine can be called
when it is set to NULL. I put a break on the do_warn function in the
interpreter and ran hp-systray -g -x. The first time it triggers
(_PyThreadState_Current is non NULL and all is OK. The second time it is
NULL and the crash occurs. This may be because this warning is being
triggered deep in the initialisation code of a python object.
I do not know whether this is a python bug or an hplip bug. Maybe a
python expert can comment on this.
P.S. the python assembly code is heavily inline optimised by gcc so is
very hard to relate to real line numbers.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to hplip in Ubuntu.
https://bugs.launchpad.net/bugs/860680
Title:
systray.py crashed with SIGSEGV
Status in HP Linux Imaging and Printing:
New
Status in “hplip” package in Ubuntu:
Confirmed
Bug description:
system reboot and after loading the desktop the error happened.
ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: hplip-data 3.11.7-1ubuntu2
ProcVersionSignature: Ubuntu 3.0.0-11.18-generic 3.0.4
Uname: Linux 3.0.0-11-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 1.23-0ubuntu1
Architecture: amd64
CrashCounter: 1
Date: Tue Sep 27 11:33:43 2011
EcryptfsInUse: Yes
ExecutablePath: /usr/share/hplip/systray.py
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110922)
InterpreterPath: /usr/bin/python2.7
Lpstat: device for Officejet6500: hp:/net/Officejet_6500_E709n?ip=10.80.0.11
MachineType: Dell Inc. Inspiron N7010
PackageArchitecture: all
Papersize: letter
PpdFiles: Officejet6500: HP Officejet 6500 e709n hpijs, 3.11.7
ProcCmdline: python /usr/bin/hp-systray
ProcCwd: /home/rbrown
ProcEnviron:
SHELL=/bin/bash
LANG=en_US.UTF-8
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-11-generic
root=UUID=e545f842-1c5b-4880-b81d-75cfaeef4f0c ro quiet splash vt.handoff=7
SegvAnalysis:
Segfault happened at: 0x49c60b: mov 0x10(%rax),%rdi
PC (0x0049c60b) ok
source "0x10(%rax)" (0x00000010) not located in a known VMA region (needed
readable region)!
destination "%rdi" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: hplip
StacktraceTop:
?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
Title: systray.py crashed with SIGSEGV
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 10/20/2010
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A09
dmi.board.name: 08VFX1
dmi.board.vendor: Dell Inc.
dmi.board.version: A09
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: A09
dmi.modalias:
dmi:bvnDellInc.:bvrA09:bd10/20/2010:svnDellInc.:pnInspironN7010:pvrA09:rvnDellInc.:rn08VFX1:rvrA09:cvnDellInc.:ct8:cvrA09:
dmi.product.name: Inspiron N7010
dmi.product.version: A09
dmi.sys.vendor: Dell Inc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/hplip/+bug/860680/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp