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

Unexpected birdcage error #1427

Open
kylewillmon opened this issue May 24, 2024 · 1 comment
Open

Unexpected birdcage error #1427

kylewillmon opened this issue May 24, 2024 · 1 comment
Labels
bug Something isn't working needs triage Needs to be reviewed or assigned

Comments

@kylewillmon
Copy link
Contributor

The following error was obvserved in the phylum-ci docker image...

root@6f5596df19f4:/phylum# phylum parse -t msbuild Foo.csproj
thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/birdcage-0.7.1/src/linux/mod.rs:49:9:
`Sandbox::spawn` must be called from a single-threaded process
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

:exclamation: Error: Could not parse dependency file "Foo.csproj" as "msbuild" type

Caused by:
    Dependency file parsing failed

This is a surprise for two reason:

  1. This is a lockfile. No generation is required, so sandboxing is not expected. (See the phylum docs)
  2. I thought CLI was a single-threaded process...
@kylewillmon kylewillmon added bug Something isn't working needs triage Needs to be reviewed or assigned labels May 24, 2024
@kylewillmon
Copy link
Contributor Author

It looks like CLI has been sandboxing all lockfile parsing since 376bc72. We should update the docs to reflect that change.

As for the error, my suspicion is that we are getting this error because birdcage is unable to get an accurate thread count in this environment. We may need an update to birdcage to improve the error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Needs to be reviewed or assigned
Projects
None yet
Development

No branches or pull requests

1 participant