yes, i've actually already seen that documentation. the problem is
that FreeSWITCH is controlling the thread, and my Lua script that
leverages LuaSQL is being called by FreeSWITCH -- it obviously can't
call pthread_exit() :)
i did try recompiling LuaSQL itself and adding mysql_thread_end() in
the appropriate spot, but i was still getting the same "out of memory"
error from LuaSQL, so that didn't seem to fix the issue.
at this point, it seems that i should really be using the unthreaded
libmysqlclient -- the problem is the darn memory leak bug in that
library: http://bugs.mysql.com/bug.php?id=45002
i'm even willing to finance somebody to provide a patch for
libmysqlclient to fix the memory leaks, and i'll contribute it back to
MySQL -- any takers? :)
On Sep 29, 2009, at 7:47 PM, Fabio Mascarenhas wrote:
Hi Chad,
If you are using pthreads and the thread libmysqlclient then you need
to call mysql_thread_end before you do pthread_exit, MySQL only does
it for you on Win32... LuaSQL cannot call it because it has no idea
what is the lifetime of your threads.
See here: http://dev.mysql.com/doc/refman/5.0/en/mysql-thread-end.html
_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/