Package: goaccess
Severity: important
Tags: upstream

Dear maintainer,

When trying to view two different logs on the same machine at the
same time the first one works, but the second is stopped after log
format selection.

If you exit first one, the second one continues. After fiddling whith
strace seems the one which locks is trying to access a file which is
probably opened by the other:

lstat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=16384, ...}) = 0
lstat("/tmp/-1mdb_agent_keys.tcb", {st_mode=S_IFREG|0644, st_size=266752, ...}) 
= 0
futex(0x7fcd274ec3b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/tmp//-1mdb_agent_keys.tcb", O_RDWR|O_CREAT, 0644) = 4
fcntl(4, F_SETLKW, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=0, l_len=0}

At first glance seems goaccess should be generating different database
paths for different processes. Or maybe it already tries but some piece
of info failed here and is not checked, because the prepended '-1' looks
very much like a result from a failed call.

Note this doesn't happen on current stable version, which allowed me
to see both files without trouble. Note also this version I'm using is
an unmodified backport of current sid version to stretch. The only
difference with sid's package is the version of the Build-Depends used
to build it, which are the ones from stable, of course.

thanks in advance,

-- System Information:
Debian Release: 9.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), 
LANGUAGE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages goaccess depends on:
ii  libc6         2.24-11+deb9u3
ii  libgeoip1     1.6.9-4
ii  libglib2.0-0  2.50.3-2
ii  libncurses5   6.0+20161126-1+deb9u2
ii  libtinfo5     6.0+20161126-1+deb9u2

goaccess recommends no packages.

goaccess suggests no packages.

Reply via email to