Good morning,

I have installed vpopmail 5.4.28 on 3 mailservers (production) and on 1 of them 
the vusage daemon is not working. When running it gives a segmentation fault:

config: using /home/vpopmail/etc/vusaged.conf
socket: listening on /tmp/vusaged.sock
controller: stage one
vusaged: begin
Segmentation fault

The error message in the /var/log/syslog file is:

Jul 26 19:23:21 mail2 kernel: [ 6728.830283] vusaged[16552]: segfault at 
72656b79 ip b7db16c1 sp b2afd110 error 4 in 
libmysqlclient.so.15.0.0[b7d42000+1a4000]


The output of a strace command is: (I replaced the domainname with 
<domain.com>).

[pid 16181] 
stat64("/home/vpopmail/domains/H/domain.com/postmaster/Maildir/./cur", 
{st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
[pid 16181] 
open("/home/vpopmail/domains/H/domain.com/postmaster/Maildir/./cur", 
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 12
[pid 16181] fstat64(12, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
[pid 16181] getdents(12, /* 2 entries */, 4096) = 32
[pid 16181] 
stat64("/home/vpopmail/domains/H/domain.com/postmaster/Maildir/./cur/.", 
{st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
[pid 16181] getdents(12, /* 0 entries */, 4096) = 0
[pid 16181] close(12)                   = 0
[pid 16181] 
stat64("/home/vpopmail/domains/H/domain.com/postmaster/Maildir/new/new", 
0xb73b215c) = -1 ENOENT (No such file or directory)
[pid 16181] 
stat64("/home/vpopmail/domains/H/domain.com/postmaster/Maildir/maildirsize/new",
 0xb73b215c) = -1 ENOTDIR (Not a directory)
[pid 16181] 
stat64("/home/vpopmail/domains/H/domain.com/postmaster/Maildir/tmp/new", 
0xb73b215c) = -1 ENOENT (No such file or directory)
[pid 16181] 
stat64("/home/vpopmail/domains/H/domain.com/postmaster/Maildir/cur/new", 
0xb73b215c) = -1 ENOENT (No such file or directory)
[pid 16181] getdents(11, /* 0 entries */, 4096) = 0
[pid 16181] close(11)                   = 0
[pid 16181] time(NULL)                  = 1248628902
[pid 16181] time(NULL)                  = 1248628902
[pid 16181] time(NULL)                  = 1248628902
[pid 16181] time(NULL)                  = 1248628902
[pid 16181] time(NULL)                  = 1248628902
[pid 16181] time(NULL)                  = 1248628902
[pid 16181] clock_gettime(CLOCK_REALTIME, {1248628902, 595503000}) = 0
[pid 16181] futex(0x8067ba4, FUTEX_WAIT_PRIVATE, 640, {14, 404497000} 
<unfinished ...>
[pid 16191] <... futex resumed> )       = 1
[pid 16191] --- SIGSEGV (Segmentation fault) @ 0 (0) ---

Many domains and mailboxes are iterated before this pops up in the strace log. 
If I delete this domain from the server, it will go to the next domain and 
display the same error message for another 'next' domain. I still have no idea 
what the error message could be. The message in the syslog would indicate a 
problem with the mysql client library, however the output from the strace would 
suggest there is another problem.

When looking at the respective mailbox, the ownership and permissions are all 
correct vpopmail:vchkpw and also the directory structure of the Maildir++ 
directory seems fine. /tmp is also writable .. any ideas? Does the vusage 
daemon have any debugging or logging options that I can enable on the command 
line?

Sincerely,
- Wouter van der Schagt

!DSPAM:4a6c927132711275380118!

Reply via email to