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

Patrick Earl mono at patearl.net
Mon Feb 5 11:25:06 EST 2007


Without further investigation I would assume this was related to the
thread handle issue reported a number of times in the past.  One of
the bug reports is here:

    http://bugzilla.ximian.com/show_bug.cgi?id=79060

We have resorted to restarting our server (and cleaning up the wapi
files) nightly to work around the bug.

        Patrick

On 2/5/07, Leszek Ciesielski <skolima at gmail.com> wrote:
> Hi,
>
> 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)
> [0x00000]
>   at ThoughtWorks.CruiseControl.Core.Sourcecontrol.ProcessSourceControl.Execute
> (ThoughtWorks.CruiseControl.Core.Util.ProcessInfo processInfo)
> [0x00000]
>   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)
> [0x00000]
>   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)
> [0x00000]
>   at ThoughtWorks.CruiseControl.Core.Project.Integrate
> (ThoughtWorks.CruiseControl.Remote.IntegrationRequest request)
> [0x00000]
>   at ThoughtWorks.CruiseControl.Core.ProjectIntegrator.Integrate () [0x00000]
>
> Attached is my attempt at creating a simplified test case.
>
> Regards,
>
> Leszek
>
> --
> 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
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>



More information about the Mono-devel-list mailing list