Opened 15 years ago

Closed 15 years ago

#911 closed bug (Fixed)

webui crashes when the -l parameter is used

Reported by: guigui357 Owned by: mvoncken
Priority: major Milestone:
Component: Web UI Version: 1.1.7
Keywords: log file webui crash Cc:

Description

Hi,

I've opened a thread in the support forum here because I couldn't use webui since my update to jaunty.

It comes out that webui crashes if a log file is specified using the -l parameter.

This seems to be true only with jaunty (I have another machine still running intrepid and configured exactly the same way, with deluge 1.1.7 as well, and it works).

I used strace to try to understand a little bit where things go wrong. Here are extracts from webuiok.log and webuiko.log, showing the moment things go wrong. Hopefully it will help to find what happens.

webuiok.log (no log file specified)

...

open("/usr/lib/python2.6/sets.py", O_RDONLY|O_LARGEFILE) = 8
fstat64(8, {st_mode=S_IFREG|0644, st_size=19625, ...}) = 0
open("/usr/lib/python2.6/sets.pyc", O_RDONLY|O_LARGEFILE) = 9
fstat64(9, {st_mode=S_IFREG|0644, st_size=17721, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb8095000
read(9, "\321\362\r\n\336\217\352Ic\0\0\0\0\0\0\0\0\v\0\0\0@\0\0\0s'\1\0\0d\0\0"..., 4096) = 4096
fstat64(9, {st_mode=S_IFREG|0644, st_size=17721, ...}) = 0
read(9, "elements(\0\0\0\0(\0\0\0\0s\32\0\0\0/usr/lib/p"..., 12288) = 12288
read(9, "\0Remove and return an arbitrary s"..., 4096) = 1337
read(9, ""..., 4096)                    = 0
close(9)                                = 0
munmap(0xb8095000, 4096)                = 0
stat64("/var/lib/python-support/python2.6/deluge/ui/webui/lib/webpy022/utils.py", {st_mode=S_IFREG|0644, st_size=21567, ...}) = 0
open("/var/lib/python-support/python2.6/deluge/ui/webui/lib/webpy022/utils.py", O_RDONLY|O_LARGEFILE) = 9
fstat64(9, {st_mode=S_IFREG|0644, st_size=21567, ...}) = 0
fstat64(9, {st_mode=S_IFREG|0644, st_size=21567, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb8095000
read(9, "\"\"\"\nGeneral Utilities\n(part of we"..., 8192) = 8192
read(9, "\n        [[1, 2], [3, 4]]\n    \"\"\""..., 4096) = 4096
read(9, "edelta(seconds=2): '2 seconds ago"..., 4096) = 4096
read(9, "kw unused\n        import hotshot,"..., 4096) = 4096
read(9, "      939387374\n        >>> to36("..., 4096) = 1087
read(9, ""..., 4096)                    = 0
close(9)                                = 0
munmap(0xb8095000, 4096)                = 0
write(2, "/var/lib/python-support/python2.6"..., 150/var/lib/python-support/python2.6/deluge/ui/webui/lib/webpy022/utils.py:138: DeprecationWarning: the sets module is deprecated
  from sets import Set
) = 150

...

and then webuiko.log (log file specified on the command line)

...

open("/usr/lib/python2.6/sets.pyc", O_RDONLY|O_LARGEFILE) = 10
fstat64(10, {st_mode=S_IFREG|0644, st_size=17721, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fc0000
read(10, "\321\362\r\n\336\217\352Ic\0\0\0\0\0\0\0\0\v\0\0\0@\0\0\0s'\1\0\0d\0\0"..., 4096) = 4096
fstat64(10, {st_mode=S_IFREG|0644, st_size=17721, ...}) = 0
read(10, "elements(\0\0\0\0(\0\0\0\0s\32\0\0\0/usr/lib/p"..., 12288) = 12288
read(10, "\0Remove and return an arbitrary s"..., 4096) = 1337
read(10, ""..., 4096)                   = 0
close(10)                               = 0
munmap(0xb7fc0000, 4096)                = 0
close(9)                                = 0
close(8)                                = 0
close(7)                                = 0
close(6)                                = 0
close(5)                                = 0
close(4)                                = 0
stat64("/usr/bin/apport", 0xbfaf62f4)   = -1 ENOENT (No such file or directory)
open("/usr/bin/apport.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/bin/apportmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/bin/apport.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/bin/apport.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/python2.6/apport", 0xbfaf62f4) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/apport.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/apportmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/apport.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/apport.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/python2.6/plat-linux2/apport", 0xbfaf62f4) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.6/plat-linux2/apport.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)

...
from this moment on a lot of apport related stuff, and finally exists later

Change History (1)

comment:1 by Damien Churchill, 15 years ago

Resolution: fixed
Status: newclosed

This no longer happens in 1.2

Note: See TracTickets for help on using tickets.