Skip to content

Unexpected birdcage error #1427

Description

@kylewillmon

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...

Activity

  1. kylewillmon commented on May 24, 2024

    @kylewillmon
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageNeeds to be reviewed or assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions