Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#555094: tsocks: does not work for 32bit programs running on amd64 arch

5 views
Skip to first unread message

Patrick Cernko

unread,
Nov 8, 2009, 8:30:02 AM11/8/09
to
Package: tsocks
Version: 1.8beta5-9.1
Severity: important

tsocks only intercepts network connections for 64bit programs on amd64
architecture. When running a 32bit program (in my case the citrix
terminal server connector, which is not available as a 64bit binary)
it fails as LD_PRELOAD only contains a 64bit library which is ignored
by the 32bit linker.

A possible workaround might be to provide both the 64bit and 32bit
version of the library. However I did not manage to do that. Instead I
now use a tsocks32 script to only set the 32bit library in LD_PRELOAD.

-- System Information:
Debian Release: 5.0.3
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30.6.1.amd64-smp (SMP w/2 CPU cores)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages tsocks depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libc6-i386 2.7-18 GNU C Library: 32bit shared librar

tsocks recommends no packages.

tsocks suggests no packages.

-- debconf-show failed

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Anders Kaseorg

unread,
Dec 27, 2009, 3:00:02 PM12/27/09
to
On Sun, 8 Nov 2009, Patrick Cernko wrote:
> A possible workaround might be to provide both the 64bit and 32bit
> version of the library. However I did not manage to do that. Instead I
> now use a tsocks32 script to only set the 32bit library in LD_PRELOAD.

If you have tsocks set LD_PRELOAD=libtsocks.so instead of
LD_PRELOAD=/usr/lib/libtsocks.so, then the dynamic linker will look in the
appropriate path for both architectures (/usr/lib or /usr/lib32). Then
it’s just a matter of providing both libraries.

Anders

0 new messages