Project

General

Profile

Actions

Bug / Feature #1943

closed

Crash after/while create a new voting

Added by LukyLuke over 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
07 November 2011
Due date:
% Done:

100%

Estimated time:
Request Type:
Feature Request
Affected Program:
Affected Users:

Description

System.DllNotFoundException: libgmp-3.dll
Do I have to install/register the libgmp-3.dll from your packages somewhere in Mono?
Tried also to copy the file from your Testing-Packages to the Binary-Server and to the Libraries-Folder, with same error.

Exception on Server:

Executing request of type Pirate.PiVote.Rpc.CreateVotingRequest resulted in PiException with message Bad serializable
      format:System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
      ---> System.TypeInitializationException: An exception was thrown by the type initializer for Emil.GMP.BigInt
      ---> System.DllNotFoundException: libgmp-3.dll
  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 
  --- End of inner exception stack trace ---
  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 
  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, 
       System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, 
       System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) 
       [0x00000] in <filename unknown>:0 
  at System.Activator.CreateInstance (System.Type type, System.Object[] args, System.Object[] activationAttributes) 
       [0x00000] in <filename unknown>:0 
  at Pirate.PiVote.Serialization.DeserializeContext.ReadObject[VotingParameters] () [0x00000] in <filename unknown>:0 
  at Pirate.PiVote.Serialization.Serializable.FromBinary[VotingParameters] (System.Byte[] data) [0x00000] in <filename unknown>:0 .

Exception on Circle:

Operating system:    Unix 2.6.38.7
Program version:     1.1.3.0
Library version:     1.1.3.0
Message:             Binary data is currupted.

Server Message:      Bad serializable format:System.Reflection.TargetInvocationException:
                     Exception has been thrown by the target of an invocation.
                     ---> System.TypeInitializationException: An exception was thrown by the type initializer
                          for Emil.GMP.BigInt
                     ---> System.DllNotFoundException: libgmp-3.dll
  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 
  --- End of inner exception stack trace ---
  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 
  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, 
       System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, 
       System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) 
       [0x00000] in <filename unknown>:0 
  at System.Activator.CreateInstance (System.Type type, System.Object[] args, System.Object[] activationAttributes) 
       [0x00000] in <filename unknown>:0 
  at Pirate.PiVote.Serialization.DeserializeContext.ReadObject[VotingParameters] () [0x00000] in <filename unknown>:0 
  at Pirate.PiVote.Serialization.Serializable.FromBinary[VotingParameters] (System.Byte[] data) 
       [0x00000] in <filename unknown>:0 

Pirate.PiVote.PiFormatException: Binary data is currupted.
  at Pirate.PiVote.Rpc.VotingRpcProxy.Execute[CreateVotingResponse] (Pirate.PiVote.Rpc.RpcRequest`1 request) 
       [0x00000] in <filename unknown>:0 
  at Pirate.PiVote.Rpc.VotingRpcProxy.CreateVoting (Pirate.PiVote.Crypto.Signed`1 votingParameters, IEnumerable`1 authorities) 
       [0x00000] in <filename unknown>:0 
  at Pirate.PiVote.Rpc.VotingClient+CreateVotingOperation.Execute (Pirate.PiVote.Rpc.VotingClient client) 
       [0x00000] in <filename unknown>:0 

Mono-Version

bash-4.1$ mono --version
Mono JIT compiler version 2.10.6 (tarball Thu Sep 29 16:11:41 CEST 2011)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            Included Boehm (with typed GC and Parallel Mark)

Libraries:

LibGDIplus: 2.10
mono-addins: 0.6.1
gmp: 5.0.1

If you need any further information, please say how to compile the Server and/or Circle with more debug information and how to capture them with mono.
Maybe a debug-compilation of mono is needed?

Actions #1

Updated by Exception over 12 years ago

  • Status changed from New to 4

This depends on the operation system:
- Under Windows you must copy libgmp-3.dll to the executable folder.
- Under Linux and Mac OS X you must copy the Emil.GMP.dll.config and edit it so set the name of your GMP library.

Furthermore you need to have the library in the same architecture (x86 or amd64) as the .net executable. I'm compiling the Windows Pi-Vote for x86 so it works with the 32 bit library.

Actions #2

Updated by LukyLuke over 12 years ago

Thanks, this works now. also on my x64.

Actions #3

Updated by Exception over 12 years ago

  • Status changed from 4 to 3
  • % Done changed from 0 to 100
Actions #4

Updated by Exception over 12 years ago

  • Status changed from 3 to Closed
Actions

Also available in: Atom PDF