[Python-bugs-list] [ python-Bugs-414743 ] Access violation in call to map
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 10 Apr 2001 12:58:23 -0700
Bugs item #414743, was updated on 2001-04-08 12:35
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=414743&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Priority: 5
Submitted By: Greg Chapman (glchapman)
Assigned to: Nobody/Anonymous (nobody)
Summary: Access violation in call to map
Initial Comment:
This call:
map(None, *None)
results in an access violation (read of NULL pointer)
under Python 2.1b2 (Win32 binaries downloaded from
Sourceforge). OS in Win2000.
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-04-10 12:58
Message:
Logged In: YES
user_id=6380
Actually, the patch is #414750.
(Now you can search by patch/bug ID in the SF search box!
Hurray!)
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2001-04-08 13:38
Message:
Logged In: YES
user_id=6656
Ooh, another one:
>>> dir(b=1,**{'b':1})
Segmentation fault (core dumped)
I'll update #414743 presently.
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2001-04-08 13:25
Message:
Logged In: YES
user_id=6656
Eek!
>>> None(*None)
Segmentation fault (core dumped)
This is Ping's fault. In ext_do_call the code that tries to
work out the function name assumes that func is a
PyFunctionObject, where in fact it can be anything at all,
because this is called before the check to see whether we
really have a callable! Oops.
Anyway, look at patch #414743 for my attempted fix.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=414743&group_id=5470