[Mono-osx] Mono GC 2.8.2: embedding

Duane Wandless duane at wandless.net
Sat Aug 27 06:30:51 EDT 2011


I compiled a debug build of libmonosgen from trunk and now have this
stacktrace.  My app embeds mono into a Cocoa application, with Cocoa
initializing the mono runtime.

Stacktrace:

  at <unknown> <0xffffffff>
  at System.AppDomain.ValidateAssemblyName (string) <IL 0x00034, 0x0004f>
  at System.AppDomain.DefineDynamicAssembly
(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,string,System.Security.Policy.Evidence,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet,bool)
<IL 0x00017, 0x00023>
  at (wrapper remoting-invoke-with-check)
System.AppDomain.DefineDynamicAssembly
(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,string,System.Security.Policy.Evidence,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet,bool)
<IL 0x00045, 0xffffffff>
  at MonoMac.ObjCRuntime.NativeImplementationBuilder..cctor () <IL
0x000e6, 0x001f3>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <IL 0x0004c, 0xffffffff>
  at <unknown> <0xffffffff>
  at MonoMac.ObjCRuntime.NativeMethodBuilder..ctor
(System.Reflection.MethodInfo,System.Type,MonoMac.Foundation.ExportAttribute)
<IL 0x00001, 0x0001b>
  at MonoMac.ObjCRuntime.NativeMethodBuilder..ctor
(System.Reflection.MethodInfo) <IL 0x00022, 0x0006b>
  at MonoMac.ObjCRuntime.Class..cctor () <IL 0x00016, 0x0004b>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <IL 0x0004c, 0xffffffff>
  at <unknown> <0xffffffff>
  at MonoMac.AppKit.NSApplication..cctor () <IL 0x004c4, 0x008ef>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <IL 0x0004c, 0xffffffff>
  at <unknown> <0xffffffff>
  at MacClient.Program.Main (string[]) [0x00022] in
C:\Users\Duane\Documents\NewSVN\Win23\api_clean_409\MacClient\MonoMessage.cs:50
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>

Native stacktrace:

	0   mysgen.dylib                        0x002d0a3e
mono_handle_native_sigsegv + 376
	1   mysgen.dylib                        0x00207e19
mono_sigsegv_signal_handler + 322
	2   libSystem.B.dylib                   0x93e7305b _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   ???                                 0x0097c4d9 0x0 + 9946329


On Thu, Aug 25, 2011 at 5:57 PM, Duane Wandless <duane at wandless.net> wrote:

> I found this bug against 2.10.2:
> https://bugzilla.novell.com/show_bug.cgi?id=694027
>
> Thanks,
> Duane
>
>
> On Thu, Aug 25, 2011 at 5:47 PM, Duane Wandless <duane at wandless.net>wrote:
>
>> This is still happening with 2.10.4.  Any suggestions?
>>
>> *dyld: Symbol not found: _MONO_DEBUGGER__debugger_info*
>>
>> *  Referenced from:
>> /Library/Frameworks/Mono.framework/Versions/2.10.4/lib/libmonosgen-2.0.0.dylib
>> *
>>
>> *  Expected in: flat namespace*
>>
>> * in
>> /Library/Frameworks/Mono.framework/Versions/2.10.4/lib/libmonosgen-2.0.0.dylib
>> *
>>
>> *
>> *
>>
>> On Fri, Feb 25, 2011 at 4:59 PM, Duane Wandless <duane at wandless.net>wrote:
>>
>>> I found this reference:
>>> http://go-mono.com/forums/#nabble-td2277117
>>>
>>> Which says:
>>> You've configured mono without debugger support
>>> (--disable-mono-debugger),
>>> which is currently broken (it should get fixed later today).
>>>
>>> I did not compile libmonosgen.... that is the 2.8.2 install.  So is
>>> libmonosgen being incorrectly compiled?
>>>
>>> Duane
>>>
>>>
>>> On Thu, Feb 17, 2011 at 4:00 PM, Duane Wandless <duane at wandless.net>wrote:
>>>
>>>> I am trying to embed the sgen libraries (on Snow Leopard) but receiving
>>>> this error at runtime:
>>>>
>>>> *dyld: Symbol not found: _MONO_DEBUGGER__debugger_info*
>>>>
>>>> *  Referenced from:
>>>> /Library/Frameworks/Mono.framework/Versions/2.8.2/lib/libmonosgen-2.0.0.dylib
>>>> *
>>>>
>>>> *  Expected in: dynamic lookup*
>>>>
>>>> Linker flags:
>>>> -pthread -L/Library/Frameworks/Mono.framework/Versions/Current/lib -lmonosgen-2.0 -lpthread -rpath at loader_path
>>>> /../Libraries
>>>>
>>>> # otool -L InitMono.dylib
>>>> InitMono.dylib:
>>>> @loader_path/../Libraries/InitMono.dylib (compatibility version 1.0.0,
>>>> current version 1.0.0)
>>>>  /Library/Frameworks/Mono.framework/Versions/2.8.2/lib/libmonosgen-2.0.0.dylib
>>>> (compatibility version 1.0.0, current version 1.0.0)
>>>> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
>>>> 111.1.4)
>>>>  /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
>>>> (compatibility version 1.0.0, current version 12.0.0)
>>>> /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
>>>> 1.0.0)
>>>>  /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version
>>>> 227.0.0)
>>>> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
>>>> (compatibility version 150.0.0, current version 476.19.0)
>>>>  /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
>>>> (compatibility version 300.0.0, current version 677.26.0)
>>>>
>>>>
>>>> Of course changing the -lmonosgen-2.0 to -lmono-2.0 and everything works
>>>> as expected.
>>>>
>>>> Any suggestions on how to fix the symbol not found for embedding the
>>>> sgen library are greatly appreciated.  Or if there is a different means to
>>>> embed please let me know.
>>>>
>>>>
>>>> Thanks,
>>>> Duane
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110827/0d3dc865/attachment-0001.html 


More information about the Mono-osx mailing list