Stack dump trying to "Approve" postings

We are running mailman-2.1.12-18.el6.x86_64, python 2.6.6, RHEL6. Sometimes when a moderator tries to approve postings, he gets this error: "Bug in Mailman version 2.1.12 We're sorry, we hit a bug! Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs." I have checked the traceback and found the following. What does it mean, and how do we fix it? Dec 03 09:48:57 2013 admin(20706): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ admin(20706): [----- Mailman Version: 2.1.12 -----] admin(20706): [----- Traceback ------] admin(20706): Traceback (most recent call last): admin(20706): File "/usr/lib/mailman/scripts/driver", line 112, in run_main admin(20706): main() admin(20706): File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 165, in main admin(20706): process_form(mlist, doc, cgidata) admin(20706): File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 716, in process_form admin(20706): forward, forwardaddr) admin(20706): File "/usr/lib/mailman/Mailman/ListAdmin.py", line 167, in HandleRequest admin(20706): forward, addr) admin(20706): File "/usr/lib/mailman/Mailman/ListAdmin.py", line 254, in __handlepost admin(20706): g(msg, 1) admin(20706): AttributeError: Generator instance has no __call__ method admin(20706): [----- Python Information -----] admin(20706): sys.version = 2.6.6 (r266:84292, May 27 2013, 05:35:12) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] admin(20706): sys.executable = /usr/bin/python admin(20706): sys.prefix = /usr admin(20706): sys.exec_prefix = /usr admin(20706): sys.path = /usr admin(20706): sys.platform = linux2 admin(20706): [----- Environment Variables -----] admin(20706): HTTP_COOKIE: grayhive+admin=<snip> admin(20706): SERVER_SOFTWARE: Apache/2.2.15 (Red Hat) admin(20706): SCRIPT_NAME: /mailman/admindb admin(20706): SERVER_SIGNATURE: <address>Apache/2.2.15 (Red Hat) Server at email.ornl.gov Port 443</address> admin(20706): admin(20706): REQUEST_METHOD: POST admin(20706): PATH_INFO: /grayhive admin(20706): HTTP_ORIGIN: https://email.ornl.gov admin(20706): SERVER_PROTOCOL: HTTP/1.1 admin(20706): QUERY_STRING: admin(20706): SSL_TLS_SNI: email.ornl.gov admin(20706): CONTENT_LENGTH: 225 admin(20706): HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1 admin(20706): HTTP_CONNECTION: keep-alive admin(20706): HTTP_REFERER: https://email.ornl.gov/mailman/admindb/grayhive admin(20706): SERVER_NAME: email.ornl.gov admin(20706): REMOTE_ADDR: 160.91.240.104 admin(20706): PATH_TRANSLATED: /var/www/html/grayhive admin(20706): SERVER_PORT: 443 admin(20706): SERVER_ADDR: 160.91.4.92 admin(20706): DOCUMENT_ROOT: /var/www/html admin(20706): PYTHONPATH: /usr/lib/mailman admin(20706): SCRIPT_FILENAME: /usr/lib/mailman/cgi-bin/admindb admin(20706): SERVER_ADMIN: root@localhost admin(20706): HTTP_DNT: 1 admin(20706): HTTP_HOST: email.ornl.gov admin(20706): HTTPS: on admin(20706): REQUEST_URI: /mailman/admindb/grayhive admin(20706): HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 admin(20706): GATEWAY_INTERFACE: CGI/1.1 admin(20706): REMOTE_PORT: 52988 admin(20706): HTTP_ACCEPT_LANGUAGE: en-us admin(20706): CONTENT_TYPE: application/x-www-form-urlencoded admin(20706): HTTP_ACCEPT_ENCODING: gzip, deflate

On 12/03/2013 10:23 AM, Rosenbaum, Larry M. wrote:
...
Mailman 2.1.12 is not compatible with Python 2.6+. This was fixed in 2.1.13. This particular issue was fixed by this patch: === modified file 'Mailman/ListAdmin.py' --- Mailman/ListAdmin.py 2008-09-21 18:59:44 +0000 +++ Mailman/ListAdmin.py 2009-08-01 00:40:36 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2008 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2009 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -202,7 +202,7 @@ cPickle.dump(msg, fp, 1) else: g = Generator(fp) - g(msg, 1) + g.flatten(msg, 1) fp.flush() os.fsync(fp.fileno()) finally: @@ -251,7 +251,7 @@ outfp = open(outpath, 'w') try: g = Generator(outfp) - g(msg, 1) + g.flatten(msg, 1) finally: outfp.close() # Now handle updates to the database If RedHat EL6 is packaging Mailman 2.1.12 with Python 2.6.6, this is a RedHat issue. See the FAQ at <http://wiki.list.org/x/OIDD>. -- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 12/03/2013 10:23 AM, Rosenbaum, Larry M. wrote:
...
Mailman 2.1.12 is not compatible with Python 2.6+. This was fixed in 2.1.13. This particular issue was fixed by this patch: === modified file 'Mailman/ListAdmin.py' --- Mailman/ListAdmin.py 2008-09-21 18:59:44 +0000 +++ Mailman/ListAdmin.py 2009-08-01 00:40:36 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2008 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2009 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -202,7 +202,7 @@ cPickle.dump(msg, fp, 1) else: g = Generator(fp) - g(msg, 1) + g.flatten(msg, 1) fp.flush() os.fsync(fp.fileno()) finally: @@ -251,7 +251,7 @@ outfp = open(outpath, 'w') try: g = Generator(outfp) - g(msg, 1) + g.flatten(msg, 1) finally: outfp.close() # Now handle updates to the database If RedHat EL6 is packaging Mailman 2.1.12 with Python 2.6.6, this is a RedHat issue. See the FAQ at <http://wiki.list.org/x/OIDD>. -- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Rosenbaum, Larry M.