cocalele / PureFlash

A ServerSAN storage system designed for flash device
GNU General Public License v3.0
97 stars 29 forks source link

trim_proc线程出现段错误 #68

Closed ericqzhao closed 5 months ago

ericqzhao commented 5 months ago
4d6215af823c877bbbab53fb6a0d08b
ericqzhao commented 5 months ago

现象:就是trim_proc执行了1024次后,在调用store的post_event的时候出现了段错误,如上图所示;原因是:msg_cache_locked列表为空; 根因:因为trim_proc线程没有设置tls,因此使用的是store的msg_cache_locked,当store执行process_event完成后,归还到的是msg_cache,导致msg_cache_locked为空

ericqzhao commented 5 months ago
1705649334856
cocalele commented 5 months ago

good job!