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

SIGSEGV on all inputs #1059

Open
seanmorris opened this issue Jun 6, 2024 · 3 comments
Open

SIGSEGV on all inputs #1059

seanmorris opened this issue Jun 6, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@seanmorris
Copy link

seanmorris commented Jun 6, 2024

Meta:

CircleCI crashes on Debian Bookworm.

CircleCI CLI Version:

$ circleci version
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x609084]

goroutine 1 [running]:
net/url.(*URL).ResolveReference(0x0, 0xc00031f850)
        /usr/local/go/src/net/url/url.go:1082 +0x84
github.com/CircleCI-Public/circleci-cli/api/rest.NewFromConfig({0xc000164030, 0x2a}, 0xc00031fbb0)
        /home/circleci/project/api/rest/client.go:54 +0x1bf
github.com/CircleCI-Public/circleci-cli/api/collaborators.NewCollaboratorsRestClient(...)
        /home/circleci/project/api/collaborators/collaborators_rest.go:23
github.com/CircleCI-Public/circleci-cli/cmd.newOrbCommand(0xc000136360)
        /home/circleci/project/cmd/orb.go:107 +0x73
github.com/CircleCI-Public/circleci-cli/cmd.MakeCommands()
        /home/circleci/project/cmd/root.go:162 +0x5c5
github.com/CircleCI-Public/circleci-cli/cmd.CommandStr()
        /home/circleci/project/cmd/root.go:66 +0x17
github.com/CircleCI-Public/circleci-cli/cmd.Execute()
        /home/circleci/project/cmd/root.go:47 +0x29
main.main()
        /home/circleci/project/main.go:11 +0x13

Operating System:

Linux 6.1.0-21-amd64 Debian Bookworm 6.1.90-1 (2024-05-03) x86_64 GNU/Linux

CircleCI CLI Diagnostic:

$ circleci diagnostic
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x609084]

goroutine 1 [running]:
net/url.(*URL).ResolveReference(0x0, 0xc00031f850)
        /usr/local/go/src/net/url/url.go:1082 +0x84
github.com/CircleCI-Public/circleci-cli/api/rest.NewFromConfig({0xc000164030, 0x2a}, 0xc00031fbb0)
        /home/circleci/project/api/rest/client.go:54 +0x1bf
github.com/CircleCI-Public/circleci-cli/api/collaborators.NewCollaboratorsRestClient(...)
        /home/circleci/project/api/collaborators/collaborators_rest.go:23
github.com/CircleCI-Public/circleci-cli/cmd.newOrbCommand(0xc000136360)
        /home/circleci/project/cmd/orb.go:107 +0x73
github.com/CircleCI-Public/circleci-cli/cmd.MakeCommands()
        /home/circleci/project/cmd/root.go:162 +0x5c5
github.com/CircleCI-Public/circleci-cli/cmd.CommandStr()
        /home/circleci/project/cmd/root.go:66 +0x17
github.com/CircleCI-Public/circleci-cli/cmd.Execute()
        /home/circleci/project/cmd/root.go:47 +0x29
main.main()
        /home/circleci/project/main.go:11 +0x13

Current behavior:

SIGSEGV

Expected behavior:

It should run, at least enough to print its own version number, or to output a meaningful, actionable error message.

When did this begin / Was this previously working?:

Problem started immediately after running curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/main/install.sh | sudo bash

@seanmorris seanmorris added the bug Something isn't working label Jun 6, 2024
@cci-jassad
Copy link

Thanks for the report @seanmorris ! We're looking into it.

@abdelDriowya
Copy link
Contributor

I setup a Debian Bookworm machine, I was unable to reproduce using the same command you shared.
do you still have the issue
Screenshot 2024-06-25 at 14 56 27

@abdelDriowya
Copy link
Contributor

can you try running circleci command with and without --host parameter.
for example :
circleci orb info circleci/[email protected]
circleci orb info circleci/[email protected] --host https://circleci.com
it maybe the configured host in your machine that is not setup correctly

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

No branches or pull requests

3 participants