[Mono-dev] Problems Embedding Mono in C application

Gutemberg Ribeiro gutemberg at fgrit.com
Tue Jan 12 18:49:56 UTC 2016


Hello Andi,

Those are the samples with the same behavior:

https://github.com/mono/mono/blob/master/samples/embed/teste.c and http://www.mono-project.com/docs/advanced/embedding/

The error happens on 3.12.1 and 4.2.1 the same way…

Appreciate any help ☺

Gutemberg

From: Andi McClure [mailto:andi.mcclure at xamarin.com]
Sent: Tuesday, January 12, 2016 4:18 PM
To: Gutemberg Ribeiro <gutemberg at fgrit.com>
Cc: mono-devel-list at lists.xamarin.com
Subject: Re: [Mono-dev] Problems Embedding Mono in C application

Hi— this sounds like something is wrong inside the VM. Can you be more specific, what is the "Mono Embedding sample" you're referring to, and *exactly* which version of Mono are you running (`mono --version` if you don't know)?

On Tue, Jan 12, 2016 at 10:48 AM, Gutemberg Ribeiro <gutemberg at fgrit.com<mailto:gutemberg at fgrit.com>> wrote:
Hello Guys!

Following the basic Mono Embedding sample we got the following error:

* Assertion at class.c:5905, condition `class->field.count == 0' not met

Native stacktrace:

        ./lib/libmonoboehm-2.0.so.1(+0x14d738) [0x40381738]
        ./lib/libmonoboehm-2.0.so.1(+0x1adeb8) [0x403e1eb8]
        /lib/libc.so.6(__default_rt_sa_restorer_v2+0) [0x4081cbc0]
        /lib/libc.so.6(gsignal+0x40) [0x4081b898]
        /lib/libc.so.6(abort+0x1b0) [0x40820c0c]
        ./lib/libmonoboehm-2.0.so.1(+0x352648) [0x40586648]
        ./lib/libmonoboehm-2.0.so.1(+0x3524c8) [0x405864c8]
        ./lib/libmonoboehm-2.0.so.1(+0x352568) [0x40586568]
        ./lib/libmonoboehm-2.0.so.1(+0x1c9de0) [0x403fdde0]
        ./lib/libmonoboehm-2.0.so.1(+0x1ce10c) [0x4040210c]
        ./lib/libmonoboehm-2.0.so.1(+0x1cf24c) [0x4040324c]
        ./lib/libmonoboehm-2.0.so.1(+0x1cf30c) [0x4040330c]
        ./lib/libmonoboehm-2.0.so.1(mono_class_from_name+0x2c) [0x40403360]
        ./lib/libmonoboehm-2.0.so.1(+0x2b8dc0) [0x404ecdc0]
        ./lib/libmonoboehm-2.0.so.1(mono_init_from_assembly+0x24) [0x404ee718]
        ./lib/libmonoboehm-2.0.so.1(+0x33188) [0x40267188]
        ./lib/libmonoboehm-2.0.so.1(mono_jit_init+0x1c) [0x40341fac]
        ./testeMono() [0xa3d0]
        /lib/libc.so.6(__libc_start_main+0x110) [0x40803b10]

Debug info from gdb:


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

Anyone has a clue on what may be?

Thanks
Gutemberg


_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com<mailto:Mono-devel-list at lists.ximian.com>
http://lists.ximian.com/mailman/listinfo/mono-devel-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20160112/93393228/attachment-0001.html>


More information about the Mono-devel-list mailing list