dotnwat / lua-rados

RADOS bindings for Lua
http://noahdesu.github.com/lua-rados/
7 stars 7 forks source link

segfault if Rados object is garbage collected then ioctx is used #7

Closed dotnwat closed 11 years ago

dotnwat commented 11 years ago

I think this just needs to have the dependencies recorded in a weak table to prevent GC if Lua side references disappear.

dotnwat commented 11 years ago

I think the solution is to use key=cluster, weak-value=ioctx? or something like that. need to do some more investigation and possible remove some of the forceful shutdown apis like close/destroy?

dotnwat commented 11 years ago

Latest commit fixes this.