René's URL Explorer Experiment


Title: Parent Process Object is Missing · Issue #17541 · PowerShell/PowerShell · GitHub

Open Graph Title: Parent Process Object is Missing · Issue #17541 · PowerShell/PowerShell

X Title: Parent Process Object is Missing · Issue #17541 · PowerShell/PowerShell

Description: Background I want to list the processes on my system. Get-Process NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName ------ ----- ----- ------ -- -- ----------- 0 0.00 3.75 0.00 1270 …69 (sd-pam) 0 0.00 9.84 1.25 962 962 accounts-daemon 0 0.00 ...

Open Graph Description: Background I want to list the processes on my system. Get-Process NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName ------ ----- ----- ------ -- -- ----------- 0 0.00 3.75 0.00 1270 …69 (sd-pam) 0 0.00 9...

X Description: Background I want to list the processes on my system. Get-Process NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName ------ ----- ----- ------ -- -- ----------- 0 0.00 3.75 0.00 1270 …69 (sd-pam) 0 0.00 9...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/17541

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parent Process Object is Missing","articleBody":"## Background \r\n\r\nI want to list the processes on my system. \r\n\r\n``` PowerShell\r\nGet-Process \r\n\r\n NPM(K)    PM(M)      WS(M)     CPU(s)      Id  SI ProcessName\r\n ------    -----      -----     ------      --  -- -----------\r\n      0     0.00       3.75       0.00    1270 …69 (sd-pam)\r\n      0     0.00       9.84       1.25     962 962 accounts-daemon\r\n      0     0.00       0.00       0.00     117   0 acpi_thermal_pm\r\n...\r\n\r\n```\r\n\r\nFurther, I would like to sort the processes by parent. \r\n\r\nI'm on Linux. And I have a `Parent` property. I'm not sure if that is available on Windows. \r\n\r\n``` PowerShell\r\nGet-Process | Select-Object @{name='Parent'; expr={$_.Parent.Id}}, Id, Name | Sort-Object Parent, Id\r\n\r\nParent     Id Name\r\n------     -- ----\r\n       105455 Web Content\r\n1        2617 firefox\r\n1      135731 code --no-sandbox --force-user-env --unity-launch --enable-crashpad\r\n1284     1362 Thunar\r\n1370   127909 thunderbird\r\n1667     1688 pwsh\r\n1688    11884 vim\r\n\r\n```\r\n\r\n## Issue\r\n\r\nThe issue I noticed was that some of the Parent Process IDs (PPID) were missing. \r\n\r\nNote there are no IDs in the Parent column below. \r\n\r\n``` PowerShell\r\nGet-Process | Select-Object @{name='Parent'; expr={$_.Parent.Id}}, Id, Name | Sort-Object Parent, Id\r\n\r\nParent     Id Name\r\n------     -- ----\r\n            1 systemd\r\n            2 kthreadd\r\n          847 UVM global queue\r\n          848 UVM deferred release queue\r\n          849 UVM Tools Event Queue\r\n...\r\n       105455 Web Content\r\n       105458 Web Content\r\n...\r\n\r\n```\r\n\r\nIt is not clear to me if there is a bug with PowerShell, a bug with .NET, or something I don't understand. \r\n\r\nThe one-liner I'm issuing seems correct to me. \r\n\r\nBut I'm not getting a Parent Process ID for worker processes, which is the output I expect. \r\n\r\nI don't think there is a permission issue because I am the only user. And the native task manager shows the correct parent and child relationships for processes. \r\n\r\nThe affected processes are mostly Mozilla Firefox and Thunderbird workers. \r\n\r\n![Screenshot_2022-06-19_15-52-37](https://user-images.githubusercontent.com/51273929/174500476-0c74d7c8-8871-4298-8a5d-d72e2c89cdc4.png)\r\n\r\n## Environment \r\n\r\n``` text\r\n$PSVersionTable | Format-Table -Wrap\r\n\r\nName                           Value\r\n----                           -----\r\nPSVersion                      7.2.4\r\nPSEdition                      Core\r\nGitCommitId                    7.2.4\r\nOS                             Linux 5.18.5-1-MANJARO #1 SMP PREEMPT_DYNAMIC\r\n                               Thu Jun 16 12:28:47 UTC 2022\r\nPlatform                       Unix\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n\r\n```\r\n\r\n","author":{"url":"https://github.com/juvtib","@type":"Person","name":"juvtib"},"datePublished":"2022-06-19T21:39:24Z","url":"https://github.com/PowerShell/PowerShell/issues/17541"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6cf6253e-ab31-b74a-8c71-dae2913901d7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA318:1F2299:E81DC:148F7E:6AFDF852
html-safe-nonce437b2f0d74c4f4cf6a095782f36ac1f4da7c0a0b2515b45675517fd193b1f99e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzE4OjFGMjI5OTpFODFEQzoxNDhGN0U6NkFGREY4NTIiLCJ2aXNpdG9yX2lkIjoiMjk4OTI2NTI1OTQ4NDU0MzA1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca2351e8e7cf8ba8adefbeae329ac71b85ad4f76950cac7e6f9e810a5390f04c3
hovercard-subject-tagissue:1276172719
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/17541/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2ed8085d63090d0826ae2bc271cac7028623a5f35639d68bcd3c818e4fca5220/PowerShell/PowerShell/issues/17541
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2ed8085d63090d0826ae2bc271cac7028623a5f35639d68bcd3c818e4fca5220/PowerShell/PowerShell/issues/17541
og:image:altBackground I want to list the processes on my system. Get-Process NPM(K) PM(M) WS(M) CPU(s) Id SI ProcessName ------ ----- ----- ------ -- -- ----------- 0 0.00 3.75 0.00 1270 …69 (sd-pam) 0 0.00 9...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejuvtib
hostnamegithub.com
expected-hostnamegithub.com
Noneee3343385a977757dd145b28fabf4a119780f2615a5a36c5a89f66c9b3b5616d
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release43ae91995f6e2d5ff7a491f3de438f1f723adeaa
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/17541#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F17541
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F17541
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/17541
Reloadhttps://github.com/PowerShell/PowerShell/issues/17541
Reloadhttps://github.com/PowerShell/PowerShell/issues/17541
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests365 (365)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/17541
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/17541
#17545https://github.com/PowerShell/PowerShell/pull/17545
Parent Process Object is Missinghttps://github.com/PowerShell/PowerShell/issues/17541#top
#17545https://github.com/PowerShell/PowerShell/pull/17545
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
Resolution-DuplicateThe issue is a duplicate.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Duplicate%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
https://github.com/juvtib
Michael Mientus (juvtib)https://github.com/juvtib
on Jun 19, 2022https://github.com/PowerShell/PowerShell/issues/17541#issue-1276172719
https://user-images.githubusercontent.com/51273929/174500476-0c74d7c8-8871-4298-8a5d-d72e2c89cdc4.png
Michael Mientus (juvtib)https://github.com/juvtib
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on Jun 19, 2022https://github.com/PowerShell/PowerShell/issues/17541#event-6835219864
https://github.com/jborean93
Jordan Borean (jborean93)https://github.com/jborean93
on Jun 19, 2022https://github.com/PowerShell/PowerShell/issues/17541#issuecomment-1159817164
https://github.com/juvtib
Michael Mientus (juvtib)https://github.com/juvtib
on Jun 19, 2022https://github.com/PowerShell/PowerShell/issues/17541#issuecomment-1159833269
https://github.com/jborean93
Jordan Borean (jborean93)https://github.com/jborean93
on Jun 19, 2022https://github.com/PowerShell/PowerShell/issues/17541#issuecomment-1159834947
PowerShell/src/System.Management.Automation/CoreCLR/CorePsPlatform.cshttps://github.com/PowerShell/PowerShell/blob/9f722ef95072fddd975b1b7b584bf11b2e857a69/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs#L882-L905
9f722efhttps://github.com/PowerShell/PowerShell/commit/9f722ef95072fddd975b1b7b584bf11b2e857a69
https://github.com/juvtib
Michael Mientus (juvtib)https://github.com/juvtib
on Jun 20, 2022https://github.com/PowerShell/PowerShell/issues/17541#issuecomment-1159889599
https://github.com/jborean93
Jordan Borean (jborean93)https://github.com/jborean93
on Jun 20, 2022https://github.com/PowerShell/PowerShell/issues/17541#issuecomment-1159911577
https://man7.org/linux/man-pages/man5/proc.5.htmlhttps://man7.org/linux/man-pages/man5/proc.5.html
fs/proc/array.chttps://github.com/torvalds/linux/blob/master/fs/proc/array.c
https://github.com/torvalds/linux/blob/a111daf0c53ae91e71fd2bfe7497862d14132e3e/fs/proc/array.c#L567-L572https://github.com/torvalds/linux/blob/a111daf0c53ae91e71fd2bfe7497862d14132e3e/fs/proc/array.c#L567-L572
https://github.com/torvalds/linux/blob/a111daf0c53ae91e71fd2bfe7497862d14132e3e/fs/proc/array.c#L183https://github.com/torvalds/linux/blob/a111daf0c53ae91e71fd2bfe7497862d14132e3e/fs/proc/array.c#L183
PowerShell/src/System.Management.Automation/CoreCLR/CorePsPlatform.cshttps://github.com/PowerShell/PowerShell/blob/9f722ef95072fddd975b1b7b584bf11b2e857a69/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs#L441-L444
9f722efhttps://github.com/PowerShell/PowerShell/commit/9f722ef95072fddd975b1b7b584bf11b2e857a69
https://github.com/PowerShell/PowerShell-Native/blob/677c086f20209f70ecad379ec48de2562f1db668/src/libpsl-native/src/getppid.cpp#L27-L48https://github.com/PowerShell/PowerShell-Native/blob/677c086f20209f70ecad379ec48de2562f1db668/src/libpsl-native/src/getppid.cpp#L27-L48
proc(5) - Linux manual pagehttps://man7.org/linux/man-pages/man5/proc.5.html
https://camo.githubusercontent.com/29057e82a9c037827a05b472578ae67dca468c469b152653ac3481a484a5624f/68747470733a2f2f6f70656e67726170682e6769746875626173736574732e636f6d2f656335376462623233643638613935653761363338666630656465383336666237636164383739326538643036666566356138353264646532653565363932362f746f7276616c64732f6c696e7578
https://camo.githubusercontent.com/7e41d4698b37a89b2a8c06057583a5f48ce614b0fb7e2b93d27a2ec01c8f024b/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f66617669636f6e732f66617669636f6e2e737667
linux/array.c at a111daf0c53ae91e71fd2bfe7497862d14132e3e · torvalds/linuxhttps://github.com/torvalds/linux
https://camo.githubusercontent.com/29057e82a9c037827a05b472578ae67dca468c469b152653ac3481a484a5624f/68747470733a2f2f6f70656e67726170682e6769746875626173736574732e636f6d2f656335376462623233643638613935653761363338666630656465383336666237636164383739326538643036666566356138353264646532653565363932362f746f7276616c64732f6c696e7578
https://camo.githubusercontent.com/7e41d4698b37a89b2a8c06057583a5f48ce614b0fb7e2b93d27a2ec01c8f024b/68747470733a2f2f6769746875622e6769746875626173736574732e636f6d2f66617669636f6e732f66617669636f6e2e737667
linux/array.c at a111daf0c53ae91e71fd2bfe7497862d14132e3e · torvalds/linuxhttps://github.com/torvalds/linux
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Jun 20, 2022https://github.com/PowerShell/PowerShell/issues/17541#issuecomment-1159933623
#12908https://github.com/PowerShell/PowerShell/issues/12908
#12925https://github.com/PowerShell/PowerShell/pull/12925
Ilya (iSazonov)https://github.com/iSazonov
Resolution-DuplicateThe issue is a duplicate.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Duplicate%22
on Jun 20, 2022https://github.com/PowerShell/PowerShell/issues/17541#event-6835944093
https://github.com/jborean93
Jordan Borean (jborean93)https://github.com/jborean93
on Jun 20, 2022https://github.com/PowerShell/PowerShell/issues/17541#issuecomment-1160862273
#12925https://github.com/PowerShell/PowerShell/pull/12925
#17545https://github.com/PowerShell/PowerShell/pull/17545
In-PRIndicates that a PR is out for the issuehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22In-PR%22
on Jun 20, 2022https://github.com/PowerShell/PowerShell/issues/17541#event-6842339991
https://github.com/juvtib
Michael Mientus (juvtib)https://github.com/juvtib
on Jun 21, 2022https://github.com/PowerShell/PowerShell/issues/17541#issuecomment-1160975471
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 22, 2022https://github.com/PowerShell/PowerShell/issues/17541#event-6852286652
In-PRIndicates that a PR is out for the issuehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22In-PR%22
on Sep 29, 2022https://github.com/PowerShell/PowerShell/issues/17541#event-7483126597
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
on Sep 29, 2022https://github.com/PowerShell/PowerShell/issues/17541#event-7483126652
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/17541
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/17541
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
Resolution-DuplicateThe issue is a duplicate.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Duplicate%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.