vipshop / hiredis-vip

Support redis cluster. Maintained and used at vipshop.
BSD 3-Clause "New" or "Revised" License
322 stars 173 forks source link

栈空间不足引起的segment fault #115

Open MarkRepo opened 5 years ago

MarkRepo commented 5 years ago

cluster_node *table[REDIS_CLUSTER_SLOTS]; 这种大数组buffer不建议在栈上分配,容易导致栈空间不足的问题。

thakurajayL commented 5 years ago

Can you please translate it to english ?

MarkRepo commented 5 years ago

This large array buffer is not recommended to be allocated on the stack, which easily leads to stack overflow.

ghost commented 4 years ago

This large array buffer is not recommended to be allocated on the stack, which easily leads to stack overflow.

你是32位系统吧。。。

MarkRepo commented 4 years ago

This large array buffer is not recommended to be allocated on the stack, which easily leads to stack overflow.

你是32位系统吧。。。

协程,stack有限