Re: [Mono-list] AOT with 2.0.1
Yes, this is the same version and os SUSE 11.1 I was following the URL at http://www.mono-project.com/AOT I got the same error.mono --aot=full /usr/lib/mono/2.0/mscorlib.dll Got a seg fault. Mono 2.2 OpenSUSE11.1 Thanks, William L. On Fri, Feb 6, 2009 at 11:09 PM, tcmichals tcmich...@yahoo.com wrote: I was trying out aot. using the instructions on the web site: # Do a full AOT: $ mono --aot=full mscorlib.dll $ mono --aot=full sample.exe # Run, but request that Mono never tries to JIT: $ mono --full-aot sample.exe I tried mono --aot=full /usr/lib/mono/1.0/mscorlib.dll and get a segfault, I'm doing something wrong? -- View this message in context: http://www.nabble.com/AOT-with-2.0.1-tp21874279p21889280.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] AOT with 2.0.1
Also just tested with 2.2 tcmich...@linux-kx0n:~/exampleMono mono -O=all --full-aot helloWorld.exe Failed to load AOT module '/usr/lib/mono/1.0/mscorlib.dll.so' in aot-only mode. tcmich...@linux-kx0n:~/exampleMono mono -O=all helloWorld.exe Hello World tcmich...@linux-kx0n:~/exampleMono mono -O=all --aot --full-aot helloWorld.exe ** ERROR **: Attempting to allocate from the global code manager while running with --aot-only. aborting... ** (process:4568): WARNING (recursed) **: Thread (nil) may have been prematurely finalized Stacktrace: ** (process:4568): WARNING (recursed) **: Thread (nil) may have been prematurely finalized Mono JIT compiler version 2.2 (tarball Fri Jan 9 17:41:21 UTC 2009) Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com -- View this message in context: http://www.nabble.com/AOT-with-2.0.1-tp21874279p21892232.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] AOT with 2.0.1
I was trying out aot. using the instructions on the web site: # Do a full AOT: $ mono --aot=full mscorlib.dll $ mono --aot=full sample.exe # Run, but request that Mono never tries to JIT: $ mono --full-aot sample.exe I tried mono --aot=full /usr/lib/mono/1.0/mscorlib.dll and get a segfault, I'm doing something wrong? -- View this message in context: http://www.nabble.com/AOT-with-2.0.1-tp21874279p21874279.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] IronPython Alpha3 on mono 1.2.5
Remove the lines of code and it works.. The issue is in SystemState.cs InitializeBuiltins Debug.Assert(_builtinsDict.ContainsKey(nt)); _builtinsDict[posix] = _builtinsDict[nt]; _builtinsDict.Remove(nt); tcmichals [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I compile using IronPython alpha v3 using VS2005, copied dll's,exe's , etc to Linux then at the shell: and got the following: Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2[System.String,System.Type].get_Item (System.String ) [0x0] at IronPython.Runtime.SystemState.InitializeBuiltins () [0x0] at IronPython.Runtime.SystemState..ctor () [0x0] at IronPython.Hosting.PythonEngine..ctor (IronPython.Hosting.PythonLanguageProvider provider, IronPython.PythonEngineOptions engineOptions) [0x0] at IronPython.Hosting.PythonEngine..cctorb__0 (IronPython.Hosting.PythonLanguageProvider provider, IronPython.PythonEngineOptions options) [0x0] at (wrapper delegate-invoke) System.MulticastDelegate:invoke_PythonEngine_PythonLanguageProvider_PythonEngineOptions (IronPython.Hosting.PythonLanguageProvider,IronPython.PythonEngineOptions) at Microsoft.Scripting.Hosting.SingletonEngineFactory`3[IronPython.Hosting.PythonEngine,IronPython.PythonEngineOptions,IronPython.Hosting.PythonLanguageProvid er].GetInstance (IronPython.Hosting.PythonLanguageProvider , IronPython.PythonEn gineOptions ) [0x0] at IronPython.Hosting.PythonLanguageProvider.GetEngine (Microsoft.Scripting.En gineOptions options) [0x0] at Microsoft.Scripting.Hosting.LanguageProvider.Microsoft.Scripting.Hosting.IL anguageProvider.GetEngine (Microsoft.Scripting.EngineOptions options) [0x0] at Microsoft.Scripting.Hosting.ConsoleHost.RunCommandLine (Microsoft.Scripting .OptionsParser optionsParser) [0x0] at Microsoft.Scripting.Hosting.ConsoleHost.ExecuteInternal () [0x0] at Microsoft.Scripting.Hosting.ConsoleHost.Execute () [0x0] at Microsoft.Scripting.Hosting.ConsoleHost.Run (System.String[] args) [0x0 ] at PythonConsoleHost.Main (System.String[] args) [0x0] The issue is in SystemState.cs InitializeBuiltins Debug.Assert(_builtinsDict.ContainsKey(nt)); _builtinsDict[posix] = _builtinsDict[nt]; _builtinsDict.Remove(nt); Thoughts? ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] IronPython Alpha3 on mono 1.2.5
The patch is at... http://lists.ironpython.com/htdig.cgi/users-ironpython.com/2007-August/005446.html What is strange, it works via ssh but using kde it loads but no prompt or text setup issue? or something not at the right version? (local or remote via cygwin X) Miguel de Icaza [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I compile using IronPython alpha v3 using VS2005, copied dll's,exe's , etc to Linux then at the shell: I posted a fix on the IronPython mailing list. Basically, on the Unix case, they try to use a hashtable before it is initialized; Its a bug in IronPhytohn. and got the following: Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2[System.String,System.Type].get_Item (System.String ) [0x0] at IronPython.Runtime.SystemState.InitializeBuiltins () [0x0] at IronPython.Runtime.SystemState..ctor () [0x0] at IronPython.Hosting.PythonEngine..ctor (IronPython.Hosting.PythonLanguageProvider provider, IronPython.PythonEngineOptions engineOptions) [0x0] at IronPython.Hosting.PythonEngine..cctorb__0 (IronPython.Hosting.PythonLanguageProvider provider, IronPython.PythonEngineOptions options) [0x0] at (wrapper delegate-invoke) System.MulticastDelegate:invoke_PythonEngine_PythonLanguageProvider_PythonEngineOptions (IronPython.Hosting.PythonLanguageProvider,IronPython.PythonEngineOptions) at Microsoft.Scripting.Hosting.SingletonEngineFactory`3[IronPython.Hosting.PythonEngine,IronPython.PythonEngineOptions,IronPython.Hosting.PythonLanguageProvid er].GetInstance (IronPython.Hosting.PythonLanguageProvider , IronPython.PythonEn gineOptions ) [0x0] at IronPython.Hosting.PythonLanguageProvider.GetEngine (Microsoft.Scripting.En gineOptions options) [0x0] at Microsoft.Scripting.Hosting.LanguageProvider.Microsoft.Scripting.Hosting.IL anguageProvider.GetEngine (Microsoft.Scripting.EngineOptions options) [0x0] at Microsoft.Scripting.Hosting.ConsoleHost.RunCommandLine (Microsoft.Scripting .OptionsParser optionsParser) [0x0] at Microsoft.Scripting.Hosting.ConsoleHost.ExecuteInternal () [0x0] at Microsoft.Scripting.Hosting.ConsoleHost.Execute () [0x0] at Microsoft.Scripting.Hosting.ConsoleHost.Run (System.String[] args) [0x0 ] at PythonConsoleHost.Main (System.String[] args) [0x0] The issue is in SystemState.cs InitializeBuiltins Debug.Assert(_builtinsDict.ContainsKey(nt)); _builtinsDict[posix] = _builtinsDict[nt]; _builtinsDict.Remove(nt); Thoughts? ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-dev] Jit and C# Compiler
To simply this task maybe use OpenMP http://www.openmp.org Martin Hinks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do you plan to automatically detect when parallel usage is possible or will it be something that the C# program's author can specify? Martin On 10/5/06, Cedric Vivier [EMAIL PROTECTED] wrote: Hi! Sounds very interesting! If I am correct you want to detect (thus extract) parallelism from a CIL image right? Do you have any research paper describing the algorithm you plan to use ? Please keep us informed of your advancement :) -- cv 2006/10/5, Khaled A. K. Mohammed [EMAIL PROTECTED] : Hi, I am doing a course on compiler. I am planning to choose a project based on .NET Framework/Mono. I am briefly describing the project below. The project will aim to improve the execution of CIL image on multicore processors. First step is to change the C# compiler to insert custom instructions into the managed binary (just like how the line #s are stored). These instructions will be parsed by JIT to pick valuable information about instruction dependency and will be able to make smart decisions. Yes, the size of binaries will grow. We will work for a optimal solutions - may be by having a percentage size threshold. This is a research/school project to prove a concept. Lots of comments/suggestions are welcomed. Regards, Khaled ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list -- Martin Hinks http://www.m-s-d.net ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-list] Power Hosting for Mono
http://www.mono-project.com/ASP.NET Could you use HTTPListner and web services to host the services, there are some examples to do this on the web for ASP.NET, or repackage SOAP and call your service directly? [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I was wondering if anyone had played around with different ways of hosting web services. I understand the apache/mod_mono/xsp setup, but is there anything different, or better worth looking at. I don't have any aspx pages, everything is compiled and merely exposed as a service. Is it worth looking into running multiple xsp2 instances and round-robbin proxying them via apache or another web server (cherokee, lighttpd)? Thoughts, ~ Matthew ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] (no subject) (Robert Jordan)
Also you can do the following: [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi), Serializable] public struct tttString { unsafe public fixed byte Text[128];//ASCII or UNICODE string } then you use size of etc... David Abrames [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] David Abrames wrote: I have the following structure in Windows: typedef struct { BYTE FAR *myBtyeArray; } MYSTRUCTURE; In .NET this structure is defined like this: [StructLayout(LayoutKind.Sequential, Size = 4, Pack = 1)] public class MYSTRUCTURE { public byte[] myByteArray; } which works OK. I then compiled the code successfully on Mono 1.1.16.1 but when I run my program I get the following error: ** ERROR ** Structure field of type byte[] can't be marshaled as LPArray. I have read several postings and articles about marshaling but I do not understand what the underlying problem is. This structure is used in a function call where the called function will return a pointer to an array of bytes. How should this be marshaled? 1) If the size of the array is constant, you can use this: [StructLayout(LayoutKind.Sequential, Size = 4)] public class MYSTRUCTURE { [MarshalAs(UnmanagedType.LPArray, SizeConst = 100)] public byte[] myByteArray; } 2) If it's dynamic, you have to marshal manually: [StructLayout(LayoutKind.Sequential, Size = 4)] public class MYSTRUCTURE { public IntPtr myByteArray; } After the p/invoke call, which definitely needs to somehow return the size of the array, use System.Runtime.InteropServices.Copy: MYSTRUCTURE s = new MYSTRUCTURE (); // pinvoke call ... byte bytes[] = new byte[theSize]; Marshal.Copy (s.myByteArray, bytes, 0, theSize); Robert Dear Robert, Thank you very much for the reply. After reading your explanation and going back to the docs I now understand what is going on. The underlying problem is that the Mono Marshaller cannot determine the amount of memory needed to hold the contents of the byte[] returned by p/invoke call. So I have to either tell it at compile time or have some way in figuring it out at runtime. Thanks again. David Abrames ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-dev] CreateDelegate Exception
using 1.1.16 I on Linux, the application and assemblies are compiled using VS.2005, when attempting to Create.CreateDelegate the following exeception occurs: System.InvalidProgramException: Missing or incorrect header for method GetPropertiesViaEvent at 0x0 unknown method at (wrapper managed-to-native) System.Delegate:CreateDelegate_internal (System.Type,object,System.Reflection.MethodInfo) at System.Delegate.CreateDelegate (System.Type type, System.Object target, System.Reflection.MethodInfo method) [0x0] at XNetSystemManager.XNetSysPlugin.GetProperties (System.String sInterface, XNetSystemManager.DictionaryPropertyArgs Propargs, System.EventHandler`1 receiveResponses, XNetEventManager.DictionaryEventArgs args) [0x0] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] CreateDelegate Exception
Some more information, the code is as follows: Delegate.CreateDeletegate(typeof(call),classObj, myMethodInfo); Before this function is called print out some information: myMethodInfo.Name is GetPropertiesViaEventTCI.IUIToolComm The method in the assembly is declared as GetPropertiesViaEvent, the Module name is TCI and the module uses a interface called IUIToolComm, is there a name difference how VS.NET handles it compared to mono? Or is the name lookup for the delegate incorrect? tcmichals [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] using 1.1.16 I on Linux, the application and assemblies are compiled using VS.2005, when attempting to Create.CreateDelegate the following exeception occurs: System.InvalidProgramException: Missing or incorrect header for method GetPropertiesViaEvent at 0x0 unknown method at (wrapper managed-to-native) System.Delegate:CreateDelegate_internal (System.Type,object,System.Reflection.MethodInfo) at System.Delegate.CreateDelegate (System.Type type, System.Object target, System.Reflection.MethodInfo method) [0x0] at XNetSystemManager.XNetSysPlugin.GetProperties (System.String sInterface, XNetSystemManager.DictionaryPropertyArgs Propargs, System.EventHandler`1 receiveResponses, XNetEventManager.DictionaryEventArgs args) [0x0] ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-list] [Mono-dev] Application Portability Guidelines.
Maybe add this to the web page, FYI how to access bugzilla reports within mono... Atsushi Eno [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You don't understand what I wrote. *Every* bugs could block people. IF we write notes that your code might not work if you use ... with related to *every* bugs (EVEN IF it is possible), that web info becomes pretty useless because of such flood of extraneous information. You could have just searched bugzilla for doubtful behaviors. Atsushi Eno Brian Crowell wrote: Atsushi Eno wrote: We do support multi AppDomain. Your complaints on bug #76757 is too tiny to be taken care on this general information. Or are you saying that we should say we don't support generics because there are some bugs ? All I know is that I'm tired of patching every copy of Mono I get in order to get correct behavior. So maybe just add a warning that Mono treats AppDomains differently from the way .NET treats them. I know that warning would have saved me a few days. --Brian ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-dev] [PATCH] System.Net.Sockets.TcpListener 2.0 Updates
When will this be added to TcpListener? Ivan N. Zlatev [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The attached patch includes updates for the TcpListener class to .Net 2.0. Please someone review and commit. Cheers, -- Ivan N. Zlatev Web: http://www.i-nZ.net GPG Key: http://files.i-nZ.net/i-nZ.asc It's all some kind of whacked out conspiracy. ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-list] using the profiler
1.1.15 version of mono with the following options: mono --profile=default:stat simpleGUI.exe The first several lines are: prof counts: total/unmanaged: 3711/2546 1043 28.11 % 686 18.49 % mono ..my functions. How do determine what the first entries are doing? ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-dev] StructLayout with misaligned offsets
namespace testCode { class Program { [StructLayout(LayoutKind.Sequential, Pack = 1 /*, CharSet = CharSet.Ansi */)/*, Serializable*/] public struct tagSDK { [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] public ushort[] inter; public ushort integ; public ushort mode; public ushort imaging; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] public ushort[] Avg; public ushort numOfIntervals; public tagSDK(int val) { this.inter = new ushort[12]; this.inter[0] = 0; this.Avg = new ushort[12]; Avg[0] = 0; integ = 0; imaging = 0; imaging2 = 0; numOfIntervals = 0; mode = 0; } }; static void Main(string[] args) { tagSDK t= new tagSDK(0); Console.WriteLine(Hello World); } } } When I attempt to execute the following program the following message is generated * ERROR **: file object.c: line 509 (compute_class_bitmap): assertion failed: ((field-offset % sizeof(gpointer)) == 0) If I change The alignment of Avg to be on a 4 byte boundry it works, sugguestions? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Re: StructLayout with misaligned offsets
I'm also using the same method on other struct's and getting different sizes between mono 1.1.14 and 2.0 .NET, the .NET version is giving me the correct sizes, would this also be considered the same issue? I'm trying use the StructLayout to overlay the same data structures used bettwen C++ and C#. Zoltan Varga [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, This is a known bug and it is tracked as: http://bugzilla.ximian.com/show_bug.cgi?id=77788 Zoltan On 4/12/06, tcmichals [EMAIL PROTECTED] wrote: namespace testCode { class Program { [StructLayout(LayoutKind.Sequential, Pack = 1 /*, CharSet = CharSet.Ansi */)/*, Serializable*/] public struct tagSDK { [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] public ushort[] inter; public ushort integ; public ushort mode; public ushort imaging; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] public ushort[] Avg; public ushort numOfIntervals; public tagSDK(int val) { this.inter = new ushort[12]; this.inter[0] = 0; this.Avg = new ushort[12]; Avg[0] = 0; integ = 0; imaging = 0; imaging2 = 0; numOfIntervals = 0; mode = 0; } }; static void Main(string[] args) { tagSDK t= new tagSDK(0); Console.WriteLine(Hello World); } } } When I attempt to execute the following program the following message is generated * ERROR **: file object.c: line 509 (compute_class_bitmap): assertion failed: ((field-offset % sizeof(gpointer)) == 0) If I change The alignment of Avg to be on a 4 byte boundry it works, sugguestions? ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] Re: StructLayout with misaligned offsets
Also found this information, removing the MarshalAs and use discrete variables works, ie // public ushort Avg0; // [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] //public ushort[] Avg; public ushort Avg0;public ushort Avg1;public ushort Avg2;public ushort Avg3;public ushort Avg4;public ushort Avg5;public ushort Avg6; public ushort Avg7;public ushort Avg8;public ushort Avg9;public ushort Avg10;public ushort Avg11; also, [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi), Serializable] public struct byteD { ushort Lo, Hi; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)] byte[] Comment; }; [StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi), Serializable] public struct charD { ushort Lo, Hi; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)] char [] Comment; }; Console.WriteLine(byteD + Marshal.SizeOf(typeof(byteD)).ToString() + charD + Marshal.SizeOf(typeof(charD)).ToString()); Ouputs on .NET 2.0 Hello World byteD 36 charD 36 On 1.1.14 Hello World byteD 36 charD 68 Zoltan Varga [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, This is a known bug and it is tracked as: http://bugzilla.ximian.com/show_bug.cgi?id=77788 Zoltan ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list