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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Timothy Redaelli (tredaelli)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

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
Comment by Timothy Redaelli (tredaelli) - Monday, 30 May 2016, 15:06 GMT
I can't reproduce it on KDE with updated mono and keepass (x86_64).

Any other information?
Comment by houmles (houmles) - Monday, 30 May 2016, 18:02 GMT
I am on slim+i3 and it will always crash when I switch workspace. Sometimes it crashes on password input even before main window opens.
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.
Comment by jakumi (jakumi) - Tuesday, 31 May 2016, 07:52 GMT
I have a similar problem. I'm running antergos and I also had a problem about a month ago.

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.
Comment by Timothy Redaelli (tredaelli) - Tuesday, 31 May 2016, 08:00 GMT
can you please try to delete /usr/share/keepass/KeePass.exe.so?
this evening I'll open an upstream bug about that and I'll try to replicate it
Comment by jakumi (jakumi) - Tuesday, 31 May 2016, 08:12 GMT
deleted it, bug still occured.
Comment by houmles (houmles) - Tuesday, 31 May 2016, 10:00 GMT
@jakumi You are right. It crashes when I press Windows key almost instantly. I have it set as modifier in i3 that's why it crashes when I switching windows.
@Timothy Confirmed, deleting .so didn't help.
Comment by jakumi (jakumi) - Friday, 03 June 2016, 05:11 GMT
Now it crashes on my manjaro as well. My last update may be a few days old, todays update triggers it (tried it right before the update, had no errors then).

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

Comment by jakumi (jakumi) - Thursday, 09 June 2016, 09:07 GMT
I had some weird issues with reproducability. Yesterday (I believe) it didn't crash, when I first (auto-) started it, but it crashed everytime I started it manually.
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.
Comment by David Parrish (dmp1ce) - Thursday, 09 June 2016, 17:12 GMT
Similar issue here. The crash occurs when I press the super key when Keepass has focus. I'm using xmonad.
Comment by Timothy Redaelli (tredaelli) - Tuesday, 14 June 2016, 23:34 GMT
Can you retry with last KeePass (2.34-1)?
Comment by David Parrish (dmp1ce) - Wednesday, 15 June 2016, 01:30 GMT
2.34-1 still crashes for me.
Comment by jakumi (jakumi) - Thursday, 16 June 2016, 07:40 GMT
2.34-1 still crashes for me too.

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?
Comment by Nils Bars (noEntry) - Sunday, 26 June 2016, 22:50 GMT
This is a bug in mono, thus we need to wait until it's fixed upstream.
Comment by Hendrik (hero) - Friday, 30 December 2016, 14:15 GMT
On the Mono Bugtracker (https://bugzilla.xamarin.com/show_bug.cgi?id=40069) one user suggests to add the flag "--verify-all" to the mono call.
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 "$@"

Loading...