[Mono-dev] Embedded on ARM : jit_init error

Vlad Brezae vlbrez at microsoft.com
Wed Oct 12 21:46:58 UTC 2016


Hello,

        I have never cross-compiled mono so I can’t help you there.

        This patch [1] should fix the issue. It might be worthwhile to try to test it out, by compiling from source. Worst case scenario, I know I compiled mono once on a raspberry and it took around 10 hours.

Vlad

[1] https://github.com/BrzVlad/mono/commit/831e66655e7465023109333fca31d036c7b9a514


From: Damien <maitredede at gmail.com>
Date: Wednesday, 12 October 2016 at 23:30
To: Vlad Brezae <vlbrez at microsoft.com>
Subject: Re: [Mono-dev] Embedded on ARM : jit_init error

Hi,

I can cross-compile mono from source, is this doc ok ? http://www.mono-project.com/docs/about-mono/supported-platforms/arm/<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.mono-project.com%2Fdocs%2Fabout-mono%2Fsupported-platforms%2Farm%2F&data=01%7C01%7Cvlbrez%40microsoft.com%7C299d5dd6eece458c2d7108d3f2de8d79%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=IFDDQBOUXAyJL%2B8ID6E2A7M3SM89%2B0cEoXSnNi2k4BE%3D&reserved=0>

I have this behavior on a Raspberry Pi 2B+, I will check against a Pi 3 soon...

Damien

2016-10-13 4:56 GMT+11:00 Vlad Brezae <vlbrez at microsoft.com<mailto:vlbrez at microsoft.com>>:
Hello Damien,

        Would you be able to build mono from source and reproduce this issue ? If so, would you like to try a potential fix ?

Thanks,
   Vlad


From: Mono-devel-list <mono-devel-list-bounces at lists.dot.net<mailto:mono-devel-list-bounces at lists.dot.net>> on behalf of Damien <maitredede at gmail.com<mailto:maitredede at gmail.com>>
Date: Wednesday, 12 October 2016 at 05:53
To: "mono-devel-list at lists.ximian.com<mailto:mono-devel-list at lists.ximian.com>" <mono-devel-list at lists.ximian.com<mailto:mono-devel-list at lists.ximian.com>>
Subject: [Mono-dev] Embedded on ARM : jit_init error

Hi,

I am coding a C/C++ app that use mono embedded, on a Raspberry Pi (raspbian latest version)

I have updated mono (from Mono repositories) :
Mono JIT compiler version 4.6.1 (Stable 4.6.1.3/abb06f1<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F4.6.1.3%2Fabb06f1&data=01%7C01%7Cvlbrez%40microsoft.com%7C68f185ec0343490885d708d3f24aed0b%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=FZUCYCnKjQjRn56iCwoXS2XLZdm23DCuQ9lQCdaVy38%3D&reserved=0> Wed Sep 28 14:39:46 UTC 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.mono-project.com&data=01%7C01%7Cvlbrez%40microsoft.com%7C68f185ec0343490885d708d3f24aed0b%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=wZtwEeIe52vzFqDGAh%2BhQJd3FOAleCRnKrAHEHl6o3Q%3D&reserved=0>
        TLS:           __thread
        SIGSEGV:       normal
        Notifications: epoll
        Architecture:  armel,vfp+hard
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen

When I try to run my program, I have a error when calling mono_jit_init()...

My program (shortened) :
mono_config_parse(cfgBuffer);
mono_trace_set_level_string("debug");
mono_jit_set_trace_options("");
domain = mono_jit_init("PiranhaLauncher");

The error :

Mono: AOT: FOUND method System.OutOfMemoryException:.ctor (string) [0x726da6ec - 0x726da720 0x72b04007]
[0x76fa03f0: 0.00000 0] ENTER: (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)() ip: (nil)
Mono: AOT: FOUND method System.Exception:.cctor () [0x7264ee8c - 0x7264eecc 0x72b00a06]
[0x76fa03f0: 0.00182 1] ENTER: (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)() ip: (nil)
[0x76fa03f0: 0.00235 2] ENTER: (wrapper alloc) object:SlowAllocSmall (intptr,intptr)() ip: (nil)
* Assertion at mini-arm.c:434, condition `lmf_addr_tls_offset != -1' not met

Full error : http://pastebin.com/D8afH4Rx<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpastebin.com%2FD8afH4Rx&data=01%7C01%7Cvlbrez%40microsoft.com%7C68f185ec0343490885d708d3f24aed0b%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=WKHI378AXZkAArUCDaCpg%2Bn30amWzMzxbkHUZW4n5zk%3D&reserved=0>

Any idea where to start searching ?
Thanks.

Damien

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-devel-list/attachments/20161012/328c97fa/attachment-0001.html>


More information about the Mono-devel-list mailing list