[Python-bugs-list] [ python-Bugs-757520 ] irreproducable segfault on int(1e100)

SourceForge.net noreply@sourceforge.net
Sat, 21 Jun 2003 06:44:02 -0700


Bugs item #757520, was opened at 2003-06-19 23:19
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=757520&group_id=5470

Category: Python Interpreter Core
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Gerrit Holl (gerrit)
Assigned to: Nobody/Anonymous (nobody)
Summary: irreproducable segfault on int(1e100)

Initial Comment:
Segmentation Fault:

 20 >>> i
1e+100
 21 >>> int(i)Segmentation fault
23:16:12:2:gerrit@stopcontact:~/downl$ python
Python 2.3b1+ (#3, Jun 19 2003, 10:34:37)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
  0 >>> i=1e100
  1 >>> int(i)Segmentation fault
23:16:21:2:gerrit@stopcontact:~/downl$ python
Python 2.3b1+ (#3, Jun 19 2003, 10:34:37)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
  0 >>> i=1e100
  1 >>> int(i)
10000000000000000159028911097599180468360808563945281389781327557747838772170381060813469985856815104L

I'm unable to reproduce this (sorry). I noticed before
that sometimes, the interactive Python interpreter
segfaults irreproducable: only now, it was two times in
succession but not more than two times. I never
encounered this problem while executing Python programs
from scripts.


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-06-21 15:44

Message:
Logged In: YES 
user_id=21627

I suspect this is a bug in the C library. To find out for
sure, one would have to study the relevant assembler code in
glibc in detail.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=757520&group_id=5470