id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
330,deluge crashes when the webui plugin is activated,weatheredwatcher@…,markybob,"I've wracked my brains over this one for two days. 

I installed Deluge...works great.  Three days in it won't stay open longer than ten seconds.  I reinstalled and it worked, but on reboot it started crashing again.  I saw the error  

what():  Address already in use

And I knew it had to be a port problem, so I went and ran ps aux | grep [d]eluge
I saw that the webui was running, even when deluge was not...I turned off the webui and the problem appears to be solved.  BTW, I'm using the random ports setting.


Here is the output from the terminal with the webui turned on:
no existing Deluge session
Starting new Deluge session...
deluge_core; using libtorrent 0.13.0.0. Compiled with NDEBUG.
Applying preferences
save uploaded memory
Pickling state...
Scanning plugin dir /usr/share/deluge/plugins
Initialising plugin MoveTorrent
Initialising plugin BlocklistImport
Initialising plugin Scheduler
Initialising plugin WebUi
Initialising plugin Search
Initialising plugin NetworkGraph
Initialising plugin DesiredRatio
Initialising plugin NetworkHealth
Initialising plugin WebSeed
Initialising plugin FlexRSS
Initialising plugin TorrentFiles
Initialising plugin TorrentNotification
Initialising plugin EventLogging
Initialising plugin TorrentPeers
Initialising plugin TorrentCreator
Initialising plugin SpeedLimiter
Applying preferences
Starting DHT...
No DHT file to resume
Start Webui(in process)..
Found DesiredRatio plugin...
Found TorrentPeers plugin...
Found TorrentFiles plugin...
Found MoveTorrent plugin...
http://0.0.0.0:8112/
Stopping DHT...
Starting DHT...
No DHT file to resume
terminate called after throwing an instance of 'asio::system_error'
  what():  Address already in use
""/usr/bin/deluge"": not in executable format: File format not recognized
Failed to read a valid object file image from memory.


And here are the contents of the bug-log:

System: Linux 2.6.18-6-686 #1 SMP Thu May 8 07:34:27 UTC 2008 i686
X Vendor: The X.Org Foundation
X Vendor Release: 70101000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Glossy
Icon Theme: Kreski-Lines

Memory status: size: 125845504 vsize: 125845504 resident: 30998528 share: 18051072 rss: 30998528 rss_rlim: 4294967295
CPU usage: start_time: 1215705013 rtime: 152 utime: 135 stime: 17 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/bin/deluge'

(no debugging symbols found)
Using host libthread_db library ""/lib/i686/cmov/libthread_db.so.1"".
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1210431296 (LWP 14170)]
[New Thread -1272071280 (LWP 14181)]
[New Thread -1262486640 (LWP 14180)]
[New Thread -1252107376 (LWP 14178)]
[New Thread -1243714672 (LWP 14177)]
[New Thread -1235321968 (LWP 14176)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0xb7f51410 in ?? ()
#0  0xb7f51410 in ?? ()
#1  0xbff5ce58 in ?? ()
#2  0x00000000 in ?? ()

Thread 6 (Thread -1235321968 (LWP 14176)):
#0  0xb7f51410 in ?? ()
No symbol table info available.
#1  0xb65e7268 in ?? ()
No symbol table info available.
#2  0x00000005 in ?? ()
No symbol table info available.
#3  0x00000000 in ?? ()
No symbol table info available.

Thread 5 (Thread -1243714672 (LWP 14177)):
#0  0xb7f51410 in ?? ()
No symbol table info available.
#1  0xb5de5958 in ?? ()
No symbol table info available.
#2  0x00000002 in ?? ()
No symbol table info available.
#3  0x00000000 in ?? ()
No symbol table info available.

Thread 4 (Thread -1252107376 (LWP 14178)):
#0  0xb7f51410 in ?? ()
No symbol table info available.
#1  0xb55e4e38 in ?? ()
No symbol table info available.
#2  0x0000000d in ?? ()
No symbol table info available.
#3  0x00000000 in ?? ()
No symbol table info available.

Thread 3 (Thread -1262486640 (LWP 14180)):
#0  0xb7f51410 in ?? ()
No symbol table info available.
#1  0xb4bff278 in ?? ()
No symbol table info available.
#2  0x00000080 in ?? ()
No symbol table info available.
#3  0xb4bfe790 in ?? ()
No symbol table info available.
#4  0xb7e7c6a6 in epoll_wait () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#5  0xb69e5f9f in asio::detail::epoll_reactor<false>::run ()
   from /var/lib/python-support/python2.5/deluge/deluge_core.so
No symbol table info available.
#6  0xb6a1f9d1 in asio::detail::task_io_service<asio::detail::epoll_reactor<false> >::run () from /var/lib/python-support/python2.5/deluge/deluge_core.so
No symbol table info available.
#7  0xb6a20030 in asio::detail::posix_thread::func<asio::detail::resolver_service<asio::ip::tcp>::work_io_service_runner>::run ()
   from /var/lib/python-support/python2.5/deluge/deluge_core.so
No symbol table info available.
#8  0xb6a136b5 in asio_detail_posix_thread_function ()
   from /var/lib/python-support/python2.5/deluge/deluge_core.so
No symbol table info available.
#9  0xb7f264fb in start_thread () from /lib/i686/cmov/libpthread.so.0
No symbol table info available.
#10 0xb7e7be8e in clone () from /lib/i686/cmov/libc.so.6
No symbol table info available.

Thread 2 (Thread -1272071280 (LWP 14181)):
#0  0xb7f51410 in ?? ()
No symbol table info available.
#1  0xb42db278 in ?? ()
No symbol table info available.
#2  0x00000080 in ?? ()
No symbol table info available.
#3  0xb42da790 in ?? ()
No symbol table info available.
#4  0xb7e7c6a6 in epoll_wait () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#5  0xb69e5f9f in asio::detail::epoll_reactor<false>::run ()
   from /var/lib/python-support/python2.5/deluge/deluge_core.so
No symbol table info available.
#6  0xb6a1f9d1 in asio::detail::task_io_service<asio::detail::epoll_reactor<false> >::run () from /var/lib/python-support/python2.5/deluge/deluge_core.so
No symbol table info available.
#7  0xb6a3b4c0 in asio::detail::posix_thread::func<asio::detail::resolver_service<asio::ip::udp>::work_io_service_runner>::run ()
   from /var/lib/python-support/python2.5/deluge/deluge_core.so
No symbol table info available.
#8  0xb6a136b5 in asio_detail_posix_thread_function ()
   from /var/lib/python-support/python2.5/deluge/deluge_core.so
No symbol table info available.
#9  0xb7f264fb in start_thread () from /lib/i686/cmov/libpthread.so.0
No symbol table info available.
#10 0xb7e7be8e in clone () from /lib/i686/cmov/libc.so.6
No symbol table info available.

Thread 1 (Thread -1210431296 (LWP 14170)):
#0  0xb7f51410 in ?? ()
No symbol table info available.
#1  0xbff5ce58 in ?? ()
No symbol table info available.
#2  0x00000000 in ?? ()
No symbol table info available.
#0  0xb7f51410 in ?? ()


----------- .xsession-errors (4610 sec old) ---------------------
(SWT:8352): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width 250 and height -1
double removal org.gudy.azureus2.core3.util.StringInterner$WeakStringEntry h=-1;s=60 null
double removal org.gudy.azureus2.core3.util.StringInterner$WeakStringEntry h=-1;s=60 null
double removal org.gudy.azureus2.core3.util.StringInterner$WeakStringEntry h=-1;s=60 null
double removal org.gudy.azureus2.core3.util.StringInterner$WeakStringEntry h=-1;s=60 null
double removal org.gudy.azureus2.core3.util.StringInterner$WeakStringEntry h=-1;s=60 null
double removal org.gudy.azureus2.core3.util.StringInterner$WeakStringEntry h=-1;s=60 null
double removal org.gudy.azureus2.core3.util.StringInterner$WeakStringEntry h=-1;s=60 null
double removal org.gudy.azureus2.core3.util.StringInterner$WeakStringEntry h=-1;s=60 null
double removal org.gudy.azureus2.core3.util.StringInterner$WeakStringEntry h=-1;s=60 null
double removal org.gudy.azureus2.core3.util.StringInterner$WeakStringEntry h=-1;s=60 null
double removal org.gudy.azureus2.core3.util.StringInterner$WeakStringEntry h
...Too much output, ignoring rest...
--------------------------------------------------",bug,closed,major,,0.5.x,0.5.9.2,invalid,,
