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

runtime error: invalid memory address or nil pointer dereference #74

Open
Yeti-or opened this issue Nov 17, 2019 · 0 comments
Open

runtime error: invalid memory address or nil pointer dereference #74

Yeti-or opened this issue Nov 17, 2019 · 0 comments

Comments

@Yeti-or
Copy link

Yeti-or commented Nov 17, 2019

Installed ec on server like this to /opt/ec

sudo apt-get update 
sudo apt-get install -y libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev llvm libncurses5-dev
curl -s https://raw.githubusercontent.com/markelog/ec-install/master/scripts/install.sh | EC_DEST=/opt sh

try to run it but got error while using without sudo:

root@linux-ubuntu-14-04-trusty:~# whoami
root

root@linux-ubuntu-14-04-trusty:~# id
uid=0(root) gid=0(root) groups=0(root)

root@linux-ubuntu-14-04-trusty:~# sudo /opt/ec path
:/root/.eclectica/bin:/root/.eclectica/versions/node/current/bin:/root/.eclectica/versions/rust/current/bin:/root/.eclectica/versions/ruby/current/bin:/root/.eclectica/versions/go/current/bin:/root/.eclectica/versions/python/current/bin:/root/.eclectica/versions/elm/current/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

root@linux-ubuntu-14-04-trusty:~#  /opt/ec path
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x74d2dd]

goroutine 1 [running]:
github.com/markelog/eclectica/variables.Base(0xc000099f28, 0x74cdd9)
        /Users/markelog/Workspace/gocode/src/github.com/markelog/eclectica/variables/variables.go:81 +0x3d
github.com/markelog/eclectica/variables.init.ializers()
        /Users/markelog/Workspace/gocode/src/github.com/markelog/eclectica/variables/variables.go:16 +0x26

Maybe it's because of root user ?
https://github.com/markelog/eclectica/blob/master/variables/variables.go#L77-L81

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

1 participant