[Python-bugs-list] math.log(0) dumps core (PR#152)

cjc26@cornell.edu cjc26@cornell.edu
Tue, 7 Dec 1999 22:55:19 -0500 (EST)


Full_Name: Cliff Crawford
Version: 1.5.2
OS: FreeBSD 3.3-STABLE
Submission from: ith1-379.twcny.rr.com (24.24.11.121)


math.log(0) and math.log(0.0) both cause the interpreter to dump core.
Sample output:

bridget:~$ uname -a
FreeBSD bridget.mindriot.net 3.3-STABLE FreeBSD 3.3-STABLE #19: Fri Oct  8
20:01:29 EDT 1999    
root@tankgrrl.bridget.mindriot.net:/usr/src/sys/compile/CJC26  i386
bridget:~$ python
Python 1.5.2 (#25, Jun 21 1999, 18:19:49)  [GCC egcs-2.91.60 19981201
(egcs-1.1.1  on freebsd3
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import math
>>> math.log(0)
Floating point exception (core dumped)