Queue file content crashes qrunner

Bug #265463 reported by Bug Importer
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Medium
Unassigned

Bug Description

It appears that certain content contained within
mailman queue files can cause the queue runner to
crash, causing all mailing lists on the machine to
appear dead.

The relevent .msg and .db files can be found on:

http://lists.arm.linux.org.uk/2ae298a1e86267dfde7706c85fb7275f78dbf6df.msg
http://lists.arm.linux.org.uk/2ae298a1e86267dfde7706c85fb7275f78dbf6df.db

After these two files are removed from the mailman
queue directory, mailman operates as normal.

The following is an extract from the mailman error log:

Apr 07 12:11:00 2001 qrunner(30579): Traceback
(innermost last):
Apr 07 12:11:00 2001 qrunner(30579): File
"/home/mailman/cron/qrunner", line 283, in ?
Apr 07 12:11:00 2001 qrunner(30579): kids =
main(lock)
Apr 07 12:11:00 2001 qrunner(30579): File
"/home/mailman/cron/qrunner", line 252, in main
Apr 07 12:11:00 2001 qrunner(30579): keepqueued =
dispose_message(mlist, msg, msgdata)
Apr 07 12:11:00 2001 qrunner(30579): File
"/home/mailman/cron/qrunner", line 121, in
dispose_message
Apr 07 12:11:00 2001 qrunner(30579): if
BouncerAPI.ScanMessages(mlist, mimemsg):
Apr 07 12:11:00 2001 qrunner(30579): File
"/home/mailman/Mailman/Bouncers/BouncerAPI.py", line
59, in ScanMessages
Apr 07 12:11:00 2001 qrunner(30579): addrs =
func(msg)
Apr 07 12:11:00 2001 qrunner(30579): File
"/home/mailman/Mailman/Bouncers/DSN.py", line 57, in
process
Apr 07 12:11:00 2001 qrunner(30579): more =
mfile.next()
Apr 07 12:11:00 2001 qrunner(30579): File
"/usr/lib/python1.5/multifile.py", line 121, in next
Apr 07 12:11:00 2001 qrunner(30579): while
self.readline(): pass
Apr 07 12:11:00 2001 qrunner(30579): File
"/usr/lib/python1.5/multifile.py", line 93, in readline
Apr 07 12:11:00 2001 qrunner(30579): if marker ==
self.section_divider(sep):
Apr 07 12:11:00 2001 qrunner(30579): File
"/usr/lib/python1.5/multifile.py", line 157, in
section_divider
Apr 07 12:11:00 2001 qrunner(30579): return "--" +
str
Apr 07 12:11:00 2001 qrunner(30579): TypeError :
illegal argument type for built-in operation

[http://sourceforge.net/tracker/index.php?func=detail&aid=414502&group_id=103&atid=100103]

Revision history for this message
Bug Importer (bug-importer) wrote :

Has there been any progress on this bug? Does anyone look
at these bug reports? 8(

Thanks.

Revision history for this message
Bug Importer (bug-importer) wrote :

A similar problem just caused our mailman queue to lock up.
For now, I just disabled this module!

File "/usr/local/mailman/Mailman/Bouncers/DSN.py", line 46,
in process
      if string.lower(msg.gettype()) <> 'multipart/report'
or \
TypeError : read-only character buffer, None

Revision history for this message
Barry Warsaw (barry) wrote :

The referenced message is ill formatted. It is a MIME
multipart with no boundary parameter in its Content-Type:
header. There's little Mailman can do about this message,
but it also shouldn't crash. Attached is a fix.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.