This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Access violation in call to map
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jhylton Nosy List: glchapman, gvanrossum, jhylton, mwh
Priority: normal Keywords:

Created on 2001-04-08 19:35 by glchapman, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Messages (5)
msg4202 - (view) Author: Greg Chapman (glchapman) Date: 2001-04-08 19:35
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.
msg4203 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2001-04-08 20:25
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.
msg4204 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2001-04-08 20:38
Logged In: YES 
user_id=6656

Ooh, another one:

>>> dir(b=1,**{'b':1})
Segmentation fault (core dumped)

I'll update #414743 presently.
msg4205 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-04-10 19:58
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!)
msg4206 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-04-10 20:00
Logged In: YES 
user_id=6380

Assigned to Jeremy.
History
Date User Action Args
2022-04-10 16:03:56adminsetgithub: 34296
2001-04-08 19:35:38glchapmancreate