Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: dev

[DBMail 0000930]: lmtp daemon crashes on specific message

 

 

DBMail dev RSS feed   Index | Next | Previous | View Threaded


bugtrack at dbmail

Oct 21, 2011, 6:38 AM

Post #1 of 8 (451 views)
Permalink
[DBMail 0000930]: lmtp daemon crashes on specific message

A NOTE has been added to this issue.
======================================================================
http://www.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 15:38 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://www.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://www.dbmail.org/mantis/view.php?id=930#c3280
----------------------------------------------------------------------
Message headers and 511-level logs attached.

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

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
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev


bugtrack at dbmail

Oct 21, 2011, 7:27 AM

Post #2 of 8 (446 views)
Permalink
[DBMail 0000930]: lmtp daemon crashes on specific message [In reply to]

A NOTE has been added to this issue.
======================================================================
http://www.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 16:27 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://www.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://www.dbmail.org/mantis/view.php?id=930#c3280
----------------------------------------------------------------------
Message headers and 511-level logs attached.

----------------------------------------------------------------------
(0003298) ealekseev (reporter) - 21-Oct-11 15:38
http://www.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://www.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.

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
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev


bugtrack at dbmail

Oct 21, 2011, 8:57 AM

Post #3 of 8 (443 views)
Permalink
[DBMail 0000930]: lmtp daemon crashes on specific message [In reply to]

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 17:57 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.

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
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev


bugtrack at dbmail

Oct 21, 2011, 9:46 AM

Post #4 of 8 (445 views)
Permalink
[DBMail 0000930]: lmtp daemon crashes on specific message [In reply to]

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 [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev


bugtrack at dbmail

Oct 22, 2011, 1:08 AM

Post #5 of 8 (434 views)
Permalink
[DBMail 0000930]: lmtp daemon crashes on specific message [In reply to]

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: 22-Oct-11 10:08 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) ---

----------------------------------------------------------------------
(0003303) Marv-CZ (reporter) - 22-Oct-11 10:08
http://dbmail.org/mantis/view.php?id=930#c3303
----------------------------------------------------------------------
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

It's probably the same as BUG 805
http://dbmail.org/mantis/view.php?id=805

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
22-Oct-11 10:08 Marv-CZ Note Added: 0003303
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev


bugtrack at dbmail

Oct 22, 2011, 4:54 AM

Post #6 of 8 (435 views)
Permalink
[DBMail 0000930]: lmtp daemon crashes on specific message [In reply to]

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: 22-Oct-11 13:54 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) ---

----------------------------------------------------------------------
(0003303) Marv-CZ (reporter) - 22-Oct-11 10:08
http://dbmail.org/mantis/view.php?id=930#c3303
----------------------------------------------------------------------
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

It's probably the same as BUG 805
http://dbmail.org/mantis/view.php?id=805

----------------------------------------------------------------------
(0003304) paul (administrator) - 22-Oct-11 13:54
http://dbmail.org/mantis/view.php?id=930#c3304
----------------------------------------------------------------------
I've removed the assert, and skip the header that gmime can't handle.
Please try:
http://git.dbmail.eu/paul/dbmail/commit/?id=f9f332c7b917c6b0683b0d43a0f614d675181855


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
22-Oct-11 10:08 Marv-CZ Note Added: 0003303
22-Oct-11 13:54 paul Note Added: 0003304
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev


bugtrack at dbmail

Oct 22, 2011, 5:15 AM

Post #7 of 8 (439 views)
Permalink
[DBMail 0000930]: lmtp daemon crashes on specific message [In reply to]

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: 22-Oct-11 14:14 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) ---

----------------------------------------------------------------------
(0003303) Marv-CZ (reporter) - 22-Oct-11 10:08
http://dbmail.org/mantis/view.php?id=930#c3303
----------------------------------------------------------------------
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

It's probably the same as BUG 805
http://dbmail.org/mantis/view.php?id=805

----------------------------------------------------------------------
(0003304) paul (administrator) - 22-Oct-11 13:54
http://dbmail.org/mantis/view.php?id=930#c3304
----------------------------------------------------------------------
I've removed the assert, and skip the header that gmime can't handle.
Please try:
http://git.dbmail.eu/paul/dbmail/commit/?id=f9f332c7b917c6b0683b0d43a0f614d675181855


----------------------------------------------------------------------
(0003305) ealekseev (reporter) - 22-Oct-11 14:14
http://dbmail.org/mantis/view.php?id=930#c3305
----------------------------------------------------------------------
It's work. Message have been delivered, but without subject. It's better
than crashed lmtpd =)

I hope it will be possible to fix header handling in gmime.

Thank you.

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
22-Oct-11 10:08 Marv-CZ Note Added: 0003303
22-Oct-11 13:54 paul Note Added: 0003304
22-Oct-11 14:14 ealekseev Note Added: 0003305
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev


bugtrack at dbmail

Oct 27, 2011, 6:44 AM

Post #8 of 8 (395 views)
Permalink
[DBMail 0000930]: lmtp daemon crashes on specific message [In reply to]

The following issue has been RESOLVED.
======================================================================
http://www.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: resolved
target:
Resolution: fixed
Fixed in Version: 3.0.0-final
======================================================================
Date Submitted: 03-Oct-11 15:52 CEST
Last Modified: 27-Oct-11 15:44 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://www.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://www.dbmail.org/mantis/view.php?id=930#c3280
----------------------------------------------------------------------
Message headers and 511-level logs attached.

----------------------------------------------------------------------
(0003298) ealekseev (reporter) - 21-Oct-11 15:38
http://www.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://www.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://www.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://www.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) ---

----------------------------------------------------------------------
(0003303) Marv-CZ (reporter) - 22-Oct-11 10:08
http://www.dbmail.org/mantis/view.php?id=930#c3303
----------------------------------------------------------------------
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

It's probably the same as BUG 805
http://dbmail.org/mantis/view.php?id=805

----------------------------------------------------------------------
(0003304) paul (administrator) - 22-Oct-11 13:54
http://www.dbmail.org/mantis/view.php?id=930#c3304
----------------------------------------------------------------------
I've removed the assert, and skip the header that gmime can't handle.
Please try:
http://git.dbmail.eu/paul/dbmail/commit/?id=f9f332c7b917c6b0683b0d43a0f614d675181855


----------------------------------------------------------------------
(0003305) ealekseev (reporter) - 22-Oct-11 14:14
http://www.dbmail.org/mantis/view.php?id=930#c3305
----------------------------------------------------------------------
It's work. Message have been delivered, but without subject. It's better
than crashed lmtpd =)

I hope it will be possible to fix header handling in gmime.

Thank you.

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
22-Oct-11 10:08 Marv-CZ Note Added: 0003303
22-Oct-11 13:54 paul Note Added: 0003304
22-Oct-11 14:14 ealekseev Note Added: 0003305
27-Oct-11 15:44 paul Status feedback => resolved
27-Oct-11 15:44 paul Resolution open => fixed
27-Oct-11 15:44 paul Fixed in Version => 3.0.0-final
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

DBMail dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.