kee-org / KeeFox

Legacy browser and XUL application integration with KeePass Password Safe. See https://github.com/kee-org/browser-addon for the new version for Firefox 57+
https://forum.kee.pm
418 stars 48 forks source link

KeePass2 crashs when trying to active KeeFox plugin 1.5.3b1 on OS X #508

Closed baurmatt closed 9 years ago

baurmatt commented 9 years ago

System Informations:

OS X Yosemite 10.10.4 Firefox 39.0 KeePass 2.29 (zip Package) mono 4.0.2 (installed through homebrew) wine 1.6.2 (installed through homebrew) donet20 (installed through winetricks) KeeFox 1.5.3b1

Problem

When i try to activate the plugin in KeePass, it crashs an gives me the following error message:

Unhandled exception: 0xe0434f4d in 32-bit code (0x7b8287ea).
Register dump:
 CS:001b SS:0023 DS:0023 ES:0023 FS:103f GS:000f
 EIP:7b8287ea ESP:05f5ed64 EBP:05f5eddc EFLAGS:00000202(   - --  I   - - - )
 EAX:7b81948d EBX:05607790 ECX:00000000 EDX:00000000
 ESI:e0434f4d EDI:e0434f4d
Stack dump:
0x05f5ed64:  05f5ee14 00000004 0000003c e0434f4d
0x05f5ed74:  00000001 00000000 7b8287ea 00000001
0x05f5ed84:  80131509 031e2000 00000036 00000006
0x05f5ed94:  0321abcc 008cbe3f e0434f4d 05f5ee14
0x05f5eda4:  031e2000 02000036 05f5edc0 008d14da
0x05f5edb4:  05f5edcc 02000036 00000001 05f5ee3c
0207: sel=103f base=7fef0000 limit=00000fff 32-bit rw-
Backtrace:
=>0 0x7b8287ea in kernel32 (+0x187ea) (0x05f5eddc)
  1 0x009e7065 in mscorwks (+0x127064) (0x05f5ee3c)
  2 0x00ae45a4 in mscorwks (+0x2245a3) (0x05f5ef00)
  3 0x03f76315 in system.ni (+0x96314) (0x0111eea8)
  4 0x0106944c (0x04201bb0)
  5 0x00000014 (0x021c0000)
0x7b8287ea: leal    0xfffffffc(%ebp),%esp
Modules:
Module  Address         Debug info  Name (53 modules)
PE    330000-  375000   Deferred        mscoree
PE    400000-  69c000   Deferred        keepass
PE    8c0000-  e21000   Export          mscorwks
PE   31e0000- 3cc6000   Deferred        mscorlib.ni
PE   3e80000- 3ed3000   Deferred        mscorjit
PE   3ee0000- 469e000   Export          system.ni
PE   46a0000- 4834000   Deferred        system.drawing.ni
PE   4840000- 54c6000   Deferred        system.windows.forms.ni
PE   5a30000- 5a42000   Deferred        fleck2
PE   5c80000- 5cc2000   Deferred        keepassrpc
PE   6720000- 6742000   Deferred        jayrock.json
PE   6770000- 67be000   Deferred        keepassrpc.mono.security
PE  10000000-1000a000   Deferred        domainpublicsuffix
PE  11000000-11010000   Deferred        jayrock
PE  402c0000-402c4000   Deferred        advapi32
PE  40330000-40334000   Deferred        shlwapi
PE  403b0000-403de000   Deferred        user32
PE  404e0000-404e4000   Deferred        gdi32
PE  405f0000-405f4000   Deferred        version
PE  40690000-40693000   Deferred        winemac
PE  44620000-44624000   Deferred        msvcrt
PE  446c0000-446c4000   Deferred        wintrust
PE  446f0000-446f6000   Deferred        crypt32
PE  44780000-447a0000   Deferred        comctl32
PE  44870000-44874000   Deferred        uxtheme
PE  448a0000-448a3000   Deferred        softpub
PE  448c0000-448c3000   Deferred        imagehlp
PE  448d0000-448d4000   Deferred        rsaenh
PE  44930000-44938000   Deferred        ole32
PE  44a50000-44a54000   Deferred        rpcrt4
PE  44b20000-44c2e000   Deferred        shell32
PE  44d00000-44d04000   Deferred        shfolder
PE  44d10000-44d13000   Deferred        secur32
PE  44d50000-44d53000   Deferred        netapi32
PE  44d80000-44d84000   Deferred        iphlpapi
PE  44da0000-44da4000   Deferred        ws2_32
PE  44dd0000-44dd4000   Deferred        gdiplus
PE  44e60000-44e67000   Deferred        oleaut32
PE  44f80000-44f84000   Deferred        riched20
PE  44ff0000-44ff4000   Deferred        imm32
PE  45010000-45016000   Deferred        windowscodecs
PE  45c70000-45c73000   Deferred        usp10
PE  45d60000-45d63000   Deferred        wtsapi32
PE  468e0000-468e4000   Deferred        mswsock
PE  468f0000-468f4000   Deferred        explorerframe
PE  5e380000-5e409000   Deferred        diasymreader
PE  64020000-64033000   Deferred        mscorsec
PE  641f0000-6420d000   Deferred        shfusion
PE  64890000-648f2000   Deferred        system.configuration
PE  69be0000-6a148000   Deferred        system.xml.ni
PE  78130000-781cb000   Deferred        msvcr80
PE  7b810000-7b866000   Export          kernel32
PE  7bc10000-7bc14000   Deferred        ntdll
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) Z:\Applications\KeePass2\KeePass.exe
    0000003d    0
    00000039    0
    00000038    0
    00000037    0
    00000036    0
    00000035    0 <==
    00000034    0
    0000002e    0
    0000002d    0
    0000002c    2
    0000002b    0
    00000009    0
0000000e services.exe
    00000027    0
    00000026    0
    0000001f    0
    0000001a    0
    00000018    0
    00000016    0
    00000010    0
    0000000f    0
00000012 mscorsvw.exe
    0000001c    0
    0000001b    0
    00000019    0
    00000013    0
00000014 explorer.exe
    0000002a    0
    00000015    0
0000001d winedevice.exe
    00000025    0
    00000022    0
    00000021    0
    0000001e    0
00000023 plugplay.exe
    00000029    0
    00000028    0
    00000024    0
System information:
    Wine build: wine-1.6.2
    Platform: i386
    Host system: Darwin
    Host version: 14.4.0
dlech commented 9 years ago

Looks like a bug in Wine. Unfortunately, I don't have an experience in that area, so I can't really help you there. You could try running using Mono instead of Wine though.

baurmatt commented 9 years ago

Sorry. Yes the stacktrace above is the one i'm getting from wine. With mono the program isn't even starting. I'm getting this error message:

ERR 134 : mbaur@mbaur(2015-07-16 11:00:00)  /Applications/KeePass2
$ mono KeePass.exe
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Windows.Forms.CarbonInternal.Pasteboard.PasteboardPutItemFlavor (intptr,uint,uint,intptr,uint) <0xffffffff>
  at System.Windows.Forms.CarbonInternal.Pasteboard.Store (intptr,object,int) <0x000bb>
  at System.Windows.Forms.XplatUICarbon.ClipboardStore (intptr,object,int,System.Windows.Forms.XplatUI/ObjectToClipboard,bool) <0x0002c>
  at System.Windows.Forms.XplatUI.ClipboardStore (intptr,object,int,System.Windows.Forms.XplatUI/ObjectToClipboard,bool) <0x0004d>
  at System.Windows.Forms.Clipboard.Clear () <0x0002b>
  at KeePassLib.Utility.MessageService.ShowFatal (object[]) <0x00172>
  at KeePass.Program.Main (string[]) <0x010fc>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

Debug info from gdb:

(lldb) command source -s 1 '/tmp/mono-gdb-commands.xWDagc'

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Process 7763 detached
(lldb) Abort trap: 6
luckyrat commented 9 years ago

Looks like the wrong version of Mono. Usually the latest version will work best but if not you should be able to find advice on the KeePass website.