[tpop3d-discuss] SIGBUS

Chris Lightfoot chris at ex-parrot.com
Thu, 7 Aug 2003 10:22:18 +0100


On Wed, Aug 06, 2003 at 05:31:55PM +0100, Paul Makepeace wrote:
> On Tue, Aug 05, 2003 at 06:39:41PM +0100, Chris Lightfoot wrote:
> > On Tue, Aug 05, 2003 at 06:15:14PM +0100, Paul Makepeace wrote:
> > > Aug  5 13:35:48 mythix tpop3d[3223]: quit: signal 7 post_fork = 1
> > > Aug  5 13:35:48 mythix tpop3d[17561]: net_loop: child process 3223 killed by signal 7 (shouldn't happen)
> > > 
> > > Seen three in the last week but there's no other info on the child
> > > process (3223, et al). Running latest CVS on Debian testing. Anyone else
> > > seen this? SIGBUS is a little alarming...
> > 
> > Can you recompile with --enable-backtrace? (Should be
> > `--enable-really-ugly-backtrace-hack', but I think Mark
> > thought sobriety was the soul of autoconf, or something.)
> 
> [Sending this on in the hopes there's some light before I debug in
> more depth.]
> 
> Last call before the signal handler is triggered:

um. How did you find this out? Do you have a stacktrace
from when it crashed?

> -- /home/paulm/src/tpop3d/mailbox.c:80 (mailbox_new)
>  +         if (strcmp(type, mr->name) == 0) return mr->m_new(filename);

> -- /home/paulm/src/tpop3d/mailspool.c:185 (mailspool_new_from_file)
>  +         if (mailspool_load_index(M) == -1) {

> 
> Coincidentally(?) I'm also seeing a lot of errors issuing from
> there, typically
> 
> Aug  6 17:20:48 mythix tpop3d[9863]: mailspool_load_index(<index1>): index exists, but has some stale or corrupt data
> Aug  6 17:23:36 mythix tpop3d[10416]: mailspool_load_index(<index2>): No such file or directory
> 
> The "stale or corrupt" one I've seen ever since I've used it possibly
> even pre-1.4.2 but the "no such file" seems more recent (I don't have
> historic logs unfortunately).

`Stale or corrupt' just means that there were messages in
the index which can't be matched with messages in the
mailspool. Do your users access their mailspools through
anything other than tpop3d? If so, you'd expect that
message; if not, I'm a bit surprised and I'll have to have
another look at it.

> $ ls -ald /var/lib/tpop3d/index/
> drwxrwsr-x    2 mail     mail         4096 Aug  4 19:31 /var/lib/tpop3d/index/
> $
> [rest are mail:mail too]

Well, the second error occurs only when tpop3d can't open
an index file (obviously). Is this perhaps a new user, or
have you deleted an index file?

-- 
``We overbooked. But I can give you the co-pilot's seat
  if you know how to fly a 747.'' (Scott Adams, from `Dilbert')