mkbundle生成的二进制文件在ARMv7h上导致SIGSEGV,而在Mono中运行良好
我目前正在archlinux的ARMv7h上测试Mono。首先,我测试了这个简单的程序:mkbundle生成的二进制文件在ARMv7h上导致SIGSEGV,而在Mono中运行良好,mono,mkbundle,archlinux-arm,Mono,Mkbundle,Archlinux Arm,我目前正在archlinux的ARMv7h上测试Mono。首先,我测试了这个简单的程序: // test.cs using System; public class Test { public static void Main(string[] args) { Console.WriteLine("I'm working."); } } 我使用Mono作为通过pacman安装的本机软件包,而不是交叉编译。运行时,其行为符合预期: mcs test.cs mono test.e
// test.cs
using System;
public class Test {
public static void Main(string[] args) {
Console.WriteLine("I'm working.");
}
}
我使用Mono作为通过pacman安装的本机软件包,而不是交叉编译。运行时,其行为符合预期:
mcs test.cs
mono test.exe
I'm working.
当我尝试使用mkbundle
捆绑此程序集时,它编译时没有任何错误:
mkbundle --deps test.exe -o test_standalone
OS is: Linux
Sources: 1 Auto-dependencies: True
embedding: /home/minx/usb/cs/test.exe
embedding: /usr/lib/mono/4.5/mscorlib.dll
Compiling:
as -o temp.o temp.s
cc -ggdb -o test_standalone -Wall temp.c `pkg-config --cflags --libs mono-2` temp.o
Done
/usb/是一个已安装的外部usb驱动器mkbundle
作为根用户调用。当我尝试运行结果二进制文件时:
./test_standalone
Native stacktrace:
Debug info from gdb:
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
然后返回外壳。二进制文件不提供任何附加信息。我是否错过了此特定体系结构的标志?这是哪个版本的mono?看起来足够新,您可能应该在哪个版本的mono中提交错误?看起来足够新,您可能应该在中提交错误