[Mono-dev] CruiseControl.Net on linux and threading problems

Leszek Ciesielski skolima at gmail.com
Mon Feb 5 09:11:43 EST 2007


I am using CruiseControl.Net on a linux machine running mono, and
after 3 or 4 days of running the process is unable to start further
threads. This works fine on mono & ms.net on windows. I have inspected
the code and I do not see any obvious errors - all threads seem to be
Aborted/Joined after they are no longer needed, this is done by
wrapping classes that create them in "using" and shutting down the
threads in Dispose calls. It seems to be a problem with mono. Should I
file a bug with mono or with cc.net? Or both?

CC.Net reports:

2007-02-04 03:42:28,053 [Projectname:ERROR] INTERNAL ERROR: Thread
creation failed.
System.SystemException: Thread creation failed.
  at System.Threading.Thread.Start () [0x00000]
  at ThoughtWorks.CruiseControl.Core.Util.ProcessReader..ctor
(System.IO.TextReader stream) [0x00000]
  at ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor+RunnableProcess.Run
() [0x00000]
  at ThoughtWorks.CruiseControl.Core.Util.ProcessExecutor.Execute
(ThoughtWorks.CruiseControl.Core.Util.ProcessInfo processInfo)
  at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute
(ThoughtWorks.CruiseControl.Core.Util.ProcessInfo processInfo)
  at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.GetModifications
(ThoughtWorks.CruiseControl.Core.Util.ProcessInfo info, DateTime from,
DateTime to) [0x00000]
  at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Cvs.GetModifications
(IIntegrationResult from, IIntegrationResult to) [0x00000]
  at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificationsWithLogging
(ISourceControl sc, IIntegrationResult from, IIntegrationResult to)
  at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications
(ISourceControl sourceControl, IIntegrationResult lastBuild,
IIntegrationResult thisBuild) [0x00000]
  at ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications
(IIntegrationResult from, IIntegrationResult to) [0x00000]
  at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate
(ThoughtWorks.CruiseControl.Remote.IntegrationRequest request)
  at ThoughtWorks.CruiseControl.Core.Project.Integrate
(ThoughtWorks.CruiseControl.Remote.IntegrationRequest request)
  at ThoughtWorks.CruiseControl.Core.ProjectIntegrator.Integrate () [0x00000]

Attached is my attempt at creating a simplified test case.



MS-DOS user since 5.0
Windows user since 3.11
Linux user since kernel 2.4
Novell Netware user since 2.2
WARCRAFT user since 1.0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Program.cs
Type: application/octet-stream
Size: 855 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070205/3284dd4c/attachment.obj 

More information about the Mono-devel-list mailing list