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

saml2aws: panic: runtime error: slice bounds out of range [117:91] #436

Open
jrp0783 opened this issue Feb 15, 2020 · 4 comments
Open

saml2aws: panic: runtime error: slice bounds out of range [117:91] #436

jrp0783 opened this issue Feb 15, 2020 · 4 comments

Comments

@jrp0783
Copy link

jrp0783 commented Feb 15, 2020

i am running saml2aws on ubuntu,, I am getting the following error.

saml2aws
panic: runtime error: slice bounds out of range [117:91]

goroutine 1 [running]:
github.com/aulanov/go%2edbus.sessionBusPlatform(0xb53b06, 0x18, 0x0)
/Users/markw/Code/go/pkg/mod/github.com/aulanov/[email protected]/conn_other.go:26 +0x1e9
github.com/aulanov/go%2edbus.SessionBusPrivate(0xc000161de8, 0x7f23d4f4e6d0, 0x0)
/Users/markw/Code/go/pkg/mod/github.com/aulanov/[email protected]/conn.go:99 +0x5d
github.com/aulanov/go%2edbus.SessionBus(0x0, 0x0, 0x0)
/Users/markw/Code/go/pkg/mod/github.com/aulanov/[email protected]/conn.go:76 +0xeb
github.com/99designs/keyring.init.1()
/Users/markw/Code/go/pkg/mod/github.com/99designs/[email protected]/kwallet.go:18 +0x26

@mattpull
Copy link

mattpull commented Mar 10, 2020

We were getting message:

$ ./saml2aws
panic: runtime error: slice bounds out of range [308:282]
goroutine 1 [running]:
github.com/aulanov/go%2edbus.sessionBusPlatform(0xb2941e, 0x18, 0x0)
/Users/markw/Code/go/pkg/mod/github.com/aulanov/[email protected]/conn_other.go:26 +0x1e9
github.com/aulanov/go%2edbus.SessionBusPrivate(0xd0, 0xabdb00, 0x760f498ce30b6501)
/Users/markw/Code/go/pkg/mod/github.com/aulanov/[email protected]/conn.go:99 +0xa7
github.com/aulanov/go%2edbus.SessionBus(0x0, 0x0, 0x0)
/Users/markw/Code/go/pkg/mod/github.com/aulanov/[email protected]/conn.go:76 +0xae
github.com/99designs/keyring.init.1()
/Users/markw/Code/go/pkg/mod/github.com/99designs/[email protected]/kwallet.go:18 +0x26

We found removing package dbus-x11 fixed this in WSL ubuntu 1804. Hope that helps debug. This was on the latest build 2.24.0

@1davidmichael
Copy link
Contributor

We were getting message:

$ ./saml2aws
panic: runtime error: slice bounds out of range [308:282]
goroutine 1 [running]:
github.com/aulanov/go%2edbus.sessionBusPlatform(0xb2941e, 0x18, 0x0)
/Users/markw/Code/go/pkg/mod/github.com/aulanov/[email protected]/conn_other.go:26 +0x1e9
github.com/aulanov/go%2edbus.SessionBusPrivate(0xd0, 0xabdb00, 0x760f498ce30b6501)
/Users/markw/Code/go/pkg/mod/github.com/aulanov/[email protected]/conn.go:99 +0xa7
github.com/aulanov/go%2edbus.SessionBus(0x0, 0x0, 0x0)
/Users/markw/Code/go/pkg/mod/github.com/aulanov/[email protected]/conn.go:76 +0xae
github.com/99designs/keyring.init.1()
/Users/markw/Code/go/pkg/mod/github.com/99designs/[email protected]/kwallet.go:18 +0x26

We found removing package dbus-x11 fixed this in WSL ubuntu 1804. Hope that helps debug. This was on the latest build 2.24.0

Thanks, this fixed it for me as well.

@douglasreis
Copy link

I'm using WSL Ubuntu 20.04 and having the same issue with the DBus. It seems DBus needs a machine id generated at /etc/mahine-id to work. Usually this value is generated at distribution installation time but the default distribution used in WSL doesn't seem doing it.
So, running the command sudo systemd-machine-id-setup generated the machine id and saml2aws is now working fine for me.

@FrancescoKa
Copy link

I Had the same problem, on WSL Ubunto 20.04 (upgrated from WSL 18.04)
Didn't work running the command sudo systemd-machine-id-setup generated
But worked after having removed dbus-x11
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants