Thanks for the feedback. About the seg. fault, could you have a quick look with strace, to try to see where the crash occurs?