os/exec
#69709 opened 1 month ago by lime2008
#69585 opened 1 month ago by HirazawaUi
resource leak on exec failure [1.23 backport]CherryPickApproved
#69402 opened 2 months ago by gopherbot
#69284 opened 2 months ago by rustyx
#68863 opened 3 months ago by panjf2000
modifications to Path ignored when *Cmd is created using Command with an absolute path on Windows [1.22 backport]CherryPickApprovedOS-Windows
#68331 opened 4 months ago by gopherbot
modifications to Path ignored when *Cmd is created using Command with an absolute path on WindowsCriticalNeedsFixOS-Windowsrelease-blocker
#68314 opened 4 months ago by dmitshur
#68308 opened 4 months ago by flynx
#68000 opened 5 months ago by adonovan
#67687 opened 5 months ago by KyriakosMilad
#67649 opened 5 months ago by haraldrudell
execution of internal command at Windows gives errorNeedsInvestigation
#67358 opened 6 months ago by tredoe
calling Cmd.Start after setting Cmd.Path manually to absolute path without ".exe" no longer implicitly adds ".exe" in Go 1.22 [1.22 backport]CherryPickApproved
#66598 opened 7 months ago by gopherbot
calling Cmd.Start after setting Cmd.Path manually to absolute path without ".exe" no longer implicitly adds ".exe" in Go 1.22NeedsFixOS-Windowsrelease-blocker
#66586 opened 7 months ago by dmitshur
#63198 opened 1 year ago by zplzpl
#62596 opened 1 year ago by bcmills
TestCommand fails on Windows when `NoDefaultCurrentDirectoryInExePath` is set in the environmentFrozenDueToAgeNeedsInvestigationOS-WindowsTesting
#62594 opened 1 year ago by bcmills
#62429 opened 1 year ago by coder-with-a-bushido
If GOOS=windows, executing executable files in the current directory fails [1.21 backport]CherryPickCandidateFrozenDueToAge
#61957 opened 1 year ago by gopherbot
#61493 opened 1 year ago by LawyZheng
#61277 opened 1 year ago by gopherbot
syscall.forkExec hang when spawning multiple processes concurrently on `darwin`NeedsFixOS-Darwinrelease-blocker
#61080 opened 1 year ago by JacobOaks
LookPath uses a hard coded "/", assuming this is broken on WindowsFrozenDueToAgeNeedsInvestigationOS-WindowsWaitingForInfo
#60680 opened 1 year ago by martinrode
Current requirement for all reads to be completed before calling cmd.Wait can block indefinitelyFrozenDueToAgeNeedsInvestigationWaitingForInfo
#60309 opened 2 years ago by mitar
#59753 opened 2 years ago by oakad
#59087 opened 2 years ago by zhsj
#59055 opened 2 years ago by ghost
removes trailing slash in args required for rsync --exclude FrozenDueToAge
#57787 opened 2 years ago by NuLL3rr0r
revert macOS __fork fix before point release [1.19 backport]CherryPickApprovedFrozenDueToAgerelease-blocker
#57690 opened 2 years ago by gopherbot
revert macOS __fork fix before point release [1.18 backport]CherryPickApprovedFrozenDueToAgerelease-blocker
#57689 opened 2 years ago by gopherbot
revert macOS __fork fix before point releaseFrozenDueToAge
#57688 opened 2 years ago by rsc
TestWaitInterrupt failures with `leaked without a call to Wait`FrozenDueToAgeNeedsFixTestingrelease-blocker
#57596 opened 2 years ago by gopherbot
subprocesses on `ios` failing frequently with SIGTERM since CL 459176FrozenDueToAgeNeedsInvestigationOS-Darwinmobilerelease-blocker
#57577 opened 2 years ago by bcmills
#57362 opened 2 years ago by gopherbot
#57180 opened 2 years ago by millerresearch
#57129 opened 2 years ago by lfyuomr-gylo
#56837 opened 2 years ago by gopherbot
#56836 opened 2 years ago by gopherbot
#56811 opened 2 years ago by gopherbot
#56784 opened 2 years ago by rsc
#56585 opened 2 years ago by gopherbot
Plan 9 build has been broken by a Windows security fix (also breaks 1.19.3 and 1.18.8) [1.19 backport]CherryPickApprovedFrozenDueToAge
#56551 opened 2 years ago by gopherbot
Plan 9 build has been broken by a Windows security fix (also breaks 1.19.3 and 1.18.8) [1.18 backport]CherryPickApprovedFrozenDueToAge
#56550 opened 2 years ago by gopherbot
Plan 9 build has been broken by a Windows security fix (also breaks 1.19.3 and 1.18.8)FrozenDueToAgeNeedsFixOS-Plan9Soon
#56544 opened 2 years ago by millerresearch
#56301 opened 2 years ago by mknyszek
#56284 opened 2 years ago by neild
#56187 opened 2 years ago by sxllwx
Cmd.ProcessState field not always populated after (*Cmd.Run) returnsDocumentationFrozenDueToAgeNeedsFix
#56002 opened 2 years ago by seh
TestFindExecutableVsNoexec failing on linux-ppc64-sid-buildlet since go.dev/cl/414824FrozenDueToAgeNeedsInvestigationSoon
#54939 opened 2 years ago by mknyszek
#54621 opened 2 years ago by ecnepsnai
cmd.Env doesn't use provided PATHFrozenDueToAge
#53996 opened 2 years ago by anuraaga
#53962 opened 2 years ago by Mark-Jung
on Windows, LookPath sometimes improperly returns ErrDotFrozenDueToAgeNeedsInvestigationOS-Windowsrelease-blocker
#53536 opened 2 years ago by dkess
using lsof costs 100% CPU and blockedFrozenDueToAge
#53385 opened 2 years ago by shentupenghui
Cmd.{Run,Start} should fail if Cmd.Path is unset [1.18 backport]CherryPickApprovedFrozenDueToAgeSecurity
#53057 opened 2 years ago by gopherbot
Cmd.{Run,Start} should fail if Cmd.Path is unset [1.17 backport]CherryPickApprovedFrozenDueToAgeSecurity
#53056 opened 2 years ago by gopherbot
#52927 opened 2 years ago by bcmills
TestClosePipeOnCopyError failure with `got stuck writing to bad writer` on `solaris-amd64-oraclerel`FrozenDueToAgeNeedsFixTesting
#52818 opened 2 years ago by bcmills
#52801 opened 2 years ago by bcmills
#52666 opened 2 years ago by bcmills
#52580 opened 2 years ago by bcmills
#52574 opened 2 years ago by rolandshoemaker
The TestImplicitPWD test fails when running under a soft link folder.FrozenDueToAgeNeedsFixTestingokay-after-beta1release-blocker
#52537 opened 2 years ago by zhangfannie
#52086 opened 2 years ago by dprotaso
.Run() should not return as error on non-zero status on *NIX-like platformsFrozenDueToAgeWaitingForInfo
#51123 opened 2 years ago by johnnybubonic
#51120 opened 2 years ago by johnnybubonic
#50820 opened 2 years ago by raminfp
improved API and default behavior for the PWD env variableFrozenDueToAgeProposalProposal-AcceptedProposal-FinalCommentPeriod
#50599 opened 2 years ago by bcmills
add fields for managing termination signals and pipesFrozenDueToAgeProposalProposal-AcceptedProposal-FinalCommentPeriod
#50436 opened 2 years ago by bcmills
failures with "netpollBreak write failed" on linux-amd64 since 2021-11-10FrozenDueToAgeNeedsFixTestingrelease-blocker
#49533 opened 3 years ago by bcmills
TestExtraFiles failures with 'leaked parent file' on freebsd-amd64-race starting 2021-11-05FrozenDueToAgeNeedsInvestigationOS-FreeBSDWaitingForInfookay-after-beta1release-blocker
#49500 opened 3 years ago by bcmills
#49349 opened 3 years ago by wingerse
#47061 opened 3 years ago by Ace-Tang
#46699 opened 3 years ago by MagicalTux
#46388 opened 3 years ago by sb10
when NoInheritHandles is set with a handle on Stdout or Stderr, executed command failsFrozenDueToAgeNeedsInvestigationOS-Windows
#45538 opened 3 years ago by zhaoya881010
pause & resume the process executing command on WindowsFrozenDueToAge
#44564 opened 3 years ago by Purple-CSGO
#44379 opened 3 years ago by rsc
#44270 opened 3 years ago by finn-ball
on Windows use NeedCurrentDirectoryForExePathW for LookPath behaviorFrozenDueToAgeNeedsFixProposalProposal-AcceptedProposal-FinalCommentPeriod
#43947 opened 3 years ago by dolmen
return error when PATH lookup would use current directoryFrozenDueToAgeNeedsFixProposalProposal-AcceptedProposal-FinalCommentPeriodearly-in-cyclerelease-blocker
#43724 opened 3 years ago by rsc
#43524 opened 3 years ago by fhs
#42950 opened 4 years ago by rsc
calling Command on file with UWP reparse point fails with "file does not exist"FrozenDueToAgeNeedsInvestigationOS-Windows
#42919 opened 4 years ago by viveklak
#42773 opened 4 years ago by rgl
#42463 opened 4 years ago by bcmills
#42431 opened 4 years ago by jclulow
#42420 opened 4 years ago by dawidgolunski
#42264 opened 4 years ago by kfsone
TestContextCancel is flaky on netbsd-arm64-bsiegert builderExpertNeededFrozenDueToAgeNeedsInvestigationOS-NetBSD
#42061 opened 4 years ago by bcmills
#41271 opened 4 years ago by martinrode
#40860 opened 4 years ago by janisz
PATH in windows ErrNotFound is not escapedFrozenDueToAge
#38994 opened 4 years ago by xhit
#38736 opened 4 years ago by dholmesdell
environForSysProcAttr is never called as sysattr.Env is never nil [1.14 backport]CherryPickApprovedFrozenDueToAge
#37471 opened 4 years ago by toothrot
environForSysProcAttr is never called as sysattr.Env is never nil [1.13 backport]CherryPickApprovedFrozenDueToAge
#37433 opened 4 years ago by gopherbot
#37432 opened 4 years ago by gopherbot
#37217 opened 4 years ago by miquella
#35794 opened 5 years ago by sinloss
#35753 opened 5 years ago by fhs
#35653 opened 5 years ago by mappu
test fails with "runtime: netpoll: break fd ready for -2" on OpenBSD 6.2 buildersFrozenDueToAgeNeedsInvestigationOS-OpenBSDSoonTesting
#35566 opened 5 years ago by bcmills
#35469 opened 5 years ago by bcmills
#35314 opened 5 years ago by KatelynHaworth
older OpenBSD builders failing with EBADF as of CL 171823FrozenDueToAgeNeedsInvestigationSoonTesting
#35045 opened 5 years ago by bcmills
#34318 opened 5 years ago by zrma
cmd.CombinedOutput seems stuck on an io.Copy under s390xFrozenDueToAgeNeedsInvestigationWaitingForInfo
#33704 opened 5 years ago by q2683252
#33663 opened 5 years ago by drwpeng
pass more than 1 ldflagsFrozenDueToAge
#33581 opened 5 years ago by pjebs
#31936 opened 5 years ago by 4a6f656c
#31774 opened 5 years ago by caspervonb
#30638 opened 5 years ago by josharian
#30594 opened 5 years ago by yinjun622
os.Environ() is not appropriate default for passing to syscall.StartProcess if attr.Sys.Token != 0 on WindowsFeatureRequestFrozenDueToAgeNeedsInvestigationOS-Windows
#29534 opened 5 years ago by petemoore
`Output` and `CombinedOutput` methods should initialize the standard input with os.StdinFeatureRequestFrozenDueToAgeNeedsDecision
#29521 opened 5 years ago by Bo0km4n
Cmd changes absolute path to relative when using goFrozenDueToAge
#28356 opened 6 years ago by WillDrug
if exec.Cmd.Ptrace is set should the code set runtime.LockOSThread()?FrozenDueToAgeNeedsInvestigation
#28315 opened 6 years ago by rminnich
inherit process startup info for new commands on windows.FrozenDueToAgeOS-WindowsProposalWaitingForInfo
#28166 opened 6 years ago by Brett-Kavanaugh
#27934 opened 6 years ago by yxdming
O_APPEND *os.File as Cmd.Stdout results in "write error: Bad file descriptor" on WindowsFrozenDueToAgeNeedsInvestigationOS-Windows
#27638 opened 6 years ago by mvdan
#27611 opened 6 years ago by Dliv3
#27440 opened 6 years ago by andreynering
#27294 opened 6 years ago by 0intro
execution of batch-files (.cmd/.bat) is vulnerable in go-lang for windows / insufficient escapeFrozenDueToAgeNeedsInvestigationOS-Windows
#27199 opened 6 years ago by sebres
#26823 opened 6 years ago by drake7707
#26182 opened 6 years ago by FMNSSun
Wait behavior changed from Go 1.9 to Go 1.10 on WindowsFrozenDueToAgeNeedsInvestigationOS-Windowshelp wanted
#25835 opened 6 years ago by rsc
TestExtraFiles is flaky on 32-bit linux buildersFrozenDueToAgeNeedsInvestigationOS-LinuxTestinghelp wanted
#25628 opened 6 years ago by ALTree
Command("dir") not work in powershell on WindowsFrozenDueToAgeNeedsInvestigationOS-Windowshelp wanted
#25070 opened 6 years ago by dfy167
#24736 opened 6 years ago by bcmills
tests break testing package if testlog file is not file descriptor 3FrozenDueToAgeNeedsInvestigationWaitingForInfo
#24285 opened 6 years ago by siebenmann
document that you must call Wait before accessing copied outputDocumentationFrozenDueToAgeNeedsFixhelp wanted
#24220 opened 6 years ago by HouzuoGuo
#24199 opened 6 years ago by ghost
#23437 opened 6 years ago by dongweigogo
#23397 opened 6 years ago by DennisMao
consider changing Wait to stop copying goroutines rather than waiting for themFrozenDueToAgeProposalProposal-Acceptedearly-in-cycle
#23019 opened 7 years ago by ianlancetaylor
#22757 opened 7 years ago by andreynering
Stdout/Stderr not closed after data copiedFrozenDueToAge
#22610 opened 7 years ago by tomlanyon
#22485 opened 7 years ago by msoap
shell command can't be killed when output redirected with cmd.exeFrozenDueToAgeNeedsInvestigationOS-Windowshelp wanted
#22381 opened 7 years ago by math2001
#22278 opened 7 years ago by i4ki
TestStdinCloseRace flake on freebsd-amd64FrozenDueToAge
#21994 opened 7 years ago by mvdan
#21922 opened 7 years ago by nhooyr
extraneous quote escaping in argument received by spawned program, on WindowsFrozenDueToAgeOS-Windows
#21739 opened 7 years ago by thanhps42
#21707 opened 7 years ago by hirochachacha
#21675 opened 7 years ago by atn832
run "echo xxx" hung upFrozenDueToAge
#21232 opened 7 years ago by mei-rune
Combined number of symbols in file paths are causing error if it exceeds ~2^15 symbols combined.FrozenDueToAgeNeedsInvestigationOS-Windows
#21145 opened 7 years ago by SokIsKedu
allow user of CommandContext to specify the kill signal when context is doneFeatureRequestFrozenDueToAgeProposal
#21135 opened 7 years ago by dqminh
#20989 opened 7 years ago by Durgababu
#20980 opened 7 years ago by Durgababu
#20894 opened 7 years ago by bradfitz
Command() SPLAT helpFrozenDueToAge
#20893 opened 7 years ago by davidrenne
#20836 opened 7 years ago by bradfitz
#20835 opened 7 years ago by bradfitz
Inconsistent behaviour in `exec.Cmd.Wait`FrozenDueToAge
#20730 opened 7 years ago by eZanmoto
#20623 opened 7 years ago by rajender
add convenient, portable way to execute "./foo" (foo in working directory)FrozenDueToAgeNeedsDecision
#20308 opened 7 years ago by alercah
#20103 opened 7 years ago by rminnich
LookPath is hard-coded to os.Getenv("PATH")FrozenDueToAge
#20081 opened 7 years ago by mvdan
panic after execute StartFrozenDueToAge
#19918 opened 7 years ago by ayanamist
environment variable de-duplication breaks old behaviourFrozenDueToAge
#19877 opened 7 years ago by rogpeppe
possible data race when using same writer for Stdout and StderrDocumentationFrozenDueToAgehelp wanted
#19804 opened 7 years ago by nussjustin
#19775 opened 7 years ago by bradfitz
#19713 opened 7 years ago by stapelberg
data race between StdoutPipe and WaitNeedsInvestigation
#19685 opened 7 years ago by xxorde
Unshareflags no longer worksFrozenDueToAge
#19661 opened 7 years ago by rminnich
#19547 opened 7 years ago by josharian
#19452 opened 7 years ago by liwux
s390x flakeFrozenDueToAge
#19243 opened 7 years ago by bradfitz
#19211 opened 7 years ago by bradfitz
#19114 opened 7 years ago by 0intro
exec.Cmd fails to cancel with non-*os.File outputs on linuxDocumentationFrozenDueToAgeNeedsFixhelp wanted
#18874 opened 7 years ago by jbardin
TestStdinCloseRace failsFrozenDueToAge
#18286 opened 8 years ago by alexbrainman
#18148 opened 8 years ago by bcmills
#17769 opened 8 years ago by stapelberg
example test setting Command.Stdout does not terminateFrozenDueToAgeNeedsInvestigationWaitingForInfo
#17768 opened 8 years ago by stapelberg
#17647 opened 8 years ago by dvyukov
#17536 opened 8 years ago by APTy
#17245 opened 8 years ago by alexbrainman
#17041 opened 8 years ago by AnomalRoil
#17033 opened 8 years ago by bradfitz
#16222 opened 8 years ago by glasser
race between Wait and ctx.DoneFrozenDueToAge
#16028 opened 8 years ago by ianlancetaylor
delete RunContext, WaitContextFrozenDueToAge
#15775 opened 8 years ago by rsc
support additional io.Reader and io.Writer streamsFrozenDueToAge
#15460 opened 8 years ago by docbrown
Command doesn't seem to work as I expectedFrozenDueToAge
#14632 opened 8 years ago by rdeusser
#14575 opened 8 years ago by dogancelik
exec.Command docker run exit status 1FrozenDueToAge
#14097 opened 8 years ago by iexploree
#13995 opened 8 years ago by iswarezwp
#13693 opened 9 years ago by stevekuznetsov
fatal error - unlock of unlocked lock - on arm5 platformFrozenDueToAge
#13615 opened 9 years ago by g-johnson
#13164 opened 9 years ago by gabrielrussell
CombinedOutput hangs when exec'd task forks a "daemon"FrozenDueToAge
#13155 opened 9 years ago by tych0
#12868 opened 9 years ago by bradfitz
docs bugs sections points to closed issueFrozenDueToAge
#12838 opened 9 years ago by andrewchambers
using redirection symbol '<' '>' failedFrozenDueToAge
#11866 opened 9 years ago by liugangnhm
include stderr in ExitErrorFrozenDueToAge
#11381 opened 9 years ago by bradfitz
exec.Command won't execute hidden files in LinuxFrozenDueToAge
#11252 opened 9 years ago by guitmz
#11077 opened 9 years ago by robpike
#10400 opened 9 years ago by pstibrany
#10338 opened 9 years ago by sykesm
#10305 opened 9 years ago by AlexFinkel
#9580 opened 10 years ago by mei-rune
#9512 opened 10 years ago by AlexanderThaller
#9307 opened 10 years ago by CSEMike
broken pipe writing into djpeg FrozenDueToAge
#9173 opened 10 years ago by bradfitz
BAT file under path including white-space cannot run specifying blank argumentFrozenDueToAgeUnfortunate
#9084 opened 10 years ago by gopherbot
Support for User NamespacesFrozenDueToAge
#8447 opened 10 years ago by gopherbot
stop stdin copying goroutine after process exitsFrozenDueToAge
#7990 opened 10 years ago by gopherbot
#7938 opened 10 years ago by gopherbot
Doesn't properly report exit code of a "is not recognized as an internal or external command" commandFrozenDueToAge
#7850 opened 10 years ago by gopherbot
understand 387 fd leakFrozenDueToAge
#7808 opened 10 years ago by bradfitz
#7570 opened 10 years ago by alexbrainman
TestExtraFiles failsFrozenDueToAge
#7531 opened 10 years ago by gpaul
Wait waits for EOF on stdout pipeFrozenDueToAge
#7378 opened 10 years ago by gopherbot
#7377 opened 10 years ago by alexbrainman
Command does a LookPath in the wrong place.FrozenDueToAge
#7228 opened 10 years ago by gopherbot
#7118 opened 11 years ago by 0intro
#6839 opened 11 years ago by bamiaux
fix StdinPipe and maybe StdoutPipeFrozenDueToAge
#6270 opened 11 years ago by robpike
windows LookPath is brokenFrozenDueToAge
#6224 opened 11 years ago by gopherbot
#6008 opened 11 years ago by dvyukov
flaky TestExtraFilesFDShuffle is disabledFrozenDueToAge
#5780 opened 11 years ago by gopherbot
#5593 opened 11 years ago by davecheney
test hangsFrozenDueToAge
#5571 opened 11 years ago by dvyukov
TestNohup fails inside tmuxFrozenDueToAge
#5135 opened 11 years ago by petar
#5123 opened 11 years ago by dvyukov
#5079 opened 11 years ago by gopherbot
#5073 opened 11 years ago by bradfitz
exec pipes not closed when LookupPath failsFrozenDueToAge
#5071 opened 11 years ago by gopherbot
#4920 opened 11 years ago by gopherbot
Examples with missing importsFrozenDueToAge
#4561 opened 12 years ago by gopherbot
#4290 opened 12 years ago by rogpeppe
#3955 opened 12 years ago by 4a6f656c
#3903 opened 12 years ago by bradfitz
#3622 opened 12 years ago by alexbrainman
Failure in Cmd.Start() can orphan descriptorsFrozenDueToAge
#3468 opened 12 years ago by gopherbot
APIFrozenDueToAge
#2948 opened 12 years ago by rsc