Package: offlineimap
Version: 4.0.8
Severity: important

From: [EMAIL PROTECTED]
Subject: offlineimap: locks up during sync on same mailbox every time
Package: offlineimap
Version: 4.0.8
Severity: important

Hi John,

First of all, great software. :)

The software locks up when syncing Underwater.Announcements mailbox. I've
tried 4.0.8 and 4.0.7 and both do the same thing. I've tried accessing the
IMAP server using other clients and they have no difficulties.

My guess is a race condition when signals are being masked out then
unmasked again.

I've used strace on it and here is the relevant section. The full trace
file is available:

    http://www.synerger.com/oimap.trace

To make things quicker PID 4735 is the one dealing with the mailbox in question.

4735  --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
4718  kill(4720, SIGRTMIN <unfinished ...>
4735  getpid( <unfinished ...>
4720  --- SIGRTMIN (Unknown signal 32) @ 0 (0) ---
4735  <... getpid resumed> )            = 4735
4720  <... rt_sigsuspend resumed> )     = -1 EINTR (Interrupted system call)
4735  rt_sigprocmask(SIG_SETMASK, ~[KILL STOP RT_1], NULL, 8) = 0
4735  sched_setscheduler(4735, SCHED_OTHER, { 0 }) = 0
4735  rt_sigprocmask(SIG_SETMASK, NULL, ~[KILL STOP RT_1], 8) = 0
4735  rt_sigsuspend(~[KILL STOP RTMIN RT_1] <unfinished ...>
4720  sigreturn()                       = ? (mask now ~[KILL STOP])
4720  rt_sigprocmask(SIG_SETMASK, ~[KILL STOP RT_1], NULL, 8) = 0
4720  kill(4735, SIGRTMIN <unfinished ...>
4735  --- SIGRTMIN (Unknown signal 32) @ 0 (0) ---
4735  <... rt_sigsuspend resumed> )     = -1 EINTR (Interrupted system call)
4735  sigreturn()                       = ? (mask now ~[KILL STOP])
4735  write(1, "Syncing Underwater.Announcements"..., 50) = 50
4735  open("/home/sammys/.Mail/Underwater.Announcements/new", 
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 7
4735  fstat64(7, {st_mode=S_IFDIR|S_ISGID|0700, st_size=4096, ...}) = 0
4735  fcntl64(7, F_SETFD, FD_CLOEXEC)   = 0
4735  getdents64(7, /* 2 entries */, 4096) = 48
4735  getdents64(7, /* 0 entries */, 4096) = 0
4735  close(7)                          = 0
4735  open("/home/sammys/.Mail/Underwater.Announcements/cur", 
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 7
4735  fstat64(7, {st_mode=S_IFDIR|S_ISGID|0700, st_size=4096, ...}) = 0
4735  fcntl64(7, F_SETFD, FD_CLOEXEC)   = 0
4735  getdents64(7, /* 2 entries */, 4096) = 48
4735  getdents64(7, /* 0 entries */, 4096) = 0
4735  close(7)                          = 0
4735  
stat64("/home/sammys/.offlineimap/Account-Taco/LocalStatus/Underwater.Announcements",
 0xbf1fe764) = -1 ENOENT (No such file or directory)
4735  
open("/home/sammys/.offlineimap/Repository-TacoLocal/FolderValidity/Underwater.Announcements.tmp",
 O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 7
4735  fstat64(7, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
4735  fstat64(7, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
4735  old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x40486000
4735  write(7, "42\n", 3)               = 3
4735  close(7)                          = 0
4735  munmap(0x40486000, 4096)          = 0
4735  
rename("/home/sammys/.offlineimap/Repository-TacoLocal/FolderValidity/Underwater.Announcements.tmp",
 
"/home/sammys/.offlineimap/Repository-TacoLocal/FolderValidity/Underwater.Announcements")
 = 0
4735  gettimeofday({1108011668, 55266}, NULL) = 0
4735  send(6, "GAJI44 SELECT Underwater.Announc"..., 40, 0) = 40
4735  recv(6,  <unfinished ...>
4720  <... kill resumed> )              = 0
4720  select(0, NULL, NULL, NULL, {0, 0}) = 0 (Timeout)
4720  rt_sigprocmask(SIG_SETMASK, NULL, ~[KILL STOP RT_1], 8) = 0
4720  rt_sigsuspend(~[KILL STOP RTMIN RT_1] <unfinished ...>

Then no mention of pid 4735 until:

4717  --- SIGINT (Interrupt) @ 0 (0) ---
4717  getpid()                          = 4717
...
4718  kill(4735, SIGRT_1 <unfinished ...>
4735  <... recv resumed> 0x820ea34, 8192, 0) = ? ERESTARTSYS (To be restarted)
4735  --- SIGRT_1 (Unknown signal 33) @ 0 (0) ---
4735  exit_group(0)                     = ?

Cheers,

Sammy Spets
Synerger Pty Ltd
http://www.synerger.com

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages offlineimap depends on:
ii  python2.3                     2.3.4-19   An interactive high-level object-o

-- no debconf information

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages offlineimap depends on:
ii  python2.3                     2.3.4-19   An interactive high-level object-o

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to