Bug 5358 - CS0589 on arm Linux
Summary: CS0589 on arm Linux
Status: RESOLVED ANSWERED
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: unspecified
Hardware: Other Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-27 10:16 UTC by Torsten Harenberg
Modified: 2017-07-11 23:09 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Torsten Harenberg 2012-05-27 10:16:25 UTC
I'm new to mono (doing anything than just running C# "binaries" on
Linux and or Mac). Please excuse if this is the wrong bug tracker (or
a silly issue,).

I try to run a small application written by someone else on a
Pandaboard (ARM Linux, Ubuntu 12.04 Server).

After just trying to run the application just by downloading the file
and start "mono dvrptr.exe" did not work (error message at the end of
this mail), I grabbed the sources and tried to compile the application
on the device itself. I used the mono installation provided by Ubuntu
which reported itself as being:

harenber at pandaboard:~/dvrptr$ mono -V
Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-1ubuntu2)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors.
www.mono-project.com
	TLS:           __thread
	SIGSEGV:       normal
	Notifications: epoll
	Architecture:  armel,vfp
	Disabled:      none
	Misc:          softdebug
	LLVM:          supported, not enabled.
	GC:            Included Boehm (with typed GC and Parallel Mark)

However, trying to compile the stuff with "xbuild dvrptr.csproj" the
compiler stops here:

	aprs.cs(60,70): error CS0589: Internal compiler error during parsing
	qthloc.cs(88,100): error CS0589: Internal compiler error during parsing
	Form1.cs(249,39): error CS0589: Internal compiler error during parsing
	Form1.Designer.cs(853,91): error CS0589: Internal compiler error during parsing

I couldn't find anything fishy at these positions, for example the
first one is the line inside this try block:

            int range_miles = 100;
            try
            {
                range_miles = (int)(Convert.ToDouble(myRange) * 0.6214);
                }
            catch
            {
            }

Trying the same on a x86_64 machine running the same Linux
distribution builds the application fine and it can be started
afterwards.

I put the complete source code at

http://www.atlas.uni-wuppertal.de/~harenber/dvrptr.zip

Is this a bug or is this generally not possible on ARM based machines?

Kind regards,

  Torsten

Appendix: error message while running the x86_64 compiled app:

harenber at pandaboard:~/dvrptr$ mono dvrptr.exe
Stacktrace:

  at System.Drawing.Font.CreateFont
(string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool)
<0x0013f>
  at System.Drawing.Font..ctor
(string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool)
<0x0007f>
  at System.Drawing.Font..ctor (string,single,string) <0x00057>
  at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor
(string,single,string) <0xffffffff>
  at System.Drawing.SystemFonts.get_DefaultFont () <0x0005b>
  at System.Windows.Forms.Theme..ctor () <0x0002b>
  at System.Windows.Forms.ThemeWin32Classic..ctor () <0x00013>
  at System.Windows.Forms.ThemeVisualStyles..ctor () <0x00013>
  at System.Windows.Forms.ThemeEngine..cctor () <0x00063>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at System.Windows.Forms.X11DesktopColors..cctor () <0x000a7>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at System.Windows.Forms.XplatUIX11..ctor () <0x0014b>
  at System.Windows.Forms.XplatUIX11.GetInstance () <0x0004b>
  at System.Windows.Forms.XplatUI..cctor () <0x0010b>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at System.Windows.Forms.Application.EnableVisualStyles () <0x0001b>
  at dvrptr.Program.Main () <0x00067>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>

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

Aborted
harenber at pandaboard:~/dvrptr$
Comment 1 Torsten Harenberg 2012-06-15 04:59:52 UTC
just to add that the problem stays the same after a minor upgrade done by Canonical:


Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.1)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       normal
        Notifications: epoll
        Architecture:  armel,vfp
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            Included Boehm (with typed GC and Parallel Mark)
Comment 2 Torsten Harenberg 2013-12-09 03:28:29 UTC
As mentioned in

https://bugzilla.xamarin.com/show_bug.cgi?id=7938

this seems to be related to the LANG variable (see my comment 46).
Comment 3 Rodrigo Kumpera 2017-07-11 23:09:49 UTC
This is a libgdiplus crash. We no longer maintain it.