Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dspam problem
Interesting...
I've noticed that as long as dspam only processes one message at a time,
things seem to be OK. But as soon as it has more than one thing to do,
there's a good chance that the process will just die. (I haven't gotten
as far as you have to identify the exit reason.)
I've got a little cron job that runs every once in a while and checks to
see if dspam is down. If it is, I restart dspam, and then go through my
mailq and run postqueue -i for each entry in the queue, with a short
sleep after each requeue.
On Thu, 26 Mar 2009, Martti Kuparinen wrote:
I tried this now on NetBSD/i386 5.0_RC3...
ROOT pc:/usr/pkgsrc/mail/dspam/work/dspam-3.8.0/src> ./dspam --daemon &
ROOT pc:/usr/pkgsrc/mail/dspam/work/dspam-3.8.0/src> gdb attach 6434
...
Program received signal SIGSEGV, Segmentation fault.
0xbb6f6367 in _lwp_park () from /usr/lib/libc.so.12
(gdb) bt
#0 0xbb6f6367 in _lwp_park () from /usr/lib/libc.so.12
#1 0xbb7c982d in pthread_mutex_trylock () from /usr/lib/libpthread.so.0
#2 0x00000041 in ?? ()
#3 0xbb7a9a22 in _C_tolower_ () from /usr/lib/libc.so.12
#4 0xbb51c78b in ?? ()
#5 0x00000018 in ?? ()
#6 0x00000006 in ?? ()
#7 0xbb53dc40 in ?? ()
#8 0xa0dff9ac in ?? ()
#9 0x0805406e in process_connection (ptr=0x0) at daemon.c:708
#10 0x00000000 in ?? ()
(gdb) list daemon.c:708
703 pthread_rwlock_rdlock(&TTX->DTX->connections[i]->rwlock);
704 } else {
705 pthread_rwlock_wrlock(&TTX->DTX->connections[i]->rwlock);
706 }
707 } else {
708 pthread_mutex_lock(&TTX->DTX->connections[i]->lock);
709 }
710 LOGDEBUG("handle locked");
711 ATX->dbh = TTX->DTX->connections[i]->dbh;
712 locked = i;
I'm unable to print any variables, what should I try?
Martti
!DSPAM:49cba670169343160315622!
-------------------------------------------------------------------------
| Paul Goyette | PGP DSS Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index