[tpop3d-discuss] SIGBUS

Paul Makepeace beasts.org at paulm.com
Wed, 6 Aug 2003 17:31:55 +0100


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:

-- /home/paulm/src/tpop3d/mailbox.c:80 (mailbox_new)

       for (mr = mbox_drivers; mr < mbox_drivers_end; ++mr)
 +         if (strcmp(type, mr->name) == 0) return mr->m_new(filename);

       log_print(LOG_ERR, _("mailbox_new(%s): request for unknown mailbox type %s"), filename, type);
-- /home/paulm/src/tpop3d/mailspool.c:185 (mailspool_new_from_file)
   #ifdef MBOX_BSD_SAVE_INDICES
       if (mailspool_save_indices) {
 +         if (mailspool_load_index(M) == -1) {
               log_print(LOG_ERR, _("mailspool_new_from_file: unable to index mailspool"));
               goto fail;


**

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).

$ 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]

Paul



-- 
Paul Makepeace ....................................... http://paulm.com/

"What is thought? Too much is not enough."
   -- http://paulm.com/toys/surrealism/