FS#49511 - [keepass] 2.33-1 core dumped in last version
Attached to Project:
Community Packages
Opened by houmles (houmles) - Monday, 30 May 2016, 08:31 GMT
Last edited by Timothy Redaelli (tredaelli) - Tuesday, 03 January 2017, 11:43 GMT
Opened by houmles (houmles) - Monday, 30 May 2016, 08:31 GMT
Last edited by Timothy Redaelli (tredaelli) - Tuesday, 03 January 2017, 11:43 GMT
|
Details
Description:
After updating to 2.33-1 version, keepass crashing after couple of seconds running. Additional info: Downgrading to previous version fixed the problem. Mono debug log attached. Steps to reproduce: Just update to latest version and run it. |
This task depends upon
Closed by Timothy Redaelli (tredaelli)
Tuesday, 03 January 2017, 11:43 GMT
Reason for closing: Fixed
Additional comments about closing: In 2.34-2
Tuesday, 03 January 2017, 11:43 GMT
Reason for closing: Fixed
Additional comments about closing: In 2.34-2
Any other information?
I just tried it on slim+openbox and it didn't crash.
Maybe it's because i3 doesn't have tray bar where to put icon?
Anyway it looks like it's not problem with keepass itself but something around WM then.
I don't know which information you need to find the culprit without me trying all diferent combinations.
To cause the crash, I just pressed the Windows-Key when the KeePass window had focus. This happened on antergos (and at the same time, it did not happen on manjaro, if that helps).
The last time, I tried to investigate (poking around with mono parameters) and the problem disappeared (permanently) when I used mono --debug / --aot / --verbose / --trace. Back then it crashed in libc.so.6.
I guess something on my system changed, because the problem reappeared today. Now it crashes with the same output as from houmles.
However: The crash occurs with "mono --debug KeePass.exe" but does NOT occur when I call "mono --debug=mdb-optimizations KeePass.exe". (again, found by randomly chosing parameters).
I'm not used to debugging so I don't know how to provide better insights. If I can help in any way, I'd be willing to put some effort into this.
this evening I'll open an upstream bug about that and I'll try to replicate it
@Timothy Confirmed, deleting .so didn't help.
downgraded to 2.32-1, crash (anomaly, see below, but maybe error on my part)
downgraded to 2.31-1 (plugins recompiled) no crash
upgraded to 2.32-1 (no recompiles) no crash
upgraded to 2.33-1 (no recompiles) crash
on repetition: it did not crash any more on 2.32-1
Now it was the other way around. I'm starting to think there may be some related issue here, that might not have to do with keepass. But I don't know how to investigate.
okay, so I did a series of tests where I tried different parameters with mono. In the end, I found that 2.34-1 (and probably 2.33-1 as well) crashes *most of the time* on the first super key press. However, if it so happens that it doesn't crash on the first super key press, it appears to be robust until closed. It took usually up to ten tries (which probably is irrelevant)
I just noticed that the startup messages differ on crashing and non-crashing starts: the non-crashing starts post a "Could not set X locale modifiers" right before the SendMessage(...). Perhaps this helps in some way?
In my tests this is a valid workaround to the Mono bug and thus I am asking, if the file /usr/bin/keepass could be changed accordingly:
#!/bin/sh
exec mono --verify-all /usr/share/keepass/KeePass.exe "$@"