我想考單AOT,所以我寫了一個簡單的控制檯應用程序使用的MonoDevelop:單AOT段錯誤 - 奇怪的問題
using System;
namespace abc
{
public class Program
{
public static void Main()
{
Console.WriteLine("Hello World!");
}
}
}
它創造了在斌/調試命名爲「abc.exe」文件。當我嘗試做:
mono abc.exe
它的工作。所以,我試着去AOT它。我做了:
mono --aot abc.exe
它創建了一個名爲abc.exe.so的文件。當我嘗試啓動它時,它會引發「分段錯誤(核心轉儲)」錯誤。下面是單聲道輸出:
Code: 51 Info: 5 Ex Info: 8 Unwind Info: 31 Class Info: 30 PLT: 2 GOT Info: 11 GOT Info Offsets: 16 GOT: 20 Offsets: 48
Compiled 2 out of 3 methods (66%)
1 methods have other problems (33%)
Methods without GOT slots: 1 (33%)
Direct calls: 0 (100%)
JIT time: 1 ms, Generation time: 0 ms, Assembly+Link time: 0 ms.
我該如何解決?
謝謝。