Bug 10883 - Exception when external process ends
Summary: Exception when external process ends
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: 3.2.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
: 12435 17637 18271 ()
Depends on:
Blocks:
 
Reported: 2013-03-04 12:07 UTC by Alan McGovern
Modified: 2014-03-10 14:10 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 FIXED

Description Alan McGovern 2013-03-04 12:07:05 UTC
System.ObjectDisposedException: The object was used after being disposed.
  at System.IO.FileStream.Write (System.Byte[] array, Int32 offset, Int32 count) [0x000aa] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System.IO/FileStream.cs:634 
  at System.IO.StreamWriter.FlushBytes () [0x00043] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System.IO/StreamWriter.cs:222 
  at System.IO.StreamWriter.Decode () [0x0000c] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System.IO/StreamWriter.cs:229 
  at System.IO.StreamWriter.FlushCore () [0x00000] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System.IO/StreamWriter.cs:201 
  at System.IO.StreamWriter.Flush () [0x00006] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System.IO/StreamWriter.cs:195 
  at System.IO.StreamWriter.Dispose (Boolean disposing) [0x00012] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System.IO/StreamWriter.cs:178 
  at System.IO.StreamWriter.Close () [0x00000] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/corlib/System.IO/StreamWriter.cs:367 
  at System.Diagnostics.Process.Dispose (Boolean disposing) [0x000a2] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/System/System.Diagnostics/Process.cs:1581 
  at MonoDevelop.Core.Execution.ProcessWrapper.Dispose (Boolean disposing) [0x0007a] in /Users/alan/Projects/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs:118 
  at System.Diagnostics.Process.Finalize () [0x00000] in /private/tmp/source/bockbuild/profiles/mono-mac-release/build-root/mono-3.0.6/_build/mono-3.0.6.git/mcs/class/System/System.Diagnostics/Process.cs:1601
Comment 1 Mikayla Hutchinson [MSFT] 2013-12-11 00:15:35 UTC
*** Bug 12435 has been marked as a duplicate of this bug. ***
Comment 2 Mikayla Hutchinson [MSFT] 2013-12-11 00:20:04 UTC
Misimplemented dispose pattern in System.Diagnostics.Process.Dispose. It should not be touching input_stream/output_stream/error_stream if disposing is false.
Comment 3 Rodrigo Kumpera 2013-12-11 17:22:08 UTC
Fixed in mono master.
Comment 4 Alan McGovern 2014-02-06 10:13:21 UTC
*** Bug 17637 has been marked as a duplicate of this bug. ***
Comment 5 Mikayla Hutchinson [MSFT] 2014-03-10 14:10:55 UTC
*** Bug 18271 has been marked as a duplicate of this bug. ***