[Mono-list] Strange crash reading from console

Nicholas Frechette zeno490 at gmail.com
Mon Aug 6 01:16:31 UTC 2012


I suddenly started getting this crash in code that was previously working.

I use mono 2.10.8 built from sources in ubuntu 12.04.

Unhandled Exception: System.IO.IOException: Invalid handle to path
"../exe/path/[Unknown]"
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf,
Int32 offset, Int32 count) [0x00046] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System.IO/FileStream.cs:1087
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32
offset, Int32 count) [0x0002f] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System.IO/FileStream.cs:557
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset,
Int32 count) [0x000be] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System.IO/FileStream.cs:533
  at System.IO.StreamReader.ReadBuffer () [0x00012] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System.IO/StreamReader.cs:376
  at System.IO.StreamReader.Read () [0x0001b] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System.IO/StreamReader.cs:430
  at System.TermInfoDriver.GetCursorPosition () [0x00051] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System/TermInfoDriver.cs:497
  at System.TermInfoDriver.Init () [0x00396] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System/TermInfoDriver.cs:251
  at System.TermInfoDriver.ReadKeyInternal (System.Boolean& fresh)
[0x0000b] in /home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System/TermInfoDriver.cs:967
  at System.TermInfoDriver.ReadKey (Boolean intercept) [0x00000] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System/TermInfoDriver.cs:1132
  at System.ConsoleDriver.ReadKey (Boolean intercept) [0x00000] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System/ConsoleDriver.cs:222
  at System.Console.ReadKey (Boolean intercept) [0x00000] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System/Console.cs:683
  at Cygnus.MainClass.ConsoleExitListeningFun (System.Object _State)
[0x0000c] in /home/nicholas/projects/Cygnus-dev/Cygnus/Main.cs:153
  at System.Threading.Thread.StartInternal () [0x0002b] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System.Threading/Thread.cs:705
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.IOException: Invalid
handle to path "/home/nicholas/projects/rovisualizer-dev/rovisualizer/bin/Debug/[Unknown]"
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf,
Int32 offset, Int32 count) [0x00046] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System.IO/FileStream.cs:1087
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32
offset, Int32 count) [0x0002f] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System.IO/FileStream.cs:557
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset,
Int32 count) [0x000be] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System.IO/FileStream.cs:533
  at System.IO.StreamReader.ReadBuffer () [0x00012] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System.IO/StreamReader.cs:376
  at System.IO.StreamReader.Read () [0x0001b] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System.IO/StreamReader.cs:430
  at System.TermInfoDriver.GetCursorPosition () [0x00051] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System/TermInfoDriver.cs:497
  at System.TermInfoDriver.Init () [0x00396] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System/TermInfoDriver.cs:251
  at System.TermInfoDriver.ReadKeyInternal (System.Boolean& fresh)
[0x0000b] in /home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System/TermInfoDriver.cs:967
  at System.TermInfoDriver.ReadKey (Boolean intercept) [0x00000] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System/TermInfoDriver.cs:1132
  at System.ConsoleDriver.ReadKey (Boolean intercept) [0x00000] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System/ConsoleDriver.cs:222
  at System.Console.ReadKey (Boolean intercept) [0x00000] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System/Console.cs:683
  at Cygnus.MainClass.ConsoleExitListeningFun (System.Object _State)
[0x0000c] in /home/nicholas/projects/Cygnus-dev/Cygnus/Main.cs:153
  at System.Threading.Thread.StartInternal () [0x0002b] in
/home/nicholas/mono_src/mono-2.10.8/mcs/class/corlib/System.Threading/Thread.cs:705


More information about the Mono-list mailing list