CentOS7 使用 ./rssbot 方式启动报Segmentation fault错误
RekiDunois opened this issue · comments
cat /proc/version
Linux version 3.10.0-693.el7.x86_64 (builder@kbuilder.dev.centos.org)
(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 是另外一台机器上已经有的,不是新建的。
无法复现(Linux version 3.10.0-862.el7.x86_64, CentOS 7.5.1804),Segmentation fault 之前有输出吗?使用新的 datafile 以及不带参数直接运行可以吗?
以及可能无关,但你系统时间需要同步,不然 https 握手可能失败
如果有 gdb 的话请贴一下 gdb -batch -ex "r" -ex "bt" --args ./rssbot DATAFILE TOKEN
的输出,记得替换参数
[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而不是用旧的
系统时间已经同步了,确实应该和这个东西无关
重新下载吧,文件不对
重启 了两次,重下了两次之后终于可以了,太神奇了,多谢帮助。