René's URL Explorer Experiment


Title: Process.Parent property is null on Linux if the process name contains a space · Issue #12908 · PowerShell/PowerShell · GitHub

Open Graph Title: Process.Parent property is null on Linux if the process name contains a space · Issue #12908 · PowerShell/PowerShell

X Title: Process.Parent property is null on Linux if the process name contains a space · Issue #12908 · PowerShell/PowerShell

Description: Discovered in #12894 PowerShell/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs Lines 972 to 985 in 5ef69e8 // read /proc//stat // 4th column will contain the ppid, 92 in the example below // ex: 93 (bash) S 92 93 2 42949...

Open Graph Description: Discovered in #12894 PowerShell/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs Lines 972 to 985 in 5ef69e8 // read /proc//stat // 4th column will contain the ppid, 92 in the exampl...

X Description: Discovered in #12894 PowerShell/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs Lines 972 to 985 in 5ef69e8 // read /proc/<pid>/stat // 4th column will contain the ppid, 92 in the ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Process.Parent property is null on Linux if the process name contains a space","articleBody":"Discovered in #12894\r\n\r\nhttps://github.com/PowerShell/PowerShell/blob/5ef69e88bc2a6e500349a8eec8d13bb27e143e3e/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs#L972-L985\r\nIf a process name contains a space (like  `(ConsoleHost mai)` vs `(bash)`) the split returns additional extra element and we get wrong value with `parts[3]`.\r\n\r\nThe fix could be - search `)` to skip the process name.\r\n\r\n`/proc/[pid]/stat` format for reference https://man7.org/linux/man-pages/man5/proc.5.html\r\n\r\n## Steps to reproduce\r\n\r\n```powershell\r\n(Get-Process -Name 'process name').Parent\r\n```\r\n\r\n## Expected behavior\r\n\r\n```none\r\n# Returns parent process object\r\n```\r\n\r\n## Actual behavior\r\n\r\n```none\r\n# Returns null\r\n```\r\n\r\n## Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\npwsh 7.1 Preview3\r\n```\r\n","author":{"url":"https://github.com/iSazonov","@type":"Person","name":"iSazonov"},"datePublished":"2020-06-05T13:39:14Z","url":"https://github.com/PowerShell/PowerShell/issues/12908"}

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:d3500a0f-00be-36c2-6e2d-b5f6fa8a5890
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA53A:34CE34:7CF8F1:ABCD8B:6AFDF1D0
html-safe-nonceba54e4d8ed0a2d78c24698a6220ac1cb7aa8ce8acae501e06c92f6d9da150c88
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTNBOjM0Q0UzNDo3Q0Y4RjE6QUJDRDhCOjZBRkRGMUQwIiwidmlzaXRvcl9pZCI6IjQ1OTc2MzE1MDQyNTA0MzQwMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd20047add562e2b24627f7d5910b26d0f9f40c6d862048fb736b5e7e638709db
hovercard-subject-tagissue:631596736
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/12908/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5ec030c60e12fc4f5375ca1ff8639f4b5d78918fc566da3ef7e35d994b94ca04/PowerShell/PowerShell/issues/12908
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5ec030c60e12fc4f5375ca1ff8639f4b5d78918fc566da3ef7e35d994b94ca04/PowerShell/PowerShell/issues/12908
og:image:altDiscovered in #12894 PowerShell/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs Lines 972 to 985 in 5ef69e8 // read /proc//stat // 4th column will contain the ppid, 92 in the exampl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameiSazonov
hostnamegithub.com
expected-hostnamegithub.com
Nonedd812ec581ecac95855f5ec917ef9827506c39a9da1443f43ddb4179a46471eb
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
release32ac708bac264dafdc28e10ff49b4d137f0c34a7
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/12908#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F12908
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%2F12908
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/12908
Reloadhttps://github.com/PowerShell/PowerShell/issues/12908
Reloadhttps://github.com/PowerShell/PowerShell/issues/12908
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/12908
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/12908
#17545https://github.com/PowerShell/PowerShell/pull/17545
Process.Parent property is null on Linux if the process name contains a spacehttps://github.com/PowerShell/PowerShell/issues/12908#top
#17545https://github.com/PowerShell/PowerShell/pull/17545
First-Time-IssueEasy issues first time contributors can work on to learn about this projecthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22First-Time-Issue%22
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
OS-Linuxhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22OS-Linux%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorshttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Up-for-Grabs%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
https://github.com/iSazonov
Ilya (iSazonov)https://github.com/iSazonov
on Jun 5, 2020https://github.com/PowerShell/PowerShell/issues/12908#issue-631596736
#12894https://github.com/PowerShell/PowerShell/pull/12894
PowerShell/src/System.Management.Automation/CoreCLR/CorePsPlatform.cshttps://github.com/PowerShell/PowerShell/blob/5ef69e88bc2a6e500349a8eec8d13bb27e143e3e/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs#L972-L985
5ef69e8https://github.com/PowerShell/PowerShell/commit/5ef69e88bc2a6e500349a8eec8d13bb27e143e3e
https://man7.org/linux/man-pages/man5/proc.5.htmlhttps://man7.org/linux/man-pages/man5/proc.5.html
Ilya (iSazonov)https://github.com/iSazonov
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorshttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Up-for-Grabs%22
First-Time-IssueEasy issues first time contributors can work on to learn about this projecthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22First-Time-Issue%22
OS-Linuxhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22OS-Linux%22
on Jun 5, 2020https://github.com/PowerShell/PowerShell/issues/12908#event-3411353751
https://github.com/rajdeep-biswas
Rajdeep Biswas (rajdeep-biswas)https://github.com/rajdeep-biswas
on Jun 8, 2020https://github.com/PowerShell/PowerShell/issues/12908#issuecomment-640519139
https://github.com/NoMoreFood
Bryan Berns (NoMoreFood)https://github.com/NoMoreFood
on Jun 9, 2020https://github.com/PowerShell/PowerShell/issues/12908#issuecomment-641025058
https://github.com/rajdeep-biswas
Rajdeep Biswas (rajdeep-biswas)https://github.com/rajdeep-biswas
on Jun 9, 2020https://github.com/PowerShell/PowerShell/issues/12908#issuecomment-641111518
Bryan Berns (@NoMoreFood)https://github.com/NoMoreFood
https://github.com/NoMoreFood
Bryan Berns (NoMoreFood)https://github.com/NoMoreFood
on Jun 9, 2020https://github.com/PowerShell/PowerShell/issues/12908#issuecomment-641140600
https://github.com/rajdeep-biswas
Rajdeep Biswas (rajdeep-biswas)https://github.com/rajdeep-biswas
on Jun 9, 2020https://github.com/PowerShell/PowerShell/issues/12908#issuecomment-641215362
#12925https://github.com/PowerShell/PowerShell/pull/12925
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/12908#event-6842339913
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#17545https://github.com/PowerShell/PowerShell/pull/17545
on Sep 29, 2022https://github.com/PowerShell/PowerShell/issues/12908#event-7483126254
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/12908#event-7483126491
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/12908#event-7483126538
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/12908
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/12908
First-Time-IssueEasy issues first time contributors can work on to learn about this projecthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22First-Time-Issue%22
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
OS-Linuxhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22OS-Linux%22
Resolution-FixedThe issue is fixed.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-Fixed%22
Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorshttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Up-for-Grabs%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%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.