Linux Island exception seg fault

The following Linux Island test program bombs with a seg fault:

namespace ConsoleApplication2;

type
    Program = class
    public

        class method Main(args: array of String): Int32;
        begin
          try
            raise new Exception('Here we go...');
          except
            on E : Exception do
              writeLn(E.Message);
          end;
        end;

    end;

end.

The same try block works as expected in .Net Core. If I change E.Message to ‘Oof’ it works as expected in Linux Island.

Here is strace output from a failed run: strace.txt (8.5 KB)

Addendum: E.ToString() also causes a seg fault on Linux Island.

Hmm, so the behavior changes with the contents/length of the string literal?

No, when I change from E.Message, which is a property returning the error message used to create the exception instance E, to a string literal ‘Oof’ I don’t get a seg fault.

This happens with builds 2437 and 2445.

1 Like

Thanks, logged as bugs://83399

bugs://83399 got closed with status fixed.

If you grab latest IslandRTL and rebuild (Release) and copy the Island.fx over the existing one for linux, it should be fixed. (That or wait for Fridays’ build).