Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#12265 - xbindkeys segfaults

Attached to Project: Arch Linux
Opened by Peter Avramucz (muczyjoe) - Friday, 28 November 2008, 07:58 GMT
Last edited by Thayer Williams (thayer) - Sunday, 01 February 2009, 22:42 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Thayer Williams (thayer)
Architecture All
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I get this in dmesg in 3 Arch Linux machines (2 desktop, 1 laptop):
xbindkeys[2779]: segfault at 4 ip b7ea1031 sp bfb9c870 error 4 in libX11.so.6.2.0[b7e76000+eb000]
I have tried rebuilding xbindkeys, but it's the same.
This task depends upon

Closed by  Thayer Williams (thayer)
Sunday, 01 February 2009, 22:42 GMT
Reason for closing:  Works for me
Additional comments about closing:  Cannot reproduce this bug.
Comment by Jens Adam (byte) - Sunday, 30 November 2008, 06:47 GMT
Heh, funny. I have no problem with xbindkeys, starts and runs fine, but I get this with tilda instead:
tilda[5737]: segfault at 0 ip 080501fb sp bfe26300 error 4 in tilda[8048000+14000]
Rebuilding didn't help either.
Comment by Thayer Williams (thayer) - Thursday, 04 December 2008, 19:02 GMT
I am unable to reproduce this on my machines, which are all i686-based. Peter, are your three machines running x86_64? Preliminary googling suggests this might be an x86_64 specifc issue.
Comment by Peter Avramucz (muczyjoe) - Thursday, 04 December 2008, 19:10 GMT
All of my machines are i686.
Comment by Thayer Williams (thayer) - Thursday, 04 December 2008, 20:30 GMT
Are you using a customized .xbindkeysrc? If so, have you tried removing it to see if it successfully loads without it?

If that fixes the problem, post the config here and we'll see what's what.

Comment by Peter Avramucz (muczyjoe) - Thursday, 04 December 2008, 21:08 GMT
I've included a 5 second sleep before starting xbindkeys, in gnome-session-manager. Since this, I no longer have a problem.
Here is my config:
"/home/muczy/bin/start-firefox.sh"
c:180

"/home/muczy/bin/start-firefox.sh"
b:9

"gnome-terminal"
c:133
Comment by Thayer Williams (thayer) - Thursday, 04 December 2008, 21:18 GMT
Well, I'm glad you got it working. I've never seen such short keybinds before--typically they are two parts such as "m:0x10 + c:134".

Before I close this bug, could you rename .xbindkeysrc to something else, start the utility without a 5 second delay and then post your results? I'm curious to know whether this could be a syntax-related error--though it does sound like it's related to load order.
Comment by Peter Avramucz (muczyjoe) - Friday, 05 December 2008, 08:57 GMT
I think, some xorg-related update solved my problem... On my second machine, I don't use this 5 second sleep, and it's working fine since xorg 1.5 update. I'm gonna delete the 5 sec sleep at my first machine, and write the results here.
Comment by Peter Avramucz (muczyjoe) - Friday, 05 December 2008, 16:22 GMT
Well I've tried it on the first machine, and it works without the 5 sec sleep. So some update solved it for me...
Comment by Thayer Williams (thayer) - Friday, 05 December 2008, 17:19 GMT
That's great and I appreciate the update...I'll consider that a wrap for now then.

Cheers
Comment by Peter Avramucz (muczyjoe) - Wednesday, 10 December 2008, 17:50 GMT
  • Field changed: Percent Complete (100% → 0%)
Another segfault today:
xbindkeys[2801]: segfault at 4 ip b7f77031 sp bfe70b40 error 4 in libX11.so.6.2.0[b7f4c000+eb000]
Comment by Jens Adam (byte) - Wednesday, 10 December 2008, 19:03 GMT
For the record: I fixed my tilda segfaults; empty config file was the culprit.
Comment by Thayer Williams (thayer) - Wednesday, 10 December 2008, 19:27 GMT
Peter, I do suspect this is related to your ~/.xbindkeysrc as well. A couple of questions to help get the ball rolling...

How are you launching xbindkeys? If it's by a startup script such as ~/.xinitrc, can you please attach that file.

Regarding the config you posted above, can you please attach the entire file?

Can you verify that the keycodes above (c:180, b:9, c:133) are in fact what are displayed (in totality) when you execute 'xbindkeys -mk' and press those keys?
Comment by Peter Avramucz (muczyjoe) - Thursday, 11 December 2008, 08:13 GMT
I launch it via gnome-session-manager. xbindkeys -mk says (I did press the two buttons, didn't hold alt/shift/ctrl):
"(Scheme function)"
m:0x2050 + c:133
Mod2+Mod4 + Super_L
"(Scheme function)"
m:0x2050 + c:134
Mod2+Mod4 + Super_R
But if I set e.g. m:0x2050 + c:133 in my config, it simply doesn't work.
Which is pasted above, is my whole config file.
Comment by Thayer Williams (thayer) - Thursday, 11 December 2008, 17:13 GMT
I really don't know what else to suggest. I've looked at dozens of xbindkeysrc files and not one of them uses a single keycode syntax the way yours is configured. For that matter, I've never seen a modifier keycode so long either.

What I have been able to assess is that similar segfault behaviour has been reported in the wild by a few others, and it was found to be due to an improperly configured rc file. The fact that your config does not conform to any others, leads me to believe this is the cause of your segfaults as well.

Edit: Actually, I do have a couple suggestions...

1.) Kill xbindkeys, then launch it from a terminal with 'xbindkeys -v' and look for any relevant messages

2.) Set your keycodes to the same codes suggested by 'xbindkeys -k' and see whether it segfaults (regardless of whether your scripts actually execute)

3.) Send your keyboard make/model and config info upstream to the xbindkeys developer (hocwp at free dot fr). Perhaps the input device is generating codes that xbindkeys cannot process currently.

Loading...