Bug 2777 - Child Task incorrect behavior
Summary: Child Task incorrect behavior
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: 2.10.x
Hardware: PC Windows
: Normal normal
Target Milestone: Untriaged
Assignee: Jérémie Laval
URL:
Depends on:
Blocks:
 
Reported: 2012-01-08 19:31 UTC by Corey Kaylor
Modified: 2012-02-03 10:49 UTC (History)
4 users (show)

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


Attachments
Failing test cases (1.20 KB, text/plain)
2012-01-08 19:31 UTC, Corey Kaylor
Details


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 Corey Kaylor 2012-01-08 19:31:40 UTC
Created attachment 1136 [details]
Failing test cases

When using child tasks (TaskCreationOptions.AttachedToParent) and that task uses a continuation, the continuation will be not executed.

In addition, when using a child task calling RunSynchronously on the parent task will throw an exception because it fails to execute the task block.

I have submitted failing test cases.

I have also verified this same issue exists on both Mono Linux, and Mono on Windows.

The test cases submitted pass when running them against MS .NET.
Comment 1 Miguel de Icaza [MSFT] 2012-01-13 15:51:36 UTC
Jeremie, can you please take a look at this?
Comment 2 Jérémie Laval 2012-02-03 09:46:32 UTC
Hi,

Both bugs have been fixed and pushed to master/mono-2-10 branch. Thanks for reporting !
Comment 3 Corey Kaylor 2012-02-03 10:49:02 UTC
Awesome news, thanks for the update!