So to get a ktrace on FreeBSD 5.3 I did:
ps ax | grep xinet
Grabbe the pid for xinetd and then did:
ktrace -idp <thatpid>
After I finished my debug session, turned off ktrace:
ktrace -C
Then kdump to see the goodies:
15645 bincimapd GIO fd 5 wrote 94 bytes
"<30>Feb 2 08:18:19 bincimapd[15645]: when entering depot "Maildir": N\
o such file or directory"
DOH! That was easy. Created a Maildir for that user and everything looks good.
Thanks for the ktrace idea. Never done that before.
-Bob
Peter Stuge wrote:
On Wed, Feb 02, 2005 at 12:15:54AM -0800, Bob Van Zant wrote:
a001 login bvantest password
* BYE The server died unexpectedly. Please contact your system administrator for more information.
[..]
How can I tell what exactly "unexpectedly" is? The system administrator is stumped ;-) Unfortunately the bincimap log has absolutely nothing useful in it and neither does auth.log.
Binc 1.2 lacks a bit with regard to logging.
The most informative way to debug this is to attach to bincimap-up or tcpserver with ktrace, although I can't tell you the exact syntax to make ktrace follow fork()s. Then try to login. After you get the BYE message, stop ktrace and run kdump, which will show you all the system function calls made while ktrace was running. Towards the end there should be something going wrong, you can send that output to the list if you like us to have a look at it too.
//Peter
