Bug 28358 - System.Diagnostics.Process.GetProcesses() gives truncated results
Summary: System.Diagnostics.Process.GetProcesses() gives truncated results
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: 3.12.0
Hardware: Other Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-03-24 05:44 UTC by alexprentl
Modified: 2015-03-26 05:22 UTC (History)
1 user (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 28358 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 alexprentl 2015-03-24 05:44:59 UTC
Running this simple code in version 3.12.1 gives truncated results:

foreach (var proc in Process.GetProcesses())
  Console.WriteLine("Proc id={0}", proc.Id);

It only lists about half the actual processes running, as an example it only lists about the first 20 or so when compared to running "ps -ef". It was working fine in mono 3.8.0 but since the upgrade has problems. I'll will check mono 3.10.0 as well to help see if its a recent change.

Platform wise I'm running mono 3.12.1 on both a Raspberry Pi B & 2 (with Raspbian). It suggests an issue with the internal function GetProcesses_internal.
Comment 1 alexprentl 2015-03-26 05:22:08 UTC
I've also checked 3.10 and confirm its working ok in that version so must have been caused by a change between 3.10 and 3.12.