I've tried mysql part of clsql binding and got random segfaults.
After playing with gdb I've found that the reason is than function "my_alloc" exists in both libmysqlclient.so and lisp.run and mysql code called clisp's my_alloc instead of it's own.
As a temporary solution I've patched clisp's source to set visibility attribute to hidden so my_malloc and my_realloc won't appear in dynamic symbols table of executable. This perfectly solved problem for me.
Log in to post a comment.