Bug 35166 - File Access fails when using Linux Tool cpulimit
Summary: File Access fails when using Linux Tool cpulimit
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: io-layer ()
Version: 4.0.0
Hardware: Other Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-10-22 11:03 UTC by Wolfgang Thomas
Modified: 2015-10-22 11:03 UTC (History)
3 users (show)

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 for Bug 35166 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Wolfgang Thomas 2015-10-22 11:03:33 UTC
I have an application which is a mixture of processes running unmanaged code (C++) and one process running managed code (C#, mono 4.x). The application runs stable on Linux.
Now trying to determine the behavior in case of CPU shortage the Linux tool cpulimit is used to limit the CPU access for the individual processes. All processes behave graceful, however when cpulimit is applied to the mono process, mono exits after the application throws an exception indicating that a file could not be found. This exception can be a System.IO.FileNotFoundException, or a System.Exception: Logger configuration not found, or System.DllNotFoundException. It is not complaining about one specific file, but it appears that there are general file access problems. The files are definitely there and this effect only occurs when applying the cpulimit tool to the mono process.

Now one could argue "so what" and this was my first reaction too, however ignoring this strange effect might ignore a problem in mono.

Has anyone ever seen similar issues that using cpulimit, or directly sending SIGSTOP and SIGCONT, to a mono process under Linux caused problems with file system access or other system calls?