The following issue has been SUBMITTED. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=885 
====================================================================== 
Reported By:                vampyre
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   885
Category:                   Database layer
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     new
target:                      
====================================================================== 
Date Submitted:             14-Mar-11 15:22 CET
Last Modified:              14-Mar-11 15:22 CET
====================================================================== 
Summary:                    dbmail fail in core in case if no db connection
available on start
Description: 
I have faced this issue with MySQL. The issue is rather trivial but still,
if there is no connection to DB, we get core dump in dm_db.c, db_connect:
....
ConnectionPool_start(pool);
TRACE(TRACE_DATABASE, "database connection pool started with [%d]
connections, max [%d]", ConnectionPool_getInitialConnections(pool),
ConnectionPool_getMaxConnections(pool));
....

This is due to ConnectionPool_setAbortHandler is not set for libzdb so
abort() is triggered. I think it is better just to exit with some nonzero
exit status.


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
14-Mar-11 15:22  vampyre        New Issue                                    
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

Reply via email to