Comment 8 for bug 1574270

Revision history for this message
Mario Limonciello (superm1) wrote : Re: [Bug 1574270] Re: applications segfault systematically with tsocks

Great news thanks! Would you mind submitting upstream as well?

On Mon, May 2, 2016, 15:05 Yann E. MORIN <email address hidden> wrote:

> 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 subscribed to the bug
> report.
> 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
>