[go: nahoru, domu]

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

Segfault when getting user id ? #5

Closed
danielkucera opened this issue Sep 26, 2017 · 2 comments
Closed

Segfault when getting user id ? #5

danielkucera opened this issue Sep 26, 2017 · 2 comments

Comments

@danielkucera
Copy link
Contributor

Running in docker (openshift) in image openshift/base-centos7 I'm getting following error:

sh-4.2$ go-crond --allow-unprivileged
go-crond: Starting go-crond version 0.6.0
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x519652]

goroutine 1 [running]:
main.main()
        /Users/mblaschke/Projects/go-crond/main.go:371 +0x332  
@danielkucera
Copy link
Contributor Author

I would be ok with being able to set EnableUserSwitching via commandline:

EnableUserSwitching bool

@danielkucera
Copy link
Contributor Author

Or properly handling user.Current()

currentUser, _ := user.Current()

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

No branches or pull requests

2 participants