This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KTorrent crashing when socks proxy is enabled in kcontrol

Tags: None
(comma "," separated)
cs96and
Registered Member
Posts
3
Karma
0
Hello, first of all, thanks for the great program.

I have dante socks client set up on my box, and it is enabled for a specific IP address range (an internal work network). KTorrent works fine unless I enable socks support in KDE Control Center, then KTorrent will only run for about 10 seconds before crashing. This is a bit of a pain as I like the way kcontrol will automatically socksify all my applications, but I have to disable that feature whenever I want to use KTorrent.

I'm using Kubuntu 6.10, KDE 3.5.6 and KTorrent 2.0.3
cs96and
Registered Member
Posts
3
Karma
0

Sat Feb 24, 2007 5:37 pm
Here's some more info. If I run ktorrent with the --debug switch, the last thing printed is usually...

Sending ping request to <ipaddress>:<port>
KCrash: Application 'ktorrent' crashing...


However, I have also seen...

DHT: Doing announce
KCrash: Application 'ktorrent' crashing...
George
Moderator
Posts
5421
Karma
1

Sat Feb 24, 2007 7:26 pm
I'll try reproducing this, but first I need to find a socks proxy to use.
cs96and
Registered Member
Posts
3
Karma
0

Sat Feb 24, 2007 8:49 pm
My socks proxy is actually localhost. This proxy is created by ssh-ing to a remote server and using the -D switch. It will probably be easier for you to do the same.
George
Moderator
Posts
5421
Karma
1

Fri Mar 02, 2007 12:42 pm
Hmm, it seems that this bug report :

https://bugs.kde.org/show_bug.cgi?id=139759

Is probably the same problem, if you look at the backtrace, it crashes somewhere in dante's socks library.
George
Moderator
Posts
5421
Karma
1

Fri Mar 02, 2007 12:52 pm
OK, it seems to be easily reproducible, just have to start a torrent with DHT enabled.
George
Moderator
Posts
5421
Karma
1

Fri Mar 02, 2007 1:14 pm
After some investigation it seems that this dante (libdsocksd) library, at the first sign of trouble, just calls the abort() function, which as it name implies just aborts the application.

This is stuff you don't do as a library, if something goes wrong the application should handle it, you don't just abort.
George
Moderator
Posts
5421
Karma
1

Fri Mar 02, 2007 2:14 pm
There is nothing we can do, dante is the problem here. You could try using a different socks library.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar