Bug 82296 - MainMan issues ValueError: math domain error in cronjob
MainMan issues ValueError: math domain error in cronjob
Product: Red Hat Linux
Classification: Retired
Component: mailman (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: John Dennis
Depends On:
  Show dependency treegraph
Reported: 2003-01-20 21:33 EST by Mark Cooke
Modified: 2007-04-18 12:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-02-14 15:59:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mark Cooke 2003-01-20 21:33:31 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202

Description of problem:
I have set up mailman for a small low volume mailing list, the list is working
fine (from what I can see), but every night I get the following in my crontab
for mailman:

Traceback (most recent call last):
  File "/var/mailman/cron/gate_news", line 40, in ?
    from Mailman import MailList
  File "/var/mailman/Mailman/MailList.py", line 36, in ?
    from Mailman import Utils
  File "/var/mailman/Mailman/Utils.py", line 32, in ?
    import random
  File "/usr/lib/python2.2/random.py", line 91, in ?
    NV_MAGICCONST = 4 * _exp(-0.5)/_sqrt(2.0)
ValueError: math domain error

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. let default cronjob frun for mailman

Actual Results:  see above

Expected Results:  Don't know, it has always done this (sorry)

Additional info:
Comment 1 Mark Cooke 2003-01-20 21:34:06 EST
This is also present in the cron job as well:

Traceback (most recent call last):
  File "/var/mailman/cron/qrunner", line 84, in ?
    from Mailman import Utils
  File "/var/mailman/Mailman/Utils.py", line 32, in ?
    import random
  File "/usr/lib/python2.2/random.py", line 91, in ?
    NV_MAGICCONST = 4 * _exp(-0.5)/_sqrt(2.0)
ValueError: math domain error
Comment 2 John Dennis 2003-01-27 16:55:30 EST
This is a bit odd, I don't think this has anything to do with mailman per se.
The problem would appear to be in your python installation. The line of code
producing the error in random.py looks just fine, it shouldn't be generating an
error. I'm running python 2.2.1. I don't get this error and so far to the best
of my knowledge no one has reported a similar problem in the mailmain
discussions lists.

As a sanity check please try the following, start an interactive python session
by typing python at the command line, then type this:

import random

do you get any errors?

then type this:


do you get something close in value to this?


Comment 3 Mark Cooke 2003-01-28 13:23:32 EST
typing the the above did not produce any errors at all.

I have since upgraded to mailman-2.1 (updated the official redhat rpm) and that
still producs the error on 
'/var/mailman/cron/gate_news', but qrunnner now works perfectly.

I removed all traces of the updated mailman (v 2.1) and reinstalled the supplied
mailman from RH 8 and that still produces the same two errors.

Comment 4 Florian La Roche 2004-06-06 05:56:35 EDT
Is this still happening with a current mailman package?


Florian La Roche
Comment 5 John Dennis 2005-02-14 15:59:50 EST
Closing this out because no one else has reported the problem and I
can't reproduce it.

Note You need to log in before you can comment on or make changes to this bug.