[Mono-list] Problem in running mono

ciabo89 ciabo89 at hotmail.com
Wed May 22 12:28:38 UTC 2013


Hi Everyone, 
I'm a new user of mono and i'm using it on Linux for my master project. In
the machine where i run it i have installed mono with apt-get mono-complete,
and the version i have is:

Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.2)
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)

Running my executable with mono, I got after some time, the following error:


 at (wrapper managed-to-native) System.MonoType.GetInterfaces
(System.MonoType) <0xffffffff>
  at System.MonoType.GetInterface (string,bool) <0x00041>
  at MicrosoftResearch.Infer.Distributions.Distribution.GetDomainType
(System.Type) <0x00080>
  at #cc.#Np.#Jp
(MicrosoftResearch.Infer.Transforms.ChannelInfo,System.Type) <0x000af>
  at #cc.#Np.#Wo
(string,MicrosoftResearch.Infer.Transforms.ChannelInfo,#cc.#Op,MicrosoftResearch.Infer.Transforms.MessageDirection,#cc.#Om[])
<0x00383>
  at #cc.#Np.ConvertVariableDeclExpr
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IVariableDeclarationExpression)
<0x002af>
  at MicrosoftResearch.Transforms.CopyTransform.DoConvertExpression
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IExpression) <0x00ae5>
  at MicrosoftResearch.Transforms.CopyTransform.ConvertExpression
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IExpression) <0x00045>
  at #cc.#Np.ConvertAssign
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IAssignExpression)
<0x00221>
  at MicrosoftResearch.Transforms.CopyTransform.DoConvertExpression
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IExpression) <0x00184>
  at MicrosoftResearch.Transforms.CopyTransform.ConvertExpression
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IExpression) <0x00045>
  at MicrosoftResearch.Transforms.CopyTransform.ConvertExpressionStatement
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IExpressionStatement)
<0x00071>
  at MicrosoftResearch.Transforms.CopyTransform.DoConvertStatement
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IStatement) <0x00358>
  at MicrosoftResearch.Transforms.CopyTransform.ConvertStatement
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IStatement) <0x0005b>
  at MicrosoftResearch.Transforms.CopyTransform.ConvertStatements
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IStatementCollection,MicrosoftResearch.Transforms.CodeModel.Interfaces.IStatementCollection)
<0x000a8>
  at MicrosoftResearch.Transforms.CopyTransform.DoConvertMethodBody
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IStatementCollection,MicrosoftResearch.Transforms.CodeModel.Interfaces.IStatementCollection)
<0x00032>
  at #cc.#Np.DoConvertMethodBody
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IStatementCollection,MicrosoftResearch.Transforms.CodeModel.Interfaces.IStatementCollection)
<0x00567>
  at MicrosoftResearch.Transforms.CopyTransform.DoConvertMethod
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IMethodDeclaration,MicrosoftResearch.Transforms.CodeModel.Interfaces.IMethodDeclaration)
<0x0045a>
  at MicrosoftResearch.Transforms.CopyTransform.ConvertMethod
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IMethodDeclaration)
<0x0030c>
  at #cc.#Np.ConvertMethod
(MicrosoftResearch.Transforms.CodeModel.Interfaces.IMethodDeclaration)
<0x00027>
  at MicrosoftResearch.Transforms.CopyTransform.ConvertMethods
(MicrosoftResearch.Transforms.CodeModel.Interfaces.ITypeDeclaration,MicrosoftResearch.Transforms.CodeModel.Interfaces.ITypeDeclaration)
<0x000ba>
  at MicrosoftResearch.Transforms.CopyTransform.ConvertType
(MicrosoftResearch.Transforms.CodeModel.Interfaces.ITypeDeclaration)
<0x001af>
  at MicrosoftResearch.Transforms.CopyTransform.Transform
(MicrosoftResearch.Transforms.CodeModel.Interfaces.ITypeDeclaration)
<0x0002e>
  at #cc.#Np.Transform
(MicrosoftResearch.Transforms.CodeModel.Interfaces.ITypeDeclaration)
<0x00157>
  at MicrosoftResearch.Transforms.CodeTransformer.TransformToDeclaration
(MicrosoftResearch.Transforms.CodeModel.Interfaces.ITypeDeclaration)
<0x00110>
  at MicrosoftResearch.Transforms.TransformerChain.TransformToDeclaration
(MicrosoftResearch.Transforms.CodeModel.Interfaces.ITypeDeclaration,MicrosoftResearch.Transforms.AttributeRegistry`2<object,
object>,bool,bool,bool,bool,bool) <0x003fb>
  at MicrosoftResearch.Infer.ModelCompiler.GetTransformedDeclaration
(MicrosoftResearch.Transforms.CodeModel.Interfaces.ITypeDeclaration,System.Reflection.MethodBase,MicrosoftResearch.Transforms.AttributeRegistry`2<object,
object>) <0x001a7>
  at MicrosoftResearch.Infer.ModelCompiler.CompileWithoutParams
(MicrosoftResearch.Transforms.CodeModel.Interfaces.ITypeDeclaration,System.Reflection.MethodBase,MicrosoftResearch.Transforms.AttributeRegistry`2<object,
object>) <0x000c3>
  at MicrosoftResearch.Infer.InferenceEngine.Compile () <0x00153>
  at MicrosoftResearch.Infer.InferenceEngine.BuildAndCompile
(bool,System.Collections.Generic.IEnumerable`1<MicrosoftResearch.Infer.Models.IVariable>)
<0x002cb>
  at MicrosoftResearch.Infer.InferenceEngine.GetCompiledInferenceAlgorithm
(bool,MicrosoftResearch.Infer.Models.IVariable) <0x0009b>
  at MicrosoftResearch.Infer.InferenceEngine.InferAll
(bool,MicrosoftResearch.Infer.Models.IVariable) <0x0002b>
  at MicrosoftResearch.Infer.InferenceEngine.Infer<TReturn>
(MicrosoftResearch.Infer.Models.IVariable) <0x00027>
  at Project3_RealCS.ModelRS.Test (string,string,single&,double&,string&)
<0x0065b>
  at Project3_RealCS.Program.RunTutorial () <0x0060f>
  at Project3_RealCS.Program.Main () <0x0000b>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        mono() [0x4916ba]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7f93c322bcb0]
        /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f93c2e93425]
        /lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7f93c2e96b8b]
        mono() [0x5d90b9]
        mono() [0x5d15fa]
        mono() [0x5d1810]
        mono() [0x5d1a5a]
        mono() [0x5d1be9]
        mono() [0x5d48ba]
        mono() [0x5d56dd]
        mono() [0x5db761]
        mono(mono_array_new_specific+0xf2) [0x5606c2]
        mono() [0x517d6d]
        [0x40b23576]

Debug info from gdb:

Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.

=================================================================
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.
=================================================================



Surfing on the web looking for a solution I've read that, instaling the
system from the source and using the flag --with-large-heap=yes in the
./configure command should resolve the problem. However, I have tried to
install another version of mono with this flag and this lead several other
problems. So i have uninstalled this new version and reinstalled the old one
from the apt-get. 
Then, looking online i've found the following website:
http://docs.go-mono.com/?link=man%3amono(1) where is shown how to use some
of the ENVIRONMENT VARIABLE to overcame this problem. In paricular i have
tried to set the MONO_GC_PARAMS:major-heap-size=size with the command 

export MONO_GC_PARAMS=$MONO_GC_PARAMS:major-heap-size=10g

but the problem is still present. For this reason i have two questions:

_There is a way to set the --with-large-heap=yes flag after the apt-get
installation??
_ How I can fix this problem knowing that the command  
export MONO_GC_PARAMS=$MONO_GC_PARAMS:major-heap-size=10g
was run for a user that is not the administrator of the machine and for a
different user that have installed mono?

Thank you very much in advance
bests
Marco



--
View this message in context: http://mono.1490590.n4.nabble.com/Problem-in-running-mono-tp4659748.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list