Archived

This topic is now archived and is closed to further replies.

TvL

Magnet links in the webui will segfault utserver

Recommended Posts

Hi Guys,

I'm running utorrent-webui.2012010217350682.zip backed up by utorrent-server-3.0-25053.tar.gz.

When I paste a magnet link in the 'Torrent URL' box and click OK, utserver segfaults:

pollux ~ # /home/tom/utorrent/start_utorrent.sh
./utserver: /usr/lib32/libcrypto.so.0.9.8: no version information available (required by ./utserver)
./utserver: /usr/lib32/libssl.so.0.9.8: no version information available (required by ./utserver)
server started - using locale C
Using locale C
total physical memory -1 max disk cache 33554432
IPv6 is installed
/bin/bash: line 1: 21978 Segmentation fault nice -n 19 ./utserver -configfile utserver.conf

Contents of /home/tom/utorrent/start_utorrent.sh:

#!/bin/bash
su - tom -c 'cd /home/tom/utorrent && nice -n 19 ./utserver -configfile utserver.conf'

Are magnet links not supported on linux or am I doing something wrong?

Regards,

Tom

Share this post


Link to post
Share on other sites

Good to know it should work!

I've straced the utserver main process (strace -f -p 23056 -o utserver-strace.txt) while entering a magnet link from the piratebay: http://thepiratebay.se/torrent/7046183/ubuntu-10.04.4-desktop-i386.iso

The utserver segfaulted immediately.

Here's the strace file: http://www.vleeuwen.eu/utserver-strace.txt

I hope you guys see any weird things in it, cause I don't...

Regards,

Tom

Share this post


Link to post
Share on other sites

I see the same bug using utorrent version Version 3.0 (build 24613) on Ubuntu 10.10 Maverick.

However, I only see the bug when I use

./utserver -configfile ./utserver.conf

to start the server.

I was using a utserver.conf template circulating on the internet (i.e. here: http://pastebin.com/KqdY15q9) I went through line-by-line on the utserver.conf file until I found the culprit.

If the option "state_cmd:" is defined in any way whatsoever (even as a blank "" string!) then you will get the segmentation fault.

1. Shut down utorrent

2. Comment out state_cmd as shown:

# state_cmd:  ""

3. Delete settings.dat and settings.dat.old from the utorrent folder

4. Restart utorrent

Voila!

If anyone knows how to report a bug, please go for it. This is extremely reproducible.

Share this post


Link to post
Share on other sites

Good to know! I don't have the state_cmd line in my utserver.conf, but I do have it configured in the webui. End result is that it does show up in settings.dat

pollux utorrent # strings settings.dat | grep state_cmd
Vuze|http://search.vuze.com/xsearch/?q=17:seed_prio_limituli0e22:seed_prio_limitul_flagi1e10:seed_ratioi1000e22:settings_saved_systimei1331103600e3:ssti0e9:state_cmd42:/home/tom/utorrent/sendmail.sh '' %P %S %N2:tdi41883050319e12:tracker_last86:udp://tracker.openbittorrent.com:80/announce

I have confirmed that blanking the statechange/finish commands in the webui and restarting utorrent solves this particular problem.

I am using the state & finish commands however for emailing myself.

Regards,

Tom

Share this post


Link to post
Share on other sites

Any update on this?

I am facing the exact problem in utorrent-server-3.0-ubuntu-10.10-27079. If I set state_cmd configuration variable, utorrent crashes when I add a magnet link (torrent files work fine). If state_cmd is not set, both magnet links and torrent files work fine.

Share this post


Link to post
Share on other sites