
Crash caused by call to Egl.IsSupported
Posted Tuesday, 22 December, 2009 - 17:45 by kanato| Project: | The Open Toolkit library |
| Version: | 1.0-beta-3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
An AgateLib developer is reporting this crash on his OpenSuse 11.2 machine.
He's using:
openSUSE 11.2 x64
ATI Mobility Radeon HD4300 Series
Mono JIT compiler version 2.6.1
The crash is apparently occuring in the Egl.IsSupported method, which is just the call to the native method EglGetCurrentContext. I don't really understand what's going on here; there is no mapping for libEGL.dll to a native library on Linux in OpenTK.dll.config, so it should give a DllNotFoundException and move on. Possibly this is a Mono 2.6.1 bug? He doesn't know if there are any Egl libraries on his system; perhaps an implementation comes with his ATI driver. However this does not seem to be a problem in my virtual machine with Mono 2.6.1. But I do not have x64 to test with at the moment.
Debug Output:
Initializing threaded X11: 1. Initializing threaded X11: 1. Display connection: 20709280, Screen count: 1 Display connection: 20709280, Screen count: 1 Detected configuration: Linux / Mono Detected configuration: Linux / Mono Initializing threaded X: success. Initializing threaded X: success. Stacktrace: at OpenTK.Platform.Egl.Egl.get_IsSupported () <IL 0x00019, 0xffffffff> at OpenTK.Platform.Egl.Egl.get_IsSupported () <IL 0x00002, 0x0004c> at OpenTK.Platform.Factory..cctor () <IL 0x00057, 0x00253> at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <IL 0x0001b, 0x000b9> at OpenTK.Graphics.GraphicsMode..cctor () <IL 0x00036, 0xffffffff> at OpenTK.Graphics.GraphicsMode..cctor () <IL 0x0001e, 0x000cc> at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <IL 0x0001b, 0x000b9> at AgateOTK.GL_DisplayControl.CreateContext () [0x0009a] in /home/marcel/Projects/agate/trunk/Drivers/AgateOTK/GL_DisplayControl.cs:228 at AgateOTK.GL_DisplayControl.CreateContext () [0x00000] in /home/marcel/Projects/agate/trunk/Drivers/AgateOTK/GL_DisplayControl.cs:210 at AgateOTK.GL_DisplayControl..ctor (AgateLib.DisplayLib.CreateWindowParams) [0x000ee] in /home/marcel/Projects/agate/trunk/Drivers/AgateOTK/GL_DisplayControl.cs:96 at AgateOTK.GL_Display.CreateDisplayWindow (AgateLib.DisplayLib.CreateWindowParams) [0x00000] in /home/marcel/Projects/agate/trunk/Drivers/AgateOTK/GL_Display.cs:97 at AgateLib.DisplayLib.DisplayWindow..ctor (AgateLib.DisplayLib.CreateWindowParams) [0x0002a] in /home/marcel/Projects/agate/trunk/AgateLib/DisplayLib/DisplayWindow.cs:87 at AgateLib.DisplayLib.DisplayWindow.CreateFromControl (object) [0x00000] in /home/marcel/Projects/agate/trunk/AgateLib/DisplayLib/DisplayWindow.cs:109 at AgateOTK.GL_Display.CreateFakeWindow () [0x0000b] in /home/marcel/Projects/agate/trunk/Drivers/AgateOTK/GL_Display.cs:274 at AgateOTK.GL_Display.Initialize () [0x00000] in /home/marcel/Projects/agate/trunk/Drivers/AgateOTK/GL_Display.cs:259 at AgateLib.DisplayLib.Display.Initialize (AgateLib.Drivers.DisplayTypeID) [0x00010] in /home/marcel/Projects/agate/trunk/AgateLib/DisplayLib/Display.cs:96 at AgateLib.AgateSetup.InitializeDisplay (AgateLib.Drivers.DisplayTypeID) [0x0000c] in /home/marcel/Projects/agate/trunk/AgateLib/AgateSetup.cs:199 at AgateLib.AgateSetup.InitializeDisplay () [0x00006] in /home/marcel/Projects/agate/trunk/AgateLib/AgateSetup.cs:187 at AgateLib.AgateSetup.InitializeAll () [0x0000b] in /home/marcel/Projects/agate/trunk/AgateLib/AgateSetup.cs:162 at AgateLib.AgateSetup.Initialize (bool,bool,bool) [0x00015] in /home/marcel/Projects/agate/trunk/AgateLib/AgateSetup.cs:154 at Tests.DisplayTests.BasicDrawing.BasicDrawing.Main (string[]) [0x00014] in /home/marcel/Projects/agate/trunk/Tests/DisplayTests/BasicDrawing/BasicDrawing.cs:88 at Tests.frmLauncher.LaunchTest (Tests.frmLauncher/TestInfo) [0x00026] in /home/marcel/Projects/agate/trunk/Tests/frmLauncher.cs:102 at Tests.frmLauncher.lstTests_DoubleClick (object,System.EventArgs) [0x00018] in /home/marcel/Projects/agate/trunk/Tests/frmLauncher.cs:89 at System.Windows.Forms.Control.OnDoubleClick (System.EventArgs) [0x0001c] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:6101 at System.Windows.Forms.ListBox.OnMouseUpLB (object,System.Windows.Forms.MouseEventArgs) [0x0001e] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs:1907 at System.Windows.Forms.Control.OnMouseUp (System.Windows.Forms.MouseEventArgs) [0x0001c] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:6387 at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message&) [0x0007e] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5592 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&) [0x0017b] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5329 at System.Windows.Forms.ListBox.WndProc (System.Windows.Forms.Message&) [0x00048] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs:1218 at System.Windows.Forms.Control/ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) [0x00000] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:234 at System.Windows.Forms.Control/ControlNativeWindow.WndProc (System.Windows.Forms.Message&) [0x00000] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:215 at System.Windows.Forms.NativeWindow.WndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) [0x00085] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:242 at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG&) [0x00000] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:3471 at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&) [0x00000] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:605 at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) [0x0036a] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:984 at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext) [0x00014] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:763 at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) [0x00000] in /usr/src/packages/BUILD/mono-2.6.1/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:742 at Tests.Launcher.Main (string[]) [0x00029] in /home/marcel/Projects/agate/trunk/Tests/Launcher.cs:20 at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x0001d, 0x000c0> Native stacktrace: /usr/bin/mono [0x486311] /usr/bin/mono [0x4d189f] /lib64/libpthread.so.0 [0x7fdf3d730c00] /usr/bin/mono [0x4ad472] /usr/bin/mono [0x4ad819] /usr/bin/mono [0x4ade81] /usr/bin/mono [0x4b58e6] /usr/bin/mono [0x42baae] /usr/bin/mono [0x449ec0] /usr/bin/mono [0x41d377] /usr/bin/mono [0x41ea04] /usr/bin/mono [0x41f37d] /usr/bin/mono [0x41ea53] /usr/bin/mono [0x41f37d] /usr/bin/mono [0x489f89] [0x412bc168] Debug info from gdb: Missing separate debuginfo for /usr/lib64/libgthread-2.0.so.0 Try: zypper install -C "debuginfo(build-id)=bf745d8917d27e255bf174e08e0e6775de77075b" Missing separate debuginfo for /usr/lib64/libglib-2.0.so.0 Try: zypper install -C "debuginfo(build-id)=7e3842ab0a347df5f56a0697077f4eca83bfe5fe" Missing separate debuginfo for /lib64/librt.so.1 Try: zypper install -C "debuginfo(build-id)=c663e79551b37d4c0c9bc93b252b917bfdedb150" Missing separate debuginfo for /lib64/libdl.so.2 Try: zypper install -C "debuginfo(build-id)=44e66ebae672563bd496f290e08d316bc3bf0ac7" Missing separate debuginfo for /lib64/libpthread.so.0 Try: zypper install -C "debuginfo(build-id)=7bcbabc9da24424f1f5ef7be77b575fd3d796288" Missing separate debuginfo for /lib64/libm.so.6 Try: zypper install -C "debuginfo(build-id)=57fc1891d8d9f419fb8c7fc06a8285563b53a47e" Missing separate debuginfo for /lib64/libc.so.6 Try: zypper install -C "debuginfo(build-id)=38ea43a1d9479a965018f7d397bf2503996dc4d7" Missing separate debuginfo for /lib64/libpcre.so.0 Try: zypper install -C "debuginfo(build-id)=faf1aba9b565a29c99ce1d3944978347d6209cc3" Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2 Try: zypper install -C "debuginfo(build-id)=591af1afa33f255704fb6a60859b93d00e205302" Missing separate debuginfo for /usr/lib64/gconv/UTF-16.so Try: zypper install -C "debuginfo(build-id)=4dc9c0aff44820b7b04b954c85dc3bd1a9060b2a" Missing separate debuginfo for /usr/lib64/libX11.so.6 Try: zypper install -C "debuginfo(build-id)=3ae88da81e5b4c1fd71f9d046fd691d2b7550587" Missing separate debuginfo for /usr/lib64/libxcb.so.1 Try: zypper install -C "debuginfo(build-id)=54a77c10d44b40080d6d8e65d277ccb7ab2a5b4a" Missing separate debuginfo for /usr/lib64/libXau.so.6 Try: zypper install -C "debuginfo(build-id)=72341bb9d8a1ad2ca2bbced007f3a785121aac28" Missing separate debuginfo for /usr/lib64/libgdiplus.so Try: zypper install -C "debuginfo(build-id)=c1b2d7b9cac9c0c112d196cbed30987c404c6cc4" Missing separate debuginfo for /lib64/libz.so.1 Try: zypper install -C "debuginfo(build-id)=763926681ebc75fcd9de7b99f7229ff15c7d1754" Missing separate debuginfo for /usr/lib64/libfreetype.so.6 Try: zypper install -C "debuginfo(build-id)=548e35b1efff83633f9244c84f02d37571e8ac19" Missing separate debuginfo for /usr/lib64/libXrender.so.1 Try: zypper install -C "debuginfo(build-id)=55f90cfa8482fae594e59cce00c20937e7257446" Missing separate debuginfo for /usr/lib64/libtiff.so.3 Try: zypper install -C "debuginfo(build-id)=24488a32df13f4f0a7bacc9eac718b1ecf499309" Missing separate debuginfo for /usr/lib64/libjpeg.so.62 Try: zypper install -C "debuginfo(build-id)=ce95cfb1c72cc3f5bf63e48bc4bc6b55fd43ef7a" Missing separate debuginfo for /usr/lib64/libgif.so.4 Try: zypper install -C "debuginfo(build-id)=26109750584478961d7a542f03a4d8a6f6cafd0d" Missing separate debuginfo for /usr/lib64/libpng12.so.0 Try: zypper install -C "debuginfo(build-id)=67ebdd04bd0be9a64a35354cb80d8ba2b0221f8f" Missing separate debuginfo for /usr/lib64/libexif.so.12 Try: zypper install -C "debuginfo(build-id)=278c0cb13cd2f3b7861da5b1b3a722e30c366791" Missing separate debuginfo for /usr/lib64/libfontconfig.so.1 Try: zypper install -C "debuginfo(build-id)=91c40a3235e928f04acc6b7d9c308f9db5502b20" Missing separate debuginfo for /lib64/libexpat.so.1 Try: zypper install -C "debuginfo(build-id)=7e28104e86f1505bd5d7e8b754a9056bc6cdb777" Missing separate debuginfo for /usr/lib64/libgtk-x11-2.0.so.0 Try: zypper install -C "debuginfo(build-id)=3ef68407a0d2fd8402e30c3510ba77665fc32156" Missing separate debuginfo for /usr/lib64/libgdk-x11-2.0.so.0 Try: zypper install -C "debuginfo(build-id)=b790d45d12271f7de80fc24169ecf82071cb832d" Missing separate debuginfo for /usr/lib64/libgdk_pixbuf-2.0.so.0 Try: zypper install -C "debuginfo(build-id)=20edddb566b82a691512c3bc94f4d6ae4167192c" Missing separate debuginfo for /usr/lib64/libpangocairo-1.0.so.0 Try: zypper install -C "debuginfo(build-id)=92f8e672ab08d6acb437334716aa34af3006624c" Missing separate debuginfo for /usr/lib64/libXfixes.so.3 Try: zypper install -C "debuginfo(build-id)=6495446f04c2f9a4fa3021f7322d6f12c4017305" Missing separate debuginfo for /usr/lib64/libatk-1.0.so.0 Try: zypper install -C "debuginfo(build-id)=6b1b562a685377458d2ba24ef2e3080517bddbde" Missing separate debuginfo for /usr/lib64/libcairo.so.2 Try: zypper install -C "debuginfo(build-id)=eff393400f13166189b42ccd85c24395cb62901a" Missing separate debuginfo for /usr/lib64/libgio-2.0.so.0 Try: zypper install -C "debuginfo(build-id)=08ca9202ff9c75bc7271ef47e5bbad43a2a0c36d" Missing separate debuginfo for /usr/lib64/libpangoft2-1.0.so.0 Try: zypper install -C "debuginfo(build-id)=ff6ab6a12ac30c66bca001b897d454b901a759cd" Missing separate debuginfo for /usr/lib64/libpango-1.0.so.0 Try: zypper install -C "debuginfo(build-id)=1afe045ecc021366c0515b4dad6e66fe0ebe771e" Missing separate debuginfo for /usr/lib64/libgobject-2.0.so.0 Try: zypper install -C "debuginfo(build-id)=f19847d70b70328d99de6303ce77402c1c0ad267" Missing separate debuginfo for /usr/lib64/libgmodule-2.0.so.0 Try: zypper install -C "debuginfo(build-id)=8e6cb0d3af9508ac2bfb8db5157694ba8fac5cd9" Missing separate debuginfo for /usr/lib64/libXext.so.6 Try: zypper install -C "debuginfo(build-id)=a14cd41f23af7f31d0ac2bd8eada730888690b27" Missing separate debuginfo for /usr/lib64/libXinerama.so.1 Try: zypper install -C "debuginfo(build-id)=c7af2457b235b84f26ce24f1c4d260ec7eeb9f88" Missing separate debuginfo for /usr/lib64/libXi.so.6 Try: zypper install -C "debuginfo(build-id)=d278c56b4359f6a219af5e13576873a38581c25c" Missing separate debuginfo for /usr/lib64/libXrandr.so.2 Try: zypper install -C "debuginfo(build-id)=6a1fccee186ebf368f2d6a7d5ccd582943fd1953" Missing separate debuginfo for /usr/lib64/libXcursor.so.1 Try: zypper install -C "debuginfo(build-id)=56d901d8946aefda2e4b5e12dba24c13ac3f61a9" Missing separate debuginfo for /usr/lib64/libXcomposite.so.1 Try: zypper install -C "debuginfo(build-id)=04bac2797b48183b0534d8ab8a481383e12680aa" Missing separate debuginfo for /usr/lib64/libXdamage.so.1 Try: zypper install -C "debuginfo(build-id)=650d88fdf900daadd8ba1c9134c21b4e68b560bc" Missing separate debuginfo for /usr/lib64/libpixman-1.so.0 Try: zypper install -C "debuginfo(build-id)=e2796f6ce8e24789f258c0047a7ad1c47eeae67d" Missing separate debuginfo for /usr/lib64/libxcb-render-util.so.0 Try: zypper install -C "debuginfo(build-id)=c316459cc02a8eb148173af72236bfa034acd17b" Missing separate debuginfo for /usr/lib64/libxcb-render.so.0 Try: zypper install -C "debuginfo(build-id)=7fdad8a2768f53c44f378b1ce0b4747f045b0ffb" Missing separate debuginfo for /lib64/libresolv.so.2 Try: zypper install -C "debuginfo(build-id)=75e330be16e086696f5aac505e30e9628abc9ca9" Missing separate debuginfo for /lib64/libselinux.so.1 Try: zypper install -C "debuginfo(build-id)=e2a1d921e5eb705fc1e51c5651c04fea1e31bcfd" Missing separate debuginfo for /usr/lib64/libSDL-1.2.so.0 Try: zypper install -C "debuginfo(build-id)=b0156191fc8c52380d5c8bc2399c4aab70afa0cd" Missing separate debuginfo for /usr/lib64/libSDL_mixer-1.2.so.0 Try: zypper install -C "debuginfo(build-id)=71cd777867dac15bc96a18776d55b40e6d21e192" Missing separate debuginfo for /lib64/libgcc_s.so.1 Try: zypper install -C "debuginfo(build-id)=0206e11fa8ca0db0633073adcbf1349a7871e1dc" Missing separate debuginfo for /usr/lib64/libEGL.so Try: zypper install -C "debuginfo(build-id)=43b0b0adfaf997c7b8551e1183c1a9c5d00b5c6d" Mono support loaded. [Thread debugging using libthread_db enabled] [New Thread 0x7fdf3bd5f910 (LWP 17336)] [New Thread 0x7fdf3bf60910 (LWP 17335)] [New Thread 0x7fdf3e41b910 (LWP 17334)] [New Thread 0x7fdf3cf43910 (LWP 17332)] 0x00007fdf3d72fabb in read () from /lib64/libpthread.so.0 5 Thread 0x7fdf3cf43910 (LWP 17332) 0x00007fdf3d72d049 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 4 Thread 0x7fdf3e41b910 (LWP 17334) 0x00007fdf3d730341 in nanosleep () from /lib64/libpthread.so.0 3 Thread 0x7fdf3bf60910 (LWP 17335) 0x00007fdf3d72ee11 in sem_wait () from /lib64/libpthread.so.0 2 Thread 0x7fdf3bd5f910 (LWP 17336) 0x00007fdf3d72fdfc in recv () from /lib64/libpthread.so.0 * 1 Thread 0x7fdf3e40d730 (LWP 17330) 0x00007fdf3d72fabb in read () from /lib64/libpthread.so.0 Thread 5 (Thread 0x7fdf3cf43910 (LWP 17332)): #0 0x00007fdf3d72d049 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00000000005bdb53 in GC_wait_marker () at pthread_support.c:1785 #2 0x00000000005b82bd in GC_help_marker (my_mark_no=14) at mark.c:1116 #3 0x00000000005be95c in GC_mark_thread (id=<value optimized out>) at pthread_support.c:548 #4 0x00007fdf3d72865d in start_thread () from /lib64/libpthread.so.0 #5 0x00007fdf3d24314d in clone () from /lib64/libc.so.6 #6 0x0000000000000000 in ?? () Thread 4 (Thread 0x7fdf3e41b910 (LWP 17334)): #0 0x00007fdf3d730341 in nanosleep () from /lib64/libpthread.so.0 #1 0x0000000000589ab2 in collection_thread (unused=<value optimized out>) at collection.c:34 #2 0x00007fdf3d72865d in start_thread () from /lib64/libpthread.so.0 #3 0x00007fdf3d24314d in clone () from /lib64/libc.so.6 #4 0x0000000000000000 in ?? () Thread 3 (Thread 0x7fdf3bf60910 (LWP 17335)): #0 0x00007fdf3d72ee11 in sem_wait () from /lib64/libpthread.so.0 #1 0x00000000004fd280 in finalizer_thread (unused=<value optimized out>) at gc.c:1022 #2 0x0000000000572595 in start_wrapper (data=<value optimized out>) at threads.c:662 #3 0x00000000005a2663 in thread_start_routine (args=0x934500) at wthreads.c:286 #4 0x00000000005bf031 in GC_start_routine (arg=<value optimized out>) at pthread_support.c:1390 #5 0x00007fdf3d72865d in start_thread () from /lib64/libpthread.so.0 #6 0x00007fdf3d24314d in clone () from /lib64/libc.so.6 #7 0x0000000000000000 in ?? () Thread 2 (Thread 0x7fdf3bd5f910 (LWP 17336)): #0 0x00007fdf3d72fdfc in recv () from /lib64/libpthread.so.0 #1 0x00000000004ab03d in recv (__flags=<value optimized out>, __n=<value optimized out>, __buf=<value optimized out>, __fd=<value optimized out>) at /usr/include/bits/socket2.h:45 #2 debugger_thread (__flags=<value optimized out>, __n=<value optimized out>, __buf=<value optimized out>, __fd=<value optimized out>) at debugger-agent.c:5918 #3 0x00000000005a2663 in thread_start_routine (args=0x9345c8) at wthreads.c:286 #4 0x00000000005bf031 in GC_start_routine (arg=<value optimized out>) at pthread_support.c:1390 #5 0x00007fdf3d72865d in start_thread () from /lib64/libpthread.so.0 #6 0x00007fdf3d24314d in clone () from /lib64/libc.so.6 #7 0x0000000000000000 in ?? () Thread 1 (Thread 0x7fdf3e40d730 (LWP 17330)): #0 0x00007fdf3d72fabb in read () from /lib64/libpthread.so.0 #1 0x0000000000486489 in read (__nbytes=<value optimized out>, __buf=<value optimized out>, __fd=<value optimized out>) at /usr/include/bits/unistd.h:45 #2 mono_handle_native_sigsegv (__nbytes=<value optimized out>, __buf=<value optimized out>, __fd=<value optimized out>) at mini-exceptions.c:1809 #3 0x00000000004d189f in mono_arch_handle_altstack_exception (sigctx= 0x7fdf3e420bc0, fault_addr=<value optimized out>, stack_ovf=0) at exceptions-amd64.c:879 #4 <signal handler called> #5 0x00000000004ad472 in merge_argument_class_from_type ( type=<value optimized out>, class1=ARG_CLASS_NO_CLASS) at mini-amd64.c:394 #6 0x00000000004ad819 in add_valuetype (gsctx=<value optimized out>, sig=<value optimized out>, ainfo=<value optimized out>, type=<value optimized out>, is_return=<value optimized out>, gr=<value optimized out>, fr=0x7fff3686118c, stack_size=0x7fff36861188) at mini-amd64.c:552 #7 0x00000000004ade81 in get_call_info (gsctx=0x0, mp=<value optimized out>, sig=0x13a1558, is_pinvoke=<value optimized out>) at mini-amd64.c:688 #8 0x00000000004b58e6 in mono_arch_emit_call (cfg=0xdaf4e0, call=0x1028290) at mini-amd64.c:1824 #9 0x000000000042baae in mono_emit_call_args (tail=<value optimized out>, virtual=<value optimized out>, calli=<value optimized out>, args=<value optimized out>, sig=<value optimized out>, cfg=<value optimized out>) at method-to-ir.c:2194 #10 mono_emit_calli (tail=<value optimized out>, virtual=<value optimized out>, calli=<value optimized out>, args=<value optimized out>, sig=<value optimized out>, cfg=<value optimized out>) at method-to-ir.c:2206 #11 0x0000000000449ec0 in mono_method_to_ir (cfg=0xdaf4e0, method=<value optimized out>, start_bblock=<value optimized out>, end_bblock=<value optimized out>, return_var=<value optimized out>, dont_inline=<value optimized out>, inline_args=0x0, inline_offset=0, is_virtual_call=0) at method-to-ir.c:6698 #12 0x000000000041d377 in mini_method_compile (method= "OpenTK.Platform.Egl.Egl:GetCurrentContext ()", opts=<value optimized out>, domain=<value optimized out>, run_cctors=<value optimized out>, compile_aot=<value optimized out>, parts=<value optimized out>) at mini.c:3401 #13 0x000000000041ea04 in mono_jit_compile_method_inner ( jit_ex=<value optimized out>, opt=<value optimized out>, target_domain=<value optimized out>, method= "OpenTK.Platform.Egl.Egl:GetCurrentContext ()") at mini.c:4146 #14 mono_jit_compile_method_with_opt (jit_ex=<value optimized out>, opt=<value optimized out>, target_domain=<value optimized out>, method= "OpenTK.Platform.Egl.Egl:GetCurrentContext ()") at mini.c:4338 #15 0x000000000041f37d in mono_jit_compile_method (method= Traceback (most recent call last): File "/usr/bin/mono-gdb.py", line 150, in to_string class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ()) RuntimeError: Error reading string from inferior: Eingabe-/Ausgabefehler ) at mini.c:4363 #16 0x000000000041ea53 in mono_jit_compile_method_inner ( jit_ex=<value optimized out>, opt=<value optimized out>, target_domain=<value optimized out>, method= "OpenTK.Platform.Egl.Egl:GetCurrentContext ()") at mini.c:4129 #17 mono_jit_compile_method_with_opt (jit_ex=<value optimized out>, opt=<value optimized out>, target_domain=<value optimized out>, method= "OpenTK.Platform.Egl.Egl:GetCurrentContext ()") at mini.c:4338 #18 0x000000000041f37d in mono_jit_compile_method (method= Traceback (most recent call last): File "/usr/bin/mono-gdb.py", line 150, in to_string class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ()) RuntimeError: Error reading string from inferior: Eingabe-/Ausgabefehler ) at mini.c:4363 #19 0x0000000000489f89 in mono_magic_trampoline (regs=0x7fff36861a18, code= 0x41c159fc "H\213\315H\203\301\330H\211E\330D\213\034%", arg=<value optimized out>, tramp=<value optimized out>) at mini-trampolines.c:476 #20 0x00000000412bc168 in ?? () #21 0x0000000000000002 in ?? () #22 0x0000000000572b7a in mono_thread_interruption_checkpoint_request ( bypass_abort_protection=914758336) at threads.c:3938 #23 0x0000000000572b7a in mono_thread_interruption_checkpoint_request ( bypass_abort_protection=914758416) at threads.c:3938 #24 0x00000000412bc173 in ?? () #25 0x00007fff368618c0 in ?? () #26 0x00007fff36861840 in ?? () #27 0x00007fdf3e2b7db0 in ?? () #28 0x00000000016c2390 in ?? () #29 0x0000000000000000 in ?? () ================================================================= 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. =================================================================


Comments
#1
Btw, this was tested on the 1.0 branch.
#2
This was caused by using structs directly in p/invokes, which will not work correctly in the general case (it generally works on x86 but fails in other instruction sets, including amd64). Should be fixed by r2572.
#3
Ok, I had thought it was due to a 64-bit issue before I left for xmas. I will do some testing this week.
#5
Closing issues fixed in opentk-1.0-beta-3.