Paul, 


Please specify exactly what tests you want performed with gdb - happy to 
help... 
Where would you like the backtrace from? 


Remember, it's Solaris - we also have dtrace at our disposal. 


Here's the output of a run command from gdb: 


(gdb) file /usr/local/sbin/dbmail-lmtpd 
Reading symbols from /usr/local/sbin/dbmail-lmtpd...done. 
(gdb) run 
Starting program: /usr/local/sbin/dbmail-lmtpd file dbmail-lmtpd 
[New LWP 1] 
[New LWP 2] 
[LWP 2 exited] 
[New LWP 2] 
warning: Temporarily disabling breakpoints for unloaded shared library 
"/usr/lib/ld.so.1" 
warning: Lowest section in /lib/libpthread.so.1 is .dynamic at 00000074 
warning: Lowest section in /lib/libthread.so.1 is .dynamic at 00000074 
warning: Lowest section in /lib/libdl.so.1 is .hash at 000000b4 
/usr/local/sbin/dbmail-lmtpd: unrecognized options: file dbmail-lmtpd 


*** dbmail-lmtpd *** 
This daemon provides Local Mail Transport Protocol services. 
See the man page for more info. 


Common options for all DBMail daemons: 
(...) 


Program exited with code 01. 
-------------------- 


Also, when run non-daemonized, it simply outputs the same log output (sent 
earlier), then quits back to shell. No message of segfault. And it's not 
visible in the process list at that point, either. 


Pls tell me next steps. Lou 

----- Original Message ----- 
From: "Paul J Stevens" <[email protected]> 
To: "DBMail mailinglist" <[email protected]> 
Sent: Sunday, August 1, 2010 5:38:17 PM 
Subject: Re: [Dbmail] DBMail daemons segfaulting 

On 08/01/2010 08:12 PM, Lou Picciano wrote: 
.... 

> As to version we are building: 
> 
> # git branch -v 
> * dbmail_2_2 793da8e massive speedup in imap-append 

Ok. Just fine and dandy. 



> Here is the entire output of the dbmail-lmtpd command, including segfault: 
> 
> # dbmail-lmtpd -D 

> pool...c,statefile_create(+666): Creating scoreboard at 
> [/var/run/dbmail-lmtpd.state]. 
> Segmentation Fault (core dumped) 

Not good! Is that what happens when you run the normal daemonizing mode? 

> 
> This run does write the following to /var/log/dbmail.err (but we have 
> /_never_/ seen any output to dbmail.log): 
> 
> Aug 01 12:01:46 leeloo [3170]: Debug:[server] 
> server.c,server_daemonize(+238): sid: [3169] 
> Aug 01 12:01:46 leeloo [3170]: Debug:[server] 
> pool.c,statefile_create(+666): Creating scoreboard at 
> [/var/run/dbmail-lmtpd.state]. 
> 
> We do have ALL of the debuggers on in the dbmail and ALL of the daemon 
> sections of the dbmail.conf file. 
> 
> TRACE_LEVEL = 5 
> TRACE_STDERR = 5 
> TRACE_SYSLOG = 5 

All generate the same output. The first is deprecated, equals the third 
option. The second appends the log lines to the error log, the third 
option sends it to the syslog facility. 

Can you run the command through gdb? (That's what the -D switch is for). 
A backtrace would really be helpful. 


-- 
________________________________________________________________ 
Paul Stevens paul at nfg.nl 
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 
The Netherlands________________________________http://www.nfg.nl 
_______________________________________________ 
DBmail mailing list 
[email protected] 
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail 
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to