Package: mono-runtime
Version: 4.6.2.7+dfsg-1
Severity: important

Hi,

I downloaded the following OpenRA appimage :
https://github.com/OpenRA/OpenRA/releases/download/release-20181215/OpenRA-Red-
Alert-x86_64.AppImage

Then I ran it.
Under Stretch -> no problem.
Under Buster -> I got exception :
exception inside UnhandledException handler: The type initializer for
'System.Console' threw an exception.

[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type
initializer for 'System.Console' threw an exception. --->
System.TypeInitializationException: The type initializer for
'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number
is wrong: 542
  at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32&
position) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0
  at System.TermInfoReader..ctor (System.String term, System.String filename)
[0x00065] in <8f2c484307284b51944a1a13a14c0266>:0
  at System.TermInfoDriver..ctor (System.String term) [0x00058] in
<8f2c484307284b51944a1a13a14c0266>:0
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000]
in <8f2c484307284b51944a1a13a14c0266>:0
  at System.ConsoleDriver..cctor () [0x00062] in
<8f2c484307284b51944a1a13a14c0266>:0
   --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding,
System.Text.Encoding outputEncoding) [0x0000a] in
<8f2c484307284b51944a1a13a14c0266>:0
  at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0
   --- End of inner exception stack trace ---
  at OpenRA.ExceptionHandler.HandleFatalError (System.Exception ex) [0x0019c]
in <f29ae8a8c8d448fe882f532834367a20>:0
  at OpenRA.Program.<Main>m__0 (System.Object _,
System.UnhandledExceptionEventArgs e) [0x00006] in
<f29ae8a8c8d448fe882f532834367a20>:0

The bug exists upstream (with a fix) and is detailed there :
https://github.com/mono/mono/issues/6752

Steps to reproduce :
DO : run the above app image
EXPECT : it works
ACTUAL : it fails with the exception mentioned

Workaround :
Set TERM=xterm as an environment variable



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8),
LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mono-runtime depends on:
ii  libc6              2.28-2
ii  mono-runtime-sgen  4.6.2.7+dfsg-1

mono-runtime recommends no packages.

mono-runtime suggests no packages.

-- no debconf information

Reply via email to