[Python-bugs-list] [ python-Bugs-414743 ] Access violation in call to map

noreply@sourceforge.net noreply@sourceforge.net
Sun, 08 Apr 2001 13:25:28 -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: 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