Comments (2)
首先,问题出现在 lua gc 的时候,看起来是 lua vm 内部的状态错了。虽然是调用 sharedata.flush 导致,但只能说明
https://github.com/cloudwu/skynet/blob/v1.5.0/lualib/skynet/sharedata.lua#L60
sharedata.flush 这个操作调用了 fullgc ( collectgarbage()
)而已。我不认为是 sharedata 本身的问题。
ps. 无论如何,都没有理由把 skynet 停留在旧版本,除非你有独自维护它的能力。且 lua 本身也在更迭,同样也没有理由停留在某个旧版本。比如 https://lua.org/bugs.html 这里可以看到,每个小版本都 fix 了大量的 bug 。
从 coredump log 看,https://github.com/cloudwu/skynet/blob/v1.5.0/3rd/lua/lstring.c#L211 这一行指: gc 在清理短字符串时,vm 里的短字符串 hash 表上的链表指针出错了。sharedata 库也没有能力写坏它。
我认为你需要排查的是所有 C 代码,找到内存越界,或其它内存错误。 至少,你可以先检查 double free 等简单的问题: https://github.com/cloudwu/skynet/wiki/MemoryHook
因为 coredump 很罕见,那么你需要重点考虑那些很少运行到的 C 代码。
from skynet.
谢谢云大的意见。
MEMORY_CHECK 已经带上了的,我更到最新版本后续再观察下。
from skynet.
Related Issues (20)
- skynet的actor问题
- 在压测过程中遇到jemalloc 内存利用率过低问题
- skynet加载自定义c模块成功,table也能打印出两个函数名称,但是调用时函数为nil HOT 7
- 关于skynet.sleep时间不准确的问题 HOT 1
- 副本集主从切换问题 HOT 2
- 多agent,服务之间发送消息延迟过高
- http发送get请求收到服务器回复之后几分钟之后才返回
- 多agent,服务之间消息延迟很高 HOT 1
- redis 链接 假如的密码不对,好像内存会一直上涨。 HOT 1
- 为什么skynet.wait里生成session没有check? HOT 1
- 宕机了,恳请云风大大帮我看看
- symbol SSL_set_connect_state version OPENSSL_1.0.0 not defined in file libssl.so.1.0.0
- 阿里云服务器Debian12 出现一个必然崩溃bug,不链接jemalloc却没问题 HOT 1
- ./skynet examples/config.c1报错闪退 HOT 12
- ./skynet examples/config.c1 报错闪退
- clusteragent中`register_name_mt.__index`重入,导致请求结果"Invalid name"。 HOT 6
- skynet.send发送到一个无效地址时,是否抛出错误或者提示更合理?
- 你好,用了一年多skynet的mongodb存储很稳定,最近需要将mongodb连到mongodb+srv,使用云存储,我不太清楚如何处理,所以想请教下
- clusterd 接受一个连接,启动clusteragent时,forward失败,导致clusteragent服务创建失败,这时fd无法正常关闭 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skynet.