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

后台服务运行几天后莫名退出 #676

Open
ccxxbb opened this issue Jan 25, 2025 · 7 comments
Open

后台服务运行几天后莫名退出 #676

ccxxbb opened this issue Jan 25, 2025 · 7 comments

Comments

@ccxxbb
Copy link

ccxxbb commented Jan 25, 2025

hv版本: libhv-1.3.3
系统版本:CentOS Linux release 7.9.2009 (Core)

代码中使用了HttpService 和 TcpServer, https提供对外服务接口,HttpService 收到消息后,把消息转发给tcpclient,程序运行几天后莫名退出,查询 centos 系统日志如下:
general protection ip:7fd25326e00d sp:7ffcb34d6ec0 error:0 in libcrypto.so.1.0.2k[7fd25313a000+237000]

@ithewei
Copy link
Owner

ithewei commented Jan 27, 2025

libhv也有自己的日志,另外退出是崩溃了吗,可以开下coredump

@ccxxbb
Copy link
Author

ccxxbb commented Jan 31, 2025

gdb分析coredump 文件信息如下:
[New LWP 16122]
[New LWP 16121]
[New LWP 16123]
[New LWP 16120]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `./lotserver'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007fe0868ab354 in sk_pop_free () from /lib64/libcrypto.so.10
Missing separate debuginfos, use: debuginfo-install glibc-2.17-326.el7_9.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-55.el7_9.x86_64 libcom_err-1.42.9-19.el7.x86_64 libgcc-4.8.5-44.el7.x86_64 libselinux-2.5-15.el7.x86_64 libstdc++-4.8.5-44.el7.x86_64 openssl-libs-1.0.2k-26.el7_9.x86_64 pcre-8.32-17.el7.x86_64 zlib-1.2.7-21.el7_9.x86_64

@ccxxbb
Copy link
Author

ccxxbb commented Jan 31, 2025

libhv的日志如下
libhv.20250131.log

@xs-411
Copy link

xs-411 commented Feb 7, 2025

为啥显示这么多访问PHP的啊?你这个难道支持PHP脚本吗?

@ithewei
Copy link
Owner

ithewei commented Feb 7, 2025

为啥显示这么多访问PHP的啊?你这个难道支持PHP脚本吗?

可能是有人在扫描或者攻击你的服务

@dualxu
Copy link

dualxu commented Feb 11, 2025

我的应该也是碰到同样的问题了, 版本1.3.2.
我使用在银河麒麟系统上, 服务运行几天后没有响应了, 但后面又能自动启动起来,不知道从哪里下手

libhv当天log显示如下图:
01:12:35 及之前工作正常,然后服务就不正常了,客户端statuscode==0显示通讯没了
然后9:28:19服务又起来了。

Image

@dualxu
Copy link

dualxu commented Feb 13, 2025

今天ssh连上去后,服务居然又莫名奇妙地起来了。

Image

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

4 participants