Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 363 of 808  Not logged in ELOG logo
New entries since:Thu Jan 1 01:00:00 1970
ID Date Icon Author Author Email Category OSdown ELOG Version Subject
  1017   Thu Mar 24 12:30:07 2005 Warning Emiliano GabrielliAlberT@SuperAlberT.itInfoLinux Re: New Debian package (2.5.8+r1592) -- needs testing
> Hi to all,
> 
> I've prepared a new Debian package.  This version will probably be the one
> which you'll find in Sarge/stable.
> 
> There are some invasive changes in this version which call for a serious
> test.  In accordance with a suggestion, I've changed the configuration
> mechanism.  For details, please read the NEWS.Debian file attached.
> 
> Could the Debian users who follow this forum test it and give some feedback?
> You can download the package from the following link:
> 
>   http://l10n-turkish.alioth.debian.org/debian/elog_2.5.8+r1592-1_i386.deb
> 
> Thanks in advance for your participation,

btw, what about in including in default/elog also a voice for the "-x" switch ??

It is a security related thing and may be passed only on the command line to the
daemon, so it should be governed by the system elog admin.
  1019   Thu Mar 24 13:40:27 2005 Angy Emiliano GabrielliAlberT@SuperAlberT.itBug reportLinuxr1592Re: wrong handling of attachment names
> When an attached image name contains a space in its filename and attachment
> display is enabled elog builds a wrong url to the image:
> 
> http://arcolog.roma2.infn.it:8080/ARCO/050309_170709/peeling+002.jpg
> 
> instead of the correct one:
> 
> http://arcolog.roma2.infn.it:8080/ARCO/050309_170709_peeling+002.jpg
> 
> The more annoing thing is that elogs hangs on this. a strace shows a select
> on fd n°3 and 5 that loops forever (returning a timeout error):
> 
> send(4, "<141>Mar 23 11:36:25 elogd[22189"..., 35, 0) = 35
> rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
> select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
> select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
> 
> 
> May be the better solution is, after fixing the bug for backward
> compatibility with already uploaded images, to implement a forced characters
> substitution at upload time, replacing spaces and every character not in a
> "allowed chars" list with an underscore

donno if the following is correlated, otherwise there is another problem I
guess :-)
I attached a strace of elog, hope you'll find it useful.

- Irestarted the daemon
- attached strace to it
- requested the list for a testin logbook, few entries some quite big images 
  (two thumbnails, the other are old images get resized my the browser)
- repeted previous point a couple of times
- press F5 (mozilla-firefox)  the browser hangs 4ever
- stop the load
- repeat point 3, all right
- F5 => hangs
- F5 => hangs

there should be some problem, may be in the socket ?
Attachment 1: elog_trace.txt
Process 26302 attached - interrupt to quit
select(1024, [3], NULL, NULL, {0, 318000}) = 0 (Timeout)
select(1024, [3], NULL, NULL, {1, 0})   = 0 (Timeout)
select(1024, [3], NULL, NULL, {1, 0})   = 0 (Timeout)
select(1024, [3], NULL, NULL, {1, 0})   = 0 (Timeout)
select(1024, [3], NULL, NULL, {1, 0})   = 0 (Timeout)
select(1024, [3], NULL, NULL, {1, 0})   = 1 (in [3], left {0, 358000})
accept(3, {sa_family=AF_INET, sin_port=htons(34793), sin_addr=inet_addr("141.108.255.111")}, [16]) = 5
time(NULL)                              = 1111667888
socket(PF_FILE, SOCK_STREAM, 0)         = 6
connect(6, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory)
close(6)                                = 0
open("/etc/hosts", O_RDONLY)            = 6
fcntl64(6, F_GETFD)                     = 0
fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0
fstat64(6, {st_mode=S_IFREG|0644, st_size=9153, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
read(6, "127.0.0.1\tlocalhost\t\tsparcserv\n1"..., 4096) = 4096
read(6, "sp\tws106\n192.168.0.107  \t\tws107."..., 4096) = 4096
read(6, ".0.227  \t\tws227.ltsp\tws227\n192.1"..., 4096) = 961
read(6, "", 4096)                       = 0
close(6)                                = 0
munmap(0x40018000, 4096)                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 6
connect(6, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("141.108.255.3")}, 28) = 0
send(6, "\2D\1\0\0\1\0\0\0\0\0\0\003111\003255\003108\003141\7i"..., 46, 0) = 46
gettimeofday({1111667888, 460326}, NULL) = 0
poll([{fd=6, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(6, FIONREAD, [216])               = 0
recvfrom(6, "\2D\205\200\0\1\0\1\0\4\0\3\003111\003255\003108\00314"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("141.108.255.3")}, [16]) = 216
close(6)                                = 0
select(1024, [5], NULL, NULL, {6, 0})   = 1 (in [5], left {6, 0})
recv(5, "GET /test/?mode=full&attach=1 HT"..., 100000, 0) = 622
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 35, 0) = 35
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 653, 0) = 653
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40246000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4026f000
mmap2(NULL, 151552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40298000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402bd000
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402fb000
open("/var/lib/elog/test/050324a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 7\nDate: Thu Mar 24 10:5"..., 250999) = 241
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
open("/var/lib/elog/test/050324_105313_back 42.jpg.thumb", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/var/lib/elog/test/050324_110101_back 42.JPG.thumb", O_RDONLY) = -1 ENOENT (No such file or directory)
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050323a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 765, SEEK_SET)                 = 765
read(6, "$@MID@$: 6\nDate: Wed Mar 23 12:2"..., 250999) = 271
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
open("/var/lib/elog/test/050323_122120_Poster1_PCaPAC05.pdf.thumb", O_RDONLY) = 6
close(6)                                = 0
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050323a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 5\nDate: Wed Mar 23 12:0"..., 250999) = 1036
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050311a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 4\nDate: Fri Mar 11 18:0"..., 250999) = 2546
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
open("/var/lib/elog/test/050311_175308_Non-reversed_field.jpg.thumb", O_RDONLY) = 6
close(6)                                = 0
open("/var/lib/elog/test/050311_180201_reversed_field.jpg.thumb", O_RDONLY) = 6
close(6)                                = 0
open("/var/lib/elog/test/050311_180244_reversed_and_non-reversed_field.jpg.thumb", O_RDONLY) = 6
close(6)                                = 0
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050310a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 3\nDate: Thu Mar 10 09:0"..., 250999) = 1068
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050307a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 202, SEEK_SET)                 = 202
read(6, "$@MID@$: 2\nDate: Mon Mar 07 16:0"..., 250999) = 180
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050307a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 1\nDate: Mon Mar 07 15:1"..., 250999) = 382
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667888])                      = 1111667888
time([1111667888])                      = 1111667888
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
munmap(0x40246000, 167936)              = 0
munmap(0x4026f000, 167936)              = 0
munmap(0x40298000, 151552)              = 0
munmap(0x402bd000, 253952)              = 0
munmap(0x402fb000, 253952)              = 0
send(5, "HTTP/1.1 200 Document follows\r\nS"..., 241, 0) = 241
send(5, "<!DOCTYPE HTML PUBLIC \"-//W3C//D"..., 11022, 0) = 11022
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 79, 0) = 79
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 272, 0) = 272
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 11057, 0) = 11057
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 35, 0) = 35
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
select(1024, [3 5], NULL, NULL, {1, 0}) = 1 (in [5], left {0, 718000})
time(NULL)                              = 1111667888
select(1024, [5], NULL, NULL, {6, 0})   = 1 (in [5], left {6, 0})
recv(5, "GET /test/favicon.ico HTTP/1.1\r\n"..., 100000, 0) = 534
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 35, 0) = 35
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 565, 0) = 565
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
open("/usr/share/elog/themes/arco/favicon.ico", O_RDONLY) = 6
lseek(6, 0, SEEK_END)                   = 318
lseek(6, 0, SEEK_CUR)                   = 318
lseek(6, 0, SEEK_SET)                   = 0
time([1111667888])                      = 1111667888
read(6, "\0\0\1\0\1\0\20\20\20\0\1\0\4\0(\1\0\0\26\0\0\0(\0\0\0"..., 318) = 318
close(6)                                = 0
send(5, "HTTP/1.1 200 Document follows\r\nS"..., 546, 0) = 546
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 79, 0) = 79
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 259, 0) = 259
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667888])                      = 1111667888
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:08 elogd[26302"..., 35, 0) = 35
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
select(1024, [3 5], NULL, NULL, {1, 0}) = 0 (Timeout)
select(1024, [3 5], NULL, NULL, {1, 0}) = 1 (in [5], left {0, 322000})
time(NULL)                              = 1111667894
select(1024, [5], NULL, NULL, {6, 0})   = 1 (in [5], left {6, 0})
recv(5, "GET /test/?mode=full&attach=1 HT"..., 100000, 0) = 622
time([1111667894])                      = 1111667894
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:14 elogd[26302"..., 35, 0) = 35
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
time([1111667894])                      = 1111667894
getpid()                                = 26302
rt_sigaction(SIGPIPE, {0x40123530, [], 0}, {SIG_IGN}, 8) = 0
send(4, "<141>Mar 24 13:38:14 elogd[26302"..., 653, 0) = 653
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40246000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4026f000
mmap2(NULL, 151552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40298000
time([1111667894])                      = 1111667894
time([1111667894])                      = 1111667894
time([1111667894])                      = 1111667894
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402bd000
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x402fb000
open("/var/lib/elog/test/050324a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 7\nDate: Thu Mar 24 10:5"..., 250999) = 241
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667894])                      = 1111667894
time([1111667894])                      = 1111667894
open("/var/lib/elog/test/050324_105313_back 42.jpg.thumb", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/var/lib/elog/test/050324_110101_back 42.JPG.thumb", O_RDONLY) = -1 ENOENT (No such file or directory)
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050323a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 765, SEEK_SET)                 = 765
read(6, "$@MID@$: 6\nDate: Wed Mar 23 12:2"..., 250999) = 271
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667894])                      = 1111667894
time([1111667894])                      = 1111667894
open("/var/lib/elog/test/050323_122120_Poster1_PCaPAC05.pdf.thumb", O_RDONLY) = 6
close(6)                                = 0
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050323a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 5\nDate: Wed Mar 23 12:0"..., 250999) = 1036
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667894])                      = 1111667894
time([1111667894])                      = 1111667894
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050311a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 4\nDate: Fri Mar 11 18:0"..., 250999) = 2546
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
mmap2(NULL, 167936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40362000
time([1111667894])                      = 1111667894
time([1111667894])                      = 1111667894
open("/var/lib/elog/test/050311_175308_Non-reversed_field.jpg.thumb", O_RDONLY) = 6
close(6)                                = 0
open("/var/lib/elog/test/050311_180201_reversed_field.jpg.thumb", O_RDONLY) = 6
close(6)                                = 0
open("/var/lib/elog/test/050311_180244_reversed_and_non-reversed_field.jpg.thumb", O_RDONLY) = 6
close(6)                                = 0
munmap(0x40339000, 167936)              = 0
munmap(0x40362000, 167936)              = 0
open("/var/lib/elog/test/050310a.log", O_RDWR) = 6
mmap2(NULL, 253952, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40339000
lseek(6, 0, SEEK_SET)                   = 0
read(6, "$@MID@$: 3\nDate: Thu Mar 10 09:0"..., 250999) = 1068
close(6)                                = 0
munmap(0x40339000, 253952)              = 0
... 1508 more lines ...
  1023   Fri Mar 25 00:30:57 2005 Reply Stefan Rittstefan.ritt@psi.chBug reportLinuxr1592Re: wrong handling of attachment names
> - Irestarted the daemon
> - attached strace to it
> - requested the list for a testin logbook, few entries some quite big images 
>   (two thumbnails, the other are old images get resized my the browser)
> - repeted previous point a couple of times
> - press F5 (mozilla-firefox)  the browser hangs 4ever
> - stop the load
> - repeat point 3, all right
> - F5 => hangs
> - F5 => hangs

I tried to reproduce this problem, but everything was fine. This problem was never
reported by anyone else as well.
  1024   Fri Mar 25 00:33:51 2005 Reply Stefan Rittstefan.ritt@psi.chBug reportLinuxr1592Re: wrong handling of attachment names
> It seems that uploading files with spaces in the name *now* works well... so the
> problem should be somewhere in the handling of existing attachments, not rised when
> the attachment is uploaded with the current version of elog ... it's quite strange

Can you send me one of this old xxxxxxa.log files which causes that crash, I can then fix
it in elogd.c ...
  1025   Fri Mar 25 12:44:49 2005 Question Alex Halex@synergie-inf.comBug reportLinux Re: Crash with Protect Selection page = 1
> > > Logins work OK if the username/password is valid.  However, if I try to login
> > > with invalid authentication, the server crashes.  If I turn off the protect
> > > selection page, then invalid authentication does not crash elogd.
> > 
> > Ok, it's me, Speedy Gonzales again (as Emiliano says... (;-))
> > 
> > I fixed that as well and committed the changes.
> 
> That seems to do the trick!  Thanks, Steve

Hi,
where can I find this correction for ELOG?
thanks a lot :o)
  1028   Fri Mar 25 18:25:59 2005 Reply Stefan Rittstefan.ritt@psi.chBug reportLinux Re: Crash with Protect Selection page = 1
> > > > Logins work OK if the username/password is valid.  However, if I try to login
> > > > with invalid authentication, the server crashes.  If I turn off the protect
> > > > selection page, then invalid authentication does not crash elogd.
> > > 
> > > Ok, it's me, Speedy Gonzales again (as Emiliano says... (;-))
> > > 
> > > I fixed that as well and committed the changes.
> > 
> > That seems to do the trick!  Thanks, Steve
> 
> Hi,
> where can I find this correction for ELOG?
> thanks a lot :o)

It's under CVS. You have to recompile the executable yourself, or you wait for the next
release (;-)
  1031   Tue Mar 29 11:49:29 2005 Reply Emiliano GabrielliAlberT@SuperAlberT.itBug reportLinuxr1592Re: wrong handling of attachment names
> > - Irestarted the daemon
> > - attached strace to it
> > - requested the list for a testin logbook, few entries some quite big images 
> >   (two thumbnails, the other are old images get resized my the browser)
> > - repeted previous point a couple of times
> > - press F5 (mozilla-firefox)  the browser hangs 4ever
> > - stop the load
> > - repeat point 3, all right
> > - F5 => hangs
> > - F5 => hangs
> 
> I tried to reproduce this problem, but everything was fine. This problem was never
> reported by anyone else as well.

I tried to rise the problem with konqueror, and all works nice... running
mozilla-firefox gives the problem instead (also running the test at the same time), so
there should be something in firefox or in the interaction between firefox and elog.
I'll send you one of the elog giving the problems so you can test by yourself as you
asked.

btw:
http://midas.psi.ch/elogs/Forum/?mode=full&attach=1  does not gives any problem to me
even running firefox. so the problem may be in some my elog.cong parameter ...
  1034   Tue Mar 29 16:21:32 2005 Blink Emiliano GabrielliAlberT@SuperAlberT.itBug reportLinuxr1592Re: wrong handling of attachment names
> > - Irestarted the daemon
> > - attached strace to it
> > - requested the list for a testin logbook, few entries some quite big images 
> >   (two thumbnails, the other are old images get resized my the browser)
> > - repeted previous point a couple of times
> > - press F5 (mozilla-firefox)  the browser hangs 4ever
> > - stop the load
> > - repeat point 3, all right
> > - F5 => hangs
> > - F5 => hangs
> 
> I tried to reproduce this problem, but everything was fine. This problem was never
> reported by anyone else as well.

running ethereal I found a bug, hope this is the problem hanging my firefox (I think
we have a good chance it is :-P)

when I have thuimbs enabled, elog returns for the ".thumb" (or ".whatever".. thumb's
extension should be transparent to elog .. uhm... it can't be .. this is a problem)

anyway, having attached a pdf (a big one) and aving attachment display enabled (with
my thumbnails generated by my script)  elog returns for the displayed thumb a
Content-Type for application/x-pdf, instead of the correct image/jpeg. I think this is
the problem.

The only way for elog to know what is the correc\t content type for thumbnails is to
get it from a configuration parameter, becouse it is a chioce of the external script
used to generate them to choose the type of thumbs (jpeg, png, gif ... )
One conf parameter defaulting to jpeg may be the solution
ELOG V3.1.5-3fb85fa6