seg faults when running quota command
Craig White
craigwhite at azapple.com
Wed Feb 2 01:50:12 EST 2005
as user cyrus
-bash-2.05b$ strace /usr/lib/cyrus-imapd/quota -f
execve("/usr/lib/cyrus-imapd/quota", ["/usr/lib/cyrus-imapd/quota", "-
f"], [/* 20 vars */]) = 0
uname({sys="Linux", node="linuxserver.azapple.com", ...}) = 0
brk(0) = 0x87f1000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=67472, ...}) = 0
old_mmap(NULL, 67472, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb75e3000
close(3) = 0
open("/usr/lib/libsasl2.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P0\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=76620, ...}) = 0
old_mmap(NULL, 75532, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x6d0000
old_mmap(0x6e2000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x12000) = 0x6e2000
close(3) = 0
open("/lib/libresolv.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20*\0\000"...,
512) = 512
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb75e2000
fstat64(3, {st_mode=S_IFREG|0755, st_size=76528, ...}) = 0
old_mmap(NULL, 73604, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x620000
old_mmap(0x62f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0xf000) = 0x62f000
old_mmap(0x630000, 8068, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x630000
close(3) = 0
open("/lib/libssl.so.4", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\226"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=211908, ...}) = 0
old_mmap(NULL, 212612, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x29a000
old_mmap(0x2cb000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x31000) = 0x2cb000
close(3) = 0
open("/lib/libcrypto.so.4", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\252"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=972156, ...}) = 0
old_mmap(NULL, 985368, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xdbe000
old_mmap(0xe9a000, 73728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0xdc000) = 0xe9a000
old_mmap(0xeac000, 10520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0xeac000
close(3) = 0
open("/lib/libdb-4.1.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3605\1"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=793716, ...}) = 0
old_mmap(NULL, 793016, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xcb9000
old_mmap(0xd79000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0xc0000) = 0xd79000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200X\1"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1571680, ...}) = 0
old_mmap(NULL, 1275340, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x111000
old_mmap(0x243000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x132000) = 0x243000
old_mmap(0x246000, 9676, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x246000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\32"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=14852, ...}) = 0
old_mmap(NULL, 12244, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x6f6000
old_mmap(0x6f8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x1000) = 0x6f8000
close(3) = 0
open("/lib/libcrypt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\t\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=23372, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb75e1000
old_mmap(NULL, 181308, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x9fa000
old_mmap(0x9ff000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x4000) = 0x9ff000
old_mmap(0xa00000, 156732, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0xa00000
close(3) = 0
open("/usr/kerberos/lib/libgssapi_krb5.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340H\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=76712, ...}) = 0
old_mmap(NULL, 75588, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x7f0000
old_mmap(0x802000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x12000) = 0x802000
close(3) = 0
open("/usr/kerberos/lib/libkrb5.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\362"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=385252, ...}) = 0
old_mmap(NULL, 384636, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0xf41000
old_mmap(0xf9d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x5c000) = 0xf9d000
close(3) = 0
open("/usr/kerberos/lib/libcom_err.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\t\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=5540, ...}) = 0
old_mmap(NULL, 4520, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xc53000
old_mmap(0xc54000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x1000) = 0xc54000
close(3) = 0
open("/usr/kerberos/lib/libk5crypto.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0&\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=72552, ...}) = 0
old_mmap(NULL, 73108, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x3f3000
old_mmap(0x404000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x11000) = 0x404000
close(3) = 0
open("/usr/lib/libz.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\30"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=60702, ...}) = 0
old_mmap(NULL, 55312, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x249000
old_mmap(0x255000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0xb000) = 0x255000
close(3) = 0
mprotect(0xbfff7000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|
PROT_GROWSDOWN) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb75e0000
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20G\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=97676, ...}) = 0
old_mmap(NULL, 64820, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x397000
old_mmap(0x3a4000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0xc000) = 0x3a4000
old_mmap(0x3a5000, 7476, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x3a5000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb75df000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb75df080,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb75e3000, 67472) = 0
set_tid_address(0xb75df0c8) = 30338
rt_sigaction(SIGRTMIN, {0x39b670, [], SA_RESTORER|SA_SIGINFO, 0x3a1e50},
NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) =
0
geteuid32() = 76
brk(0) = 0x87f1000
brk(0x8812000) = 0x8812000
brk(0) = 0x8812000
open("/etc/imapd.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=812, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb75f3000
read(3, "configdirectory: /var/lib/imap\np"..., 4096) = 812
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb75f3000, 4096) = 0
uname({sys="Linux", node="linuxserver.azapple.com", ...}) = 0
umask(077) = 022
stat64("/var/lib/imap/db/DB_CONFIG", 0xbfff6ab0) = -1 ENOENT (No such
file or directory)
open("/var/lib/imap/db/DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
stat64("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) =
0
stat64("/var/lib/imap/db/__db.001", {st_mode=S_IFREG|0600,
st_size=16384, ...}) = 0
open("/var/lib/imap/db/__db.001", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fstat64(3, {st_mode=S_IFREG|0600, st_size=16384, ...}) = 0
close(3) = 0
open("/var/lib/imap/db/__db.001", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
mmap2(NULL, 16384, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0xb75f0000
close(3) = 0
stat64("/var/lib/imap/db/__db.002", {st_mode=S_IFREG|0600,
st_size=663552, ...}) = 0
open("/var/lib/imap/db/__db.002", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
mmap2(NULL, 663552, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0xb753d000
close(3) = 0
stat64("/var/lib/imap/db/__db.003", {st_mode=S_IFREG|0600,
st_size=98304, ...}) = 0
open("/var/lib/imap/db/__db.003", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
mmap2(NULL, 98304, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0xb7525000
close(3) = 0
stat64("/var/lib/imap/db/__db.004", {st_mode=S_IFREG|0600,
st_size=23068672, ...}) = 0
open("/var/lib/imap/db/__db.004", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
mmap2(NULL, 23068672, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) =
0xb5f25000
close(3) = 0
stat64("/var/lib/imap/db/__db.005", {st_mode=S_IFREG|0600,
st_size=32768, ...}) = 0
open("/var/lib/imap/db/__db.005", O_RDWR|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
mmap2(NULL, 32768, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0xb5f1d000
close(3) = 0
open("/var/lib/imap/db/skipstamp", O_RDONLY) = 3
read(3, "B\0i\32", 4) = 4
close(3) = 0
time(NULL) = 1107326525
getpid() = 30338
stat64("/var/lib/imap", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
open("/var/lib/imap/quota", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY)
= 3
fstat64(3, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(3, /* 4 entries */, 4096) = 96
getdents64(3, /* 0 entries */, 4096) = 0
close(3) = 0
open("/var/lib/imap/quota/j", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(3, /* 3 entries */, 4096) = 88
getdents64(3, /* 0 entries */, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
-bash-2.05b$
# cat /var/lib/imap/quota/c/user.craig
3439776
2048000
# cat /var/lib/imap/quota/j/user.jennifer
0
1024000
I imported from mbox files using Andrew Morgan's script - seems to be
fine (well - everything but the 'Sent' folder but nothing is perfect)
Craig
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus
mailing list