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

CentOS7 使用 ./rssbot 方式启动报Segmentation fault错误 #31

Closed
RekiDunois opened this issue Sep 21, 2018 · 6 comments
Closed

CentOS7 使用 ./rssbot 方式启动报Segmentation fault错误 #31

RekiDunois opened this issue Sep 21, 2018 · 6 comments

Comments

@RekiDunois
Copy link

cat /proc/version
Linux version 3.10.0-693.el7.x86_64 ([email protected])
(gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) )
#1 SMP Tue Aug 22 21:09:27 UTC 2017

cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)

datafile 是另外一台机器上已经有的,不是新建的。

@iovxw
Copy link
Owner

iovxw commented Sep 21, 2018

无法复现(Linux version 3.10.0-862.el7.x86_64, CentOS 7.5.1804),Segmentation fault 之前有输出吗?使用新的 datafile 以及不带参数直接运行可以吗?

以及可能无关,但你系统时间需要同步,不然 https 握手可能失败

@iovxw
Copy link
Owner

iovxw commented Sep 21, 2018

如果有 gdb 的话请贴一下 gdb -batch -ex "r" -ex "bt" --args ./rssbot DATAFILE TOKEN 的输出,记得替换参数

@RekiDunois
Copy link
Author

[root@VM_66_186_centos home]# ./rssbot datafile “TOKEN”
Segmentation fault
直接运行只有这一个输出

[root@VM_66_186_centos home]# gdb -batch -ex "r" -ex "bt" --args ./rssbot datafile "TOKEN"
"/home/./rssbot": not in executable format: File format not recognized
No executable file specified.
Use the "file" or "exec-file" command.
No stack.
这两次我都是新建datafile而不是用旧的

@RekiDunois
Copy link
Author

系统时间已经同步了,确实应该和这个东西无关

@iovxw
Copy link
Owner

iovxw commented Sep 24, 2018

重新下载吧,文件不对

@RekiDunois
Copy link
Author

重启 了两次,重下了两次之后终于可以了,太神奇了,多谢帮助。

@iovxw iovxw closed this as completed Oct 4, 2018
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