Re: Postfix+Cyrus-SASL2+Courier-IMAP+MySQL - smtpd pid .... killed by signal 10

From: Bummibaer (no email)
Date: Thu Sep 02 2004 - 06:51:38 EDT


Victor Duchovni wrote:

> On Wed, Sep 01, 2004 at 04:59:22PM +0200, Bummibaer wrote:
>
> > # truss -f -t '!all' -m '!all' -s'SIGBUS' -SSIGBUS -p <PID> doesn?t work on the
> > BSD Box.
> > Result is "all: Event not found."
> >
>
> This is a misfeature in "csh" derived shells, use "ksh" or "bash".
>
> # exec bash
> bash# truss -f -t '!all' -m '!all' -s'SIGBUS' -SSIGBUS -p <PID>
>
> --
> Viktor.
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the "Reply-To" header.
>
> To unsubscribe from the postfix-users list, visit
> http://www.postfix.org/lists.html or click the link below:
> <mailto:?body=unsubscribe%20postfix-users>

Hello,

i`ve tested truss again, no chance cause truss under FreeBSD doesn`t know the
options.

Manpage says:

SYNOPSIS
     truss [-S] [-o file] -p pid
     truss [-S] [-o file] command [args]
The options are as follows:

     -S Do not display information about signals received by the process.
             (Normally, truss displays signal as well as system call events.)

     -o file
             Print the output to the specified file instead of standard error.

     -p pid Follow the process specified by pid instead of a new command.

     command [args]
             Execute command and trace the system calls of it. (The -p and
             command options are mutually exclusive.)

I´ve debugged postfix using GDB now. Here are the result:

GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
(no debugging symbols found)...
Attaching to program: /usr/local/libexec/postfix/smtpd, process 66487
Reading symbols from /usr/local/lib/libsasl2.so.2...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libpam.so.1...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols found)...
done.
Reading symbols from /usr/local/lib/libdb3.so.3...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libm.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libz.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpcre.so.0...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)...
done.
0x281ba1c0 in wait4 () from /usr/lib/libc.so.4
(gdb) Continuing.

Program received signal SIGBUS, Bus error.
0x280a6d11 in sasl_server_new () from /usr/local/lib/libsasl2.so.2
(gdb) #0 0x280a6d11 in sasl_server_new () from /usr/local/lib/libsasl2.so.2
#1 0x8051ea4 in smtpd_sasl_connect ()
#2 0x8051739 in smtpd_state_init ()
#3 0x804c322 in smtpd_service ()
#4 0x80524f1 in single_server_wakeup ()
#5 0x8052709 in single_server_accept_inet ()
#6 0x805f78a in event_loop ()
#7 0x8052e22 in single_server_main ()
#8 0x804c47c in smtp_quoted ()
#9 0x804aa02 in _start ()
(gdb)

maillog:

Sep 2 12:35:17 km1601 postfix/postfix-script: starting the Postfix mail system
Sep 2 12:35:17 km1601 postfix/master[66484]: daemon started -- version 2.1.41
Sep 2 12:35:25 km1601 postfix/smtpd[66487]: running:
PATH=/bin:/usr/bin:/usr/local/bin:/usr/local/sbin; export PATH; (echo cont; echo
where; sleep 8640000) | gdb /usr/local/libexec/postfix/smtpd 66487 2>&1
>/usr/local/etc/postfix/smtpd.66487.log & sleep 5
Sep 2 12:35:30 km1601 postfix/smtpd[66487]: warning: database
/usr/local/etc/postfix/aliases.db is older than source file
/usr/local/etc/postfix/aliases
Sep 2 12:37:42 km1601 postfix/postfix-script: stopping the Postfix mail system

Hope this will help.

Bummibaer








Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD