buergerservice-org / KeePerso

KeePass2 Plugin for authentication with german Personalausweis
10 stars 1 forks source link

Assertion: should not be reached at metadata.c:3035 #1

Closed moritzgrede closed 10 months ago

moritzgrede commented 2 years ago

Steps to Reproduce

  1. After copying the plugin to the Plugin-folder, I started KeePass with Mono mono /usr/lib/keepass2/KeePass.exe
  2. KeePass won't start, Mono outputs the following error * Assertion: should not be reached at metadata.c:3035

System information:

Pop!_OS 21.10 Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-3.2 Wed Jun 30 05:34:49 UTC 2021).

Details

I've tried running the plugin with Mono and KeePass2 on Linux. When the plugin is copied to the folder KeePass will not start anymore. After removing the plugin, KeePass will start again. Running Mono in verbose mode shows the following output

[...]
converting method byte[] KeePassLib.Cryptography.CryptoUtil:HashSha256 (string)
Method byte[] KeePassLib.Cryptography.CryptoUtil:HashSha256 (string) emitted at 0x40989820 to 0x409899d7 (code length 439) [KeePass.exe]
converting method (wrapper managed-to-native) void System.Runtime.RuntimeImports:ZeroMemory (void*,uint)
Method (wrapper managed-to-native) void System.Runtime.RuntimeImports:ZeroMemory (void*,uint) emitted at 0x40989a10 to 0x40989aee (code length 222) [KeePass.exe]
converting method void KeePass.Plugins.PluginInfo:.ctor (string,System.Diagnostics.FileVersionInfo,string)
Method void KeePass.Plugins.PluginInfo:.ctor (string,System.Diagnostics.FileVersionInfo,string) emitted at 0x40989af0 to 0x40989e00 (code length 784) [KeePass.exe]
converting method KeePass.Plugins.Plugin KeePass.Plugins.PluginManager:CreatePluginInstance (string,string)
Method KeePass.Plugins.Plugin KeePass.Plugins.PluginManager:CreatePluginInstance (string,string) emitted at 0x40989e00 to 0x40989fc4 (code length 452) [KeePass.exe]
converting method void KeePersoCpp.KeePersoCppExt:.ctor ()
Method void KeePersoCpp.KeePersoCppExt:.ctor () emitted at 0x4098a020 to 0x4098a0a0 (code length 128) [KeePass.exe]
* Assertion: should not be reached at metadata.c:3035

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

=================================================================
    Native stacktrace:
=================================================================
    0x56042df2d48e - mono : (null)
    0x56042dc1ec0e - mono : (null)
    0x56042dc52b1e - mono : (null)
    0x7fe597e00520 - /lib/x86_64-linux-gnu/libc.so.6 : (null)
    0x7fe597e54808 - /lib/x86_64-linux-gnu/libc.so.6 : pthread_kill
    0x7fe597e00476 - /lib/x86_64-linux-gnu/libc.so.6 : raise
    0x7fe597de67b7 - /lib/x86_64-linux-gnu/libc.so.6 : abort
    0x56042dbd6591 - mono : (null)
    0x56042df100f7 - mono : monoeg_assertion_message
    0x56042ddf312d - mono : (null)
    0x56042ddf5d3d - mono : (null)
    0x56042dd6868a - mono : (null)
    0x56042de17e08 - mono : (null)
    0x56042de282ae - mono : (null)
    0x56042de13f3c - mono : (null)
    0x56042dbdd6b7 - mono : (null)
    0x56042dbde3c9 - mono : (null)
    0x56042de16d51 - mono : (null)
    0x56042de21339 - mono : (null)
    0x56042dd89104 - mono : (null)
    0x56042ddb15b7 - mono : (null)
    0x407bb5ec - Unknown

=================================================================
    Telemetry Dumper:
=================================================================
Pkilling 0x7fe594487640 from 0x7fe597db5780
Pkilling 0x7fe586ffd640 from 0x7fe597db5780
Entering thread summarizer pause from 0x7fe597db5780
Finished thread summarizer pause from 0x7fe597db5780.

Waiting for dumping threads to resume

=================================================================
    External Debugger Dump:
=================================================================
mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

=================================================================
    Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7fe597e54808):0x7fe597e547f8  b8 ba 00 00 00 0f 05 89 c7 b8 3e 00 00 00 0f 05  ..........>.....
0x7fe597e54808  41 89 c5 41 f7 dd 3d 00 f0 ff ff b8 00 00 00 00  A..A..=.........
0x7fe597e54818  44 0f 46 e8 eb aa 66 90 44 8b ab d0 02 00 00 e8  D.F...f.D.......
0x7fe597e54828  54 4a 05 00 89 ea 89 c7 44 89 ee b8 ea 00 00 00  TJ......D.......

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at System.Reflection.RuntimeConstructorInfo:InternalInvoke <0x000db>
      at System.Reflection.RuntimeConstructorInfo:InternalInvoke <0x0005f>
      at System.RuntimeType:CreateInstanceMono <0x00141>
      at System.RuntimeType:CreateInstanceSlow <0x00059>
      at System.RuntimeType:CreateInstanceDefaultCtor <0x00072>
      at System.Activator:CreateInstance <0x000c3>
      at System.RuntimeType:CreateInstanceImpl <0x006c5>
      at System.Activator:CreateInstance <0x001e9>
      at System.Activator:CreateInstanceFromInternal <0x0007c>
      at System.Activator:CreateInstanceFrom <0x0006a>
      at System.Activator:CreateInstanceFrom <0x00052>
      at System.Activator:CreateInstanceFrom <0x00030>
      at KeePass.Plugins.PluginManager:CreatePluginInstance <0x000fa>
      at KeePass.Plugins.PluginManager:LoadPlugins <0x0032b>
      at KeePass.Plugins.PluginManager:LoadAllPlugins <0x00163>
      at KeePass.Plugins.PluginManager:LoadAllPlugins <0x00343>
      at KeePass.Forms.MainForm:OnFormLoad <0x03987>
      at System.Windows.Forms.Form:OnLoad <0x0009b>
      at System.Windows.Forms.Form:OnLoadInternal <0x00093>
      at System.Windows.Forms.Form:OnCreateControl <0x00073>
      at System.Windows.Forms.Control:CreateControl <0x00157>
      at System.Windows.Forms.Control:WmShowWindow <0x0014f>
      at System.Windows.Forms.Control:WndProc <0x002ef>
      at System.Windows.Forms.ScrollableControl:WndProc <0x00033>
      at System.Windows.Forms.ContainerControl:WndProc <0x00073>
      at System.Windows.Forms.Form:WndProc <0x0027b>
      at KeePass.Forms.MainForm:WndProc <0x001e3>
      at ControlWindowTarget:OnMessage <0x0003c>
      at ControlNativeWindow:WndProc <0x00052>
      at System.Windows.Forms.NativeWindow:WndProc <0x0038b>
      at System.Windows.Forms.XplatUIX11:SendMessage <0x004a7>
      at System.Windows.Forms.XplatUIX11:MapWindow <0x00208>
      at System.Windows.Forms.XplatUIX11:CreateWindow <0x00e63>
      at System.Windows.Forms.XplatUI:CreateWindow <0x0003c>
      at System.Windows.Forms.NativeWindow:CreateHandle <0x00057>
      at System.Windows.Forms.Control:CreateHandle <0x00095>
      at System.Windows.Forms.Form:CreateHandle <0x00043>
      at System.Windows.Forms.Control:CreateControl <0x000a3>
      at System.Windows.Forms.Control:SetVisibleCore <0x000d3>
      at System.Windows.Forms.Form:SetVisibleCore <0x0038f>
      at KeePass.Forms.MainForm:SetVisibleCore <0x000c7>
      at System.Windows.Forms.Control:set_Visible <0x0004b>
      at System.Windows.Forms.Control:set_Visible <0x00083>
      at System.Windows.Forms.Application:RunLoop <0x003df>
      at System.Windows.Forms.Application:Run <0x0007f>
      at System.Windows.Forms.Application:Run <0x0004f>
      at KeePass.Program:MainPriv <0x0135f>
      at KeePass.Program:Main <0x00037>
      at <Module>:runtime_invoke_void_object <0x00091>
=================================================================
Aborted (core dumped)
moritzgrede commented 10 months ago

I honestly had forgotten about this issue. I am now back to Windows so I cannot reproduce or check this issue anymore. It may still be relevant to others, but due to the lack of any response or reaction I guess that it isn't as important. I am closing the issue.