Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spurious "Command exited with code 259" on AppVeyor #58160

Closed
pietroalbini opened this issue Feb 4, 2019 · 7 comments
Closed

Spurious "Command exited with code 259" on AppVeyor #58160

pietroalbini opened this issue Feb 4, 2019 · 7 comments
Labels
A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) C-bug Category: This is a bug. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Comments

@pietroalbini
Copy link
Member

Some builds on AppVeyor are "failing" with an exit code of 259. That exit code is not a failure though, but it's the way Windows marks processes that didn't fully finish yet.

We contacted AppVeyor support about this.

cc @rust-lang/infra

@pietroalbini pietroalbini added A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. C-bug Category: This is a bug. labels Feb 4, 2019
@pietroalbini
Copy link
Member Author

We catched a spurious failure after we merged some debug code in #57975, and the output is (full log):

Build completed successfully in 2:59:39
script exited with 0
Command exited with code 259

I'll add a bit of extra debugging code, even though I'm pretty sure this is not our fault.

bors added a commit that referenced this issue Feb 4, 2019
Add more debugging code to track down appveyor 259 exit code

cc #58160
r? @alexcrichton
@pietroalbini
Copy link
Member Author

Task list when it spuriously fails:
exit code in src/ci/run.sh: 0
tasklist:
Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
System Idle Process              0 Services                   0          4 K
System                           4 Services                   0        264 K
smss.exe                       344 Services                   0      1,044 K
csrss.exe                      452 Services                   0      3,764 K
wininit.exe                    504 Services                   0      3,916 K
csrss.exe                      512 Console                    1      9,364 K
winlogon.exe                   540 Console                    1      6,460 K
services.exe                   596 Services                   0      5,716 K
lsass.exe                      604 Services                   0     10,864 K
svchost.exe                    672 Services                   0      9,728 K
svchost.exe                    712 Services                   0      6,276 K
dwm.exe                        788 Console                    1     25,064 K
svchost.exe                    800 Services                   0     13,736 K
svchost.exe                    828 Services                   0     28,932 K
svchost.exe                    888 Services                   0     10,296 K
svchost.exe                    960 Services                   0     17,620 K
svchost.exe                    500 Services                   0     12,832 K
svchost.exe                    724 Services                   0      7,992 K
svchost.exe                   1040 Services                   0      9,992 K
svchost.exe                   1228 Services                   0     15,668 K
svchost.exe                   1436 Services                   0      9,284 K
svchost.exe                   1612 Services                   0      7,892 K
VSSVC.exe                     1824 Services                   0      6,120 K
explorer.exe                  2400 Console                    1     69,540 K
svchost.exe                   2552 Services                   0      3,984 K
dllhost.exe                   2688 Console                    1      5,016 K
Appveyor.BuildAgent.Inter     1968 Console                    1     92,236 K
msdtc.exe                     3272 Services                   0      7,172 K
cmd.exe                       5080 Console                    1      2,588 K
conhost.exe                    732 Console                    1      5,280 K
sh.exe                        3868 Console                    1      6,860 K
sccache.exe                   5108 Console                    1     23,980 K
msiexec.exe                   4324 Services                   0      6,144 K
sh.exe                        3560 Console                    1      4,572 K
tasklist.exe                  2208 Console                    1      5,912 K
WmiPrvSE.exe                  4512 Services                   0      6,396 K
location of sh: C:\msys64\usr\bin\sh.exe
C:\Program Files\Git\usr\bin\sh.exe

Full log

@Disasm
Copy link
Contributor

Disasm commented Feb 14, 2019

@TimDiekmann
Copy link
Member

#58750 failed two times in a row because of this. Both failures on jobs with builds > 3hours.

alexcrichton added a commit to alexcrichton/rust that referenced this issue Mar 5, 2019
We're currently praying that sccache dying after 3 hrs somehow causes
the "exited with 259" errors on appveyor, but this is a complete shot in
the dark. In any case it should be harmless to keep sccache alive!

cc rust-lang#58160
@pietroalbini
Copy link
Member Author

AppVeyor said they fixed the underlying cause of this failure 🎉

@Centril Centril reopened this Mar 29, 2019
@Centril
Copy link
Contributor

Centril commented Mar 29, 2019

Happened again in #59522 (comment).

@pietroalbini
Copy link
Member Author

That was a spurious spurious failure, AppVeyor said it shouldn't happen again. We also added some debug code to better investigate it if it happens again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-spurious Area: Spurious failures in builds (spuriously == for no apparent reason) C-bug Category: This is a bug. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants