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

xenon -c /etc/xenon/xenon.json启动报错 #164

Closed
Myshiner opened this issue Aug 4, 2022 · 2 comments
Closed

xenon -c /etc/xenon/xenon.json启动报错 #164

Myshiner opened this issue Aug 4, 2022 · 2 comments

Comments

@Myshiner
Copy link

Myshiner commented Aug 4, 2022

用/usr/local/xenon/bin/xenon -c /etc/xenon/xenon.json > /etc/xenon/log/xenon.log 2>&1 &
启动时报错:
cat /etc/xenon/log/xenon.log
xenon:[{Tag: Time:2022/08/04 04:48:36 Git: GoVersion:go1.12.4 Platform:linux amd64}]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x776ef6]

goroutine 1 [running]:
xbase/xlog.(*Log).Panic(0x0, 0x931a74, 0x1a, 0xc0000c9e28, 0x1, 0x1)
/usr/local/xenon/src/xbase/xlog/xlog.go:137 +0x26
main.main()
/usr/local/xenon/src/xenon/xenon.go:54 +0x3de

xenon版本是1.1.4,go版本是1.12.4(换成go1.18.1问题依旧)

@Myshiner
Copy link
Author

Myshiner commented Aug 4, 2022

找到原因了,是因为加了注释的原因

@KID-G
Copy link

KID-G commented Aug 9, 2022

找到原因了,是因为加了注释的原因

好的。

@KID-G KID-G closed this as completed Aug 9, 2022
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