Bug 311724 (MONO34318) - When Calling thread.Start();thread.Abort();thread.Start(), mono segfaults
Summary: When Calling thread.Start();thread.Abort();thread.Start(), mono segfaults
Status: RESOLVED MOVED
Alias: MONO34318
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Debian Woody
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-20 05:58 UTC by Eduardo Garcia Cebollero
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:03:40 UTC


---- Reported by kiwnix@yahoo.es 2002-11-19 22:58:45 MST ----

Description of Problem:
When calling thread.Start();thread.Abort();thread.Start(); in mono, it
segfaults after displaying the exception (if the exception is not handled)

TestCase:
using System;
using System.Threading;

public class Prueba
{
	public class C2Test
	{
		public int cnt;
		public C2Test()
		{
			this.cnt = 0;
		}

		public void TestMethod()
		{
			while (true)
			{
				if (cnt < 1000)
					cnt++;
			       	else
					cnt = 0;
			}
		}
	}

	public static void Main()
	{
		bool errorThrown = false;
		C2Test test1 = new C2Test();
		Thread TestThread = new Thread(new ThreadStart(test1.TestMethod));
		TestThread.Start();
		TestThread.Abort();
		TestThread.Start();
	}
}



---- Additional Comments From dick@ximian.com 2002-11-20 05:29:03 MST ----

This looks like a duplicate

*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO34323 ***


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>anon-cvs Wed Nov 20 04:53:39 CET 2002</cf_op_sys_details>
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"