Opened 13 years ago

Closed 13 years ago

#31277 closed defect (fixed)

libtorrent-rasterbar 0.15.7 crashes establishing connection to https tracker

Reported by: mew@… Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: deluge Cc:
Port: libtorrent-rasterbar

Description

Newly installed Snow Leopard 10.6.6 Xcode 3.2.6

Deluge 1.3.3 works fine except when I add a torrent from a tracker with HTTPS support, then python crashes.

deluge-gtk-2.6 -L debug

Debug from when I click add torrent:

[DEBUG   ] 19:51:38 toolbar:145 on_toolbutton_add_clicked
[DEBUG   ] 19:51:38 menubar:246 on_menuitem_addtorrent_activate
[DEBUG   ] 19:51:39 addtorrentdialog:539 _on_button_file_clicked
[DEBUG   ] 19:51:39 configmanager:111 Getting config 'gtkui.conf'
[DEBUG   ] 19:51:41 gtkui:272 sent: 7.6 Kb recv: 22.4 Kb
[DEBUG   ] 19:51:41 gtkui:280 sent rate: 0.1 KiB/s recv rate: 0.3 KiB/s
[DEBUG   ] 19:51:43 common:68 Attempting to open /Users/k/Downloads/--------.torrent.
[DEBUG   ] 19:51:47 addtorrentdialog:727 _on_button_add_clicked
[INFO    ] 19:51:47 client:228 Connection lost to daemon at 127.0.0.1:58846 reason: Connection to the other side was lost in a non-clean fashion.
[DEBUG   ] 19:51:47 component:244 Deregistering Component: GtkPlugin.AutoAdd
[INFO    ] 19:51:47 pluginmanagerbase:170 Plugin AutoAdd disabled..
[DEBUG   ] 19:51:47 component:244 Deregistering Component: GtkPlugin.WebUi
[INFO    ] 19:51:47 pluginmanagerbase:170 Plugin WebUi disabled..
[DEBUG   ] 19:51:47 gtkui:64 Blocklist GtkUI disable..
[DEBUG   ] 19:51:47 component:244 Deregistering Component: GtkPlugin.Blocklist
[INFO    ] 19:51:47 pluginmanagerbase:170 Plugin Blocklist disabled..
[DEBUG   ] 19:51:47 filtertreeview:319 nothing selected
[DEBUG   ] 19:51:51 gtkui:272 sent: 31.6 Kb recv: 24.0 Kb
[DEBUG   ] 19:51:51 gtkui:280 sent rate: 2.4 KiB/s recv rate: 0.2 KiB/s
[DEBUG   ] 19:52:01 gtkui:272 sent: 31.6 Kb recv: 24.0 Kb
[DEBUG   ] 19:52:01 gtkui:280 sent rate: 0.0 KiB/s recv rate: 0.0 KiB/s
[DEBUG   ] 19:52:10 menubar:259 on_menuitem_quit_activate
[DEBUG   ] 19:52:10 gtkui:249 gtkui shutting down..
[DEBUG   ] 19:52:10 listview:280 Saving ListView state file: torrentview.state
[DEBUG   ] 19:52:10 files_tab:266 Saving FilesTab state file: files_tab.state
[DEBUG   ] 19:52:10 peers_tab:197 Saving FilesTab state file: peers_tab.state
[DEBUG   ] 19:52:10 torrentdetails:406 Testing name: Status
[DEBUG   ] 19:52:10 torrentdetails:409 Set to Status 1
[DEBUG   ] 19:52:10 torrentdetails:406 Testing name: Details
[DEBUG   ] 19:52:10 torrentdetails:409 Set to Details 1
[DEBUG   ] 19:52:10 torrentdetails:406 Testing name: Files
[DEBUG   ] 19:52:10 torrentdetails:409 Set to Files 1
[DEBUG   ] 19:52:10 torrentdetails:406 Testing name: Peers
[DEBUG   ] 19:52:10 torrentdetails:409 Set to Peers 1
[DEBUG   ] 19:52:10 torrentdetails:406 Testing name: Options
[DEBUG   ] 19:52:10 torrentdetails:409 Set to Options 1
[DEBUG   ] 19:52:10 torrentdetails:416 Saving TorrentDetails state file: tabs.state
[DEBUG   ] 19:52:10 sidebar:67 hpaned.position: 170
[DEBUG   ] 19:52:10 config:423 Saving new config file /Users/k/.config/deluge/gtkui.conf.new
[DEBUG   ] 19:52:10 config:436 Backing up old config file to /Users/k/.config/deluge/gtkui.conf~
[DEBUG   ] 19:52:10 config:444 Moving new config file /Users/k/.config/deluge/gtkui.conf.new to /Users/k/.config/deluge/gtkui.conf..
[1]+  Bus error               deluged-2.6

Entire debug: Pastebin

I installed Deluge using: sudo port install boost +python26 gtk2 +no_x11+quartz libnotify +no_x11+quartz deluge

Earlier versions of Deluge has worked great with HTTPS trackers before I did a clean install of Snow Leopard. What is missing?

Change History (7)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to devans@…
Port: 1.3.3 removed

comment:2 Changed 13 years ago by dbevans (David B. Evans)

Status: newassigned

comment:3 Changed 13 years ago by dbevans (David B. Evans)

I just built a fresh copy of deluge with +no_x11 +quartz and see that the list of dependencies that require these flags are as follows:

  cairo @1.10.2_4+no_x11+quartz+universal (active)
  gtk2 @2.24.6_0+no_x11+quartz+universal (active)
  libnotify @0.5.2_1+quartz+universal (active)
  libsdl @1.2.14_9+no_x11 (active)
  pango @1.28.4_1+no_x11+quartz+universal (active)

so you might want to check libsdl.

Haven't found a https tracker off hand -- which one(s) are you using?

comment:4 Changed 13 years ago by mew@…

I installed libsdl with +no_x11+quartz but the problem is still there. The other ones you list had the flags already as you say.

The htts trackers I use are closed now but I found one with open signup if you want to try for yourself: TB

I found it while googling for HTTPS trackers just now so I can't vouch for the content, but it has a ssl option all the way to the client.

comment:5 Changed 13 years ago by dbevans (David B. Evans)

Keywords: deluge added
Port: libtorrent-rasterbar added; deluge removed
Summary: Deluge 1.3.3 Python crash - HTTPS trackerlibtorrent-rasterbar 0.15.7 crashes establishing connection to https tracker

Thanks for your help. I was able to confirm the problem using this tracker. The problem is with libtorrent-rasterbar which crashes the deluged daemon when trying to establish a connection to a https tracker.

I found that significant changes have been made in libtorrent-rasterbar's svn trunk (pre 0.16.0) that are labeled as initial support for ssl trackers/torrents so perhaps it's not supposed to work in the current version.

Indeed, rebuilding libtorrent-rasterbar from svn trunk fixed the problem for me. I was able to download a 10 GB set of files with no problems using the https tracker that didn't work before.

Since it looks like this may not make it to a formal release soon (not included yet in the 0.15 branch yet), I have committed a new port, libtorrent-rasterbar-devel which builds the svn trunk version and have modified deluge to allow libtorrent-rasterbar-devel as a substitute dependency for libtorrent-rasterbar.

To use this port do the following

sudo port selfupdate
sudo port -f deactivate libtorrent-rasterbar
sudo port install libtorrent-rasterbar-devel

The two versions are ABI compatible with each other so it should not be necessary to rebuild deluge.

Committed libtorrent-rasterbar-devel in r84123 conflicting with libtorrent-rasterbar
Marked libtorrent-rasterbar as conflict with libtorrent-rasterbar-devel in r84124
Deluge modified to use either in r84125

If this fixes the problem for you as well, I'll close the ticket

comment:6 Changed 13 years ago by mew@…

You sir are awesome! :) It works great, thank you!

comment:7 Changed 13 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: assignedclosed

Glad it works for you. Thanks for spotting this bug.

Note: See TracTickets for help on using tickets.