Bug / Feature #3658
closedPivote crashes with newer libgmp
100%
Description
Hi, this is on Debian Sid:
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Emil.GMP.BigInt ---> System.DllNotFoundException: libgmp.so.3
at (wrapper managed-to-native) Emil.GMP.BigInt:__gmpz_init_set_si (Emil.GMP.BigInt/MpzValue&,int)
at Emil.GMP.BigInt..ctor (Int32 value) [0x00000] in <filename unknown>:0
at Emil.GMP.BigInt..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Pirate.PiVote.Serialization.DeserializeContext.ReadBigInt () [0x00000] in <filename unknown>:0
at Pirate.PiVote.Crypto.BaseParameters.Deserialize (Pirate.PiVote.Serialization.DeserializeContext context, Byte version) [0x00000] in <filename unknown>:0
at Pirate.PiVote.Crypto.VotingParameters.Deserialize (Pirate.PiVote.Serialization.DeserializeContext context, Byte version) [0x00000] in <filename unknown>:0
at Pirate.PiVote.Serialization.Serializable..ctor (Pirate.PiVote.Serialization.DeserializeContext context, Byte version) [0x00000] in <filename unknown>:0
at Pirate.PiVote.Crypto.BaseParameters..ctor (Pirate.PiVote.Serialization.DeserializeContext context, Byte version) [0x00000] in <filename unknown>:0
at Pirate.PiVote.Crypto.VotingParameters..ctor (Pirate.PiVote.Serialization.DeserializeContext context, Byte version) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for Emil.GMP.BigInt ---> System.DllNotFoundException: libgmp.so.3
at (wrapper managed-to-native) Emil.GMP.BigInt:__gmpz_init_set_si (Emil.GMP.BigInt/MpzValue&,int)
at Emil.GMP.BigInt..ctor (Int32 value) [0x00000] in <filename unknown>:0
at Emil.GMP.BigInt..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Pirate.PiVote.Serialization.DeserializeContext.ReadBigInt () [0x00000] in <filename unknown>:0
at Pirate.PiVote.Crypto.BaseParameters.Deserialize (Pirate.PiVote.Serialization.DeserializeContext context, Byte version) [0x00000] in <filename unknown>:0
at Pirate.PiVote.Crypto.VotingParameters.Deserialize (Pirate.PiVote.Serialization.DeserializeContext context, Byte version) [0x00000] in <filename unknown>:0
at Pirate.PiVote.Serialization.Serializable..ctor (Pirate.PiVote.Serialization.DeserializeContext context, Byte version) [0x00000] in <filename unknown>:0
at Pirate.PiVote.Crypto.BaseParameters..ctor (Pirate.PiVote.Serialization.DeserializeContext context, Byte version) [0x00000] in <filename unknown>:0
at Pirate.PiVote.Crypto.VotingParameters..ctor (Pirate.PiVote.Serialization.DeserializeContext context, Byte version) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
There is no libgmp.so.3; there is only either libgmp.so, or libgmp.so.10 (!). Probably just a compile/build problem. I'd build it myself, but I could not find any debian source-packages (source as tar.gz, along with maybe a .patch and a .dsc).