shadow-plugin-tor icon indicating copy to clipboard operation
shadow-plugin-tor copied to clipboard

Loading multiple versions of Tor confuses preloading

Open robgjansen opened this issue 8 years ago • 0 comments

We store one single global function table for ALL Tor versions, but really we want a new function table for each individual Tor version.

The problem is inside of shadowtorpreload_init. This function gets called once for every different Tor version, but every time that happens it wipes out the old function table and the old library handle that is stored in per thread state. This problem will affect any thread that is configured to run nodes with different Tor versions.

Thanks for finding this @swojo!

robgjansen avatar Feb 26 '16 23:02 robgjansen