Skip to content
This repository has been archived by the owner on Dec 14, 2019. It is now read-only.

python2.7: segfault and error 4 in libg15.so.1.0.1 #30

Open
netfab opened this issue Aug 19, 2015 · 6 comments
Open

python2.7: segfault and error 4 in libg15.so.1.0.1 #30

netfab opened this issue Aug 19, 2015 · 6 comments

Comments

@netfab
Copy link

netfab commented Aug 19, 2015

Sometimes (not very often) my keyboard stops responding.
When this happens, I un/re-plug it, and relaunch the g15-desktop-service, and its ok.
In logs I'm getting this :

python2.7[3779]: segfault at 7f8243fff030 ip 00007f826c823f03 sp 00007f82537fc500 error 4 in libg15.so.1.0.1[7f826c822000+4000]

Is there any way to launch it through gdb to get a backtrace ?

Thanks !

@CMoH
Copy link
Owner

CMoH commented Oct 14, 2015

I'm not really sure; I have not really looked inside the workings of gnome15, since it has (had?) its own maintainer. My contributions are related to installing it on Gentoo, some fixes to the lg4l kernel and some minor modifications of gnome15 "just enough to make it work".

On my G19 am am only annoyed that the non-standard keys don't work after suspend/resume. Your crash seems related to a G15 keyboard; I might take a look at libg15, but it would be wonderful if you had a more meaningful stacktrace:

https://wiki.gentoo.org/wiki/Debugging
https://wiki.gentoo.org/wiki/Knowledge_Base:Overriding_environment_variables_per_package

@netfab
Copy link
Author

netfab commented Oct 14, 2015

The problem is that I don't know how to get this backtrace, since the whole thing is launched through /usr/bin/g15-desktop-service which is a python script. I already tried to automatically run it through gdb on desktop start, but this does not work. I don't know how libg15.so.1.0.1 is started.

@netfab
Copy link
Author

netfab commented Oct 14, 2015

Maybe this : https://wiki.python.org/moin/DebuggingWithGdb
Seems that I need to rebuild python2.7 with debug symbols, and maybe tweak /usr/bin/g15-desktop-service to use python2.7 with gdb. Will try this when I find time.

@CMoH
Copy link
Owner

CMoH commented Oct 14, 2015

I think the issue is within libg15 rather than python; but if libg15 is loaded into python it is worth compiling both with debug symbols.

@netfab
Copy link
Author

netfab commented Dec 30, 2015

This always happens from time to time.

libg15.so.1 is loaded from pylibg15.py in /usr/lib64/python2.7/site-packages/gnome15/drivers :

libg15 = cdll.LoadLibrary("libg15.so.1")

But I don't if and how there's a way to load it using gdb.

@netfab
Copy link
Author

netfab commented Dec 19, 2017

For the record, some months ago I forked libg15-gnome15. I renamed it to libg15 (ebuild) and I fixed some gcc warnings and made the code stronger by checking return values. Everything is in the ChangeLog.

I do not remember seeing this segfault again, but to be honest, I do not use this library anymore on this system since I'm developing my own project with newer libusb.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants