[tor-bugs] #33552 [Core Tor/Torsocks]: Unsupported syscall number 229 on Debian on torsocks 2.3.0
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Mar 8 13:07:49 UTC 2020
#33552: Unsupported syscall number 229 on Debian on torsocks 2.3.0
----------------------------+-----------------------------------
Reporter: secureyourself | Owner: (none)
Type: defect | Status: new
Priority: Very Low | Component: Core Tor/Torsocks
Version: 0.4.2.6 | Severity: Normal
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
----------------------------+-----------------------------------
arch is x64.
Versions:
Tor 0.4.2.6 running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1d,
Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.3.8.
I'm testing Interactive Brokers' TWS software on Tails OS (just for fun, I
see it's not a use case, however, I hope this can help), but I've met a
problem launching it:
1583671114 WARNING torsocks[25196]: [syscall] Unsupported syscall number
229. Denying the call (in tsocks_syscall() at syscall.c:605)
1583671115 ERROR torsocks[25196]: Unable to resolve. Status reply: 4 (in
socks5_recv_resolve_reply() at socks5.c:677)
The application show an error message: Update Failed. Check log file for
details: /home/amnesia/Jts/.intall4j/updater.log (see below).
----
Steps to reproduce:
1. Launch Tails 4.3.
2. Download tws-latest-linux-x64.sh or tws-stable-linux-x64.sh from
[https://www.interactivebrokers.com/en/index.php?f=14099#tws-software the
official website].
3. Run the installer: for example,
{{{
./tws-stable-linux-x64.sh
}}}
4. After the installation, launch the application: from the installer or
from Terminal:
{{{
torify "/home/amnesia/Jts/tws" -J-DjtsConfigDir="/home/amnesia/Jts" %U
}}}
or
{{{
. torsocks on
"/home/amnesia/Jts/tws" -J-DjtsConfigDir="/home/amnesia/Jts" %U
}}}
5. You get:
{{{
1583672301 WARNING torsocks[26808]: [syscall] Unsupported syscall number
229. Denying the call (in tsocks_syscall() at syscall.c:605)
1583672301 ERROR torsocks[26808]: Unable to resolve. Status reply: 4 (in
socks5_recv_resolve_reply() at socks5.c:677)
1583672301 ERROR torsocks[26808]: Unable to resolve. Status reply: 4 (in
socks5_recv_resolve_reply() at socks5.c:677)
1583672302 ERROR torsocks[26808]: Unable to resolve. Status reply: 4 (in
socks5_recv_resolve_reply() at socks5.c:677)
1583672379 PERROR torsocks[26808]: socks5 libc connect: Invalid argument
(in socks5_connect() at socks5.c:202)
}}}
----
See the log (Jts/.intall4j/updater.log):
{{{
[INFO] com.install4j.runtime.beans.actions.control.SetVariableAction [ID
4839]: Execute action
Property script: com.install4j.script.I4jScript_Internal_62
Property variableName: updateDescriptorUrl
Property failIfNull: true
Property onlyIfUndefined: false
Property responseFileVariable: false
Property rollbackSupported: false
Variable changed:
updateDescriptorUrl=https://download2.interactivebrokers.com/installers/tws/stable
/tws-stable-linux-x64.xml[class java.lang.String]
Execute action successful after 3 ms
[INFO] com.install4j.runtime.beans.actions.update.CheckForUpdateAction [ID
479]: Execute action
Property connectTimeout: 10000
Property connectionFailureScript: null
Property readTimeout: 20000
Property requestHeaders: []
Property url:
https://download2.interactivebrokers.com/installers/tws/stable/tws-stable-
linux-x64.xml
Property variable: updateDescriptor
Property acceptAllCertificates: false
Property askForProxy: true
Property rollbackSupported: false
Property showError: true
[ERROR] com.install4j.runtime.beans.actions.update.CheckForUpdateAction
[ID 479]: could not download file
java.net.ConnectException: Invalid argument (connect failed)
java.net.ConnectException: Invalid argument (connect failed)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at
sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
at
sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
at
sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1040)
at
sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1038)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1037)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:162)
at
com.install4j.runtime.installer.helper.content.HttpRequestHandler.getURLConnection(HttpRequestHandler.java:288)
at
com.install4j.runtime.installer.helper.content.HttpRequestHandler.connect(HttpRequestHandler.java:135)
at
com.install4j.runtime.installer.helper.content.Downloader.connect(Downloader.java:155)
at
com.install4j.runtime.installer.helper.content.Downloader.connect(Downloader.java:24)
at
com.install4j.runtime.installer.helper.content.HttpRequestHandler.connect(HttpRequestHandler.java:128)
at
com.install4j.runtime.installer.helper.content.Downloader.connect(Downloader.java:150)
at
com.install4j.runtime.beans.actions.update.CheckForUpdateAction.execute(CheckForUpdateAction.java:35)
at
com.install4j.runtime.beans.actions.SystemInstallOrUninstallAction.install(SystemInstallOrUninstallAction.java:29)
at
com.install4j.runtime.installer.ContextImpl$9.executeAction(ContextImpl.java:1727)
at
com.install4j.runtime.installer.ContextImpl$9.fetchValue(ContextImpl.java:1718)
at
com.install4j.runtime.installer.ContextImpl$9.fetchValue(ContextImpl.java:1715)
at
com.install4j.runtime.installer.helper.comm.actions.FetchObjectAction.execute(FetchObjectAction.java:14)
at
com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(HelperCommunication.java:271)
at
com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(HelperCommunication.java:246)
at
com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionChecked(HelperCommunication.java:184)
at
com.install4j.runtime.installer.helper.comm.HelperCommunication.fetchObjectChecked(HelperCommunication.java:167)
at
com.install4j.runtime.installer.ContextImpl.performActionIntStatic(ContextImpl.java:1715)
at
com.install4j.runtime.installer.InstallerContextImpl.performActionInt(InstallerContextImpl.java:159)
at
com.install4j.runtime.installer.ContextImpl.performAction(ContextImpl.java:1143)
at
com.install4j.runtime.installer.controller.Controller.executeAction(Controller.java:398)
at
com.install4j.runtime.installer.controller.Controller.executeActions(Controller.java:364)
at
com.install4j.runtime.installer.controller.Controller.handleCommand(Controller.java:221)
at
com.install4j.runtime.installer.controller.Controller.handleStartup(Controller.java:142)
at
com.install4j.runtime.installer.controller.Controller.start(Controller.java:98)
at
com.install4j.runtime.installer.Application.runApplication(Application.java:91)
at
com.install4j.runtime.installer.Application.main(Application.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:85)
at
com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66)
at install4j.App3118837495Id443.main(Unknown Source)
Execute action not successful after 10500 ms
[INFO] Canceled
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33552>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list