A NOTE has been added to this issue. 
====================================================================== 
http://dbmail.org/mantis/view.php?id=930 
====================================================================== 
Reported By:                ealekseev
Assigned To:                paul
====================================================================== 
Project:                    DBMail
Issue ID:                   930
Category:                   Database layer
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     feedback
target:                      
====================================================================== 
Date Submitted:             03-Oct-11 15:52 CEST
Last Modified:              21-Oct-11 18:46 CEST
====================================================================== 
Summary:                    lmtp daemon crashes on specific message
Description: 
I notice, that my dbmail-lmtp crashes every time trying get one specific
message from exim. Error in log appears as follow:

Oct 03 17:38:25 ns1 dbmail-lmtpd[9970]: [0x210df50] Warning:[misc]
dm_get_hash_for_string(+2265): hash algorithm not supported. Using SHA1.
Oct 03 17:38:25 ns1 dbmail-lmtpd[9970]: [0x210df50] Error:[message]
_header_value_get_id(+1458): SQLException: ERROR:  invalid byte sequence
for encoding "UTF8": 0xfe

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

---------------------------------------------------------------------- 
 (0003279) paul (administrator) - 03-Oct-11 16:06
 http://dbmail.org/mantis/view.php?id=930#c3279 
---------------------------------------------------------------------- 
Please provide more details. 

Especially, the header involved is required for reproducing and fixing the
bug.

If you increase the log level it should be easy to filter the header
involved from the logs. Or you can attach the message-headers (not the
body) to this report, if that is possible. 

---------------------------------------------------------------------- 
 (0003280) ealekseev (reporter) - 03-Oct-11 18:06
 http://dbmail.org/mantis/view.php?id=930#c3280 
---------------------------------------------------------------------- 
Message headers and 511-level logs attached. 

---------------------------------------------------------------------- 
 (0003298) ealekseev (reporter) - 21-Oct-11 15:38
 http://dbmail.org/mantis/view.php?id=930#c3298 
---------------------------------------------------------------------- 
Is it any posibilities for dbmail-lmtpd not to crash? 

---------------------------------------------------------------------- 
 (0003300) paul (administrator) - 21-Oct-11 16:27
 http://dbmail.org/mantis/view.php?id=930#c3300 
---------------------------------------------------------------------- 
Looking at your logs I'd say dbmail-lmtpd doesn't crash. But the message
insertion does fail. I've contacted the gmime maintainer to see if he can
help. 

---------------------------------------------------------------------- 
 (0003301) ealekseev (reporter) - 21-Oct-11 17:57
 http://dbmail.org/mantis/view.php?id=930#c3301 
---------------------------------------------------------------------- 
I'm shure it's crashes =)

I add log from postgres and strace. In latter it's visible that after
error there is call to
tgkill(11808, 11808, SIGABRT)           = 0

11808 - it's PID of dbmail-lmtpd process at that time. 

---------------------------------------------------------------------- 
 (0003302) ealekseev (reporter) - 21-Oct-11 18:46
 http://dbmail.org/mantis/view.php?id=930#c3302 
---------------------------------------------------------------------- 
I double checked it. 
This is how lmtpd looks like inpstree -up

  |-dbmail-lmtpd(12187,dbmail)---{dbmail-lmtpd}(12200)

And this is from strace:

write(2, "dbmail-lmtpd: dbmail-message.c:1464: _header_value_get_id:
Assertion `*id' failed.\n", 83) = 83
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(12187, 12187, SIGABRT)           = 0
--- SIGABRT (Aborted) @ 0 (0) --- 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
03-Oct-11 15:52  ealekseev      New Issue                                    
03-Oct-11 16:06  paul           Note Added: 0003279                          
03-Oct-11 16:06  paul           Assigned To               => paul            
03-Oct-11 16:06  paul           Status                   new => feedback     
03-Oct-11 18:05  ealekseev      File Added: headers.txt                      
03-Oct-11 18:05  ealekseev      File Added: error_log.txt                    
03-Oct-11 18:06  ealekseev      Note Added: 0003280                          
21-Oct-11 15:38  ealekseev      Note Added: 0003298                          
21-Oct-11 16:27  paul           Note Added: 0003300                          
21-Oct-11 17:57  ealekseev      Note Added: 0003301                          
21-Oct-11 17:57  ealekseev      File Added: postgres.log                     
21-Oct-11 17:58  ealekseev      File Added: strace.log                       
21-Oct-11 18:46  ealekseev      Note Added: 0003302                          
======================================================================

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

Reply via email to