I managed to make it work with the attached patch. This is probably not a correct patch, but it at least makes it work, and can serve as a base for a correct patch.
In the end, it happens that some libraries (like openssl) are initialised before those in LD_PRELOAD (which is really weird as ld.so does not document this behaviour). So, tsocks not being initialised, the wrapper functions were calling functions via un-initialised function pointers. ** Attachment added: "Be sure to always intialise function pointers" https://bugs.launchpad.net/ubuntu/+source/tsocks/+bug/1574270/+attachment/4653856/+files/07_init.dpatch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1574270 Title: applications segfault systematically with tsocks To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tsocks/+bug/1574270/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs