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.

Title: Pointer freed twice in Py_InitializeEx()
Type: Stage:
Components: None Versions:
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: athorp, georg.brandl, nnorwitz, sf-robot
Priority: normal Keywords:

Created on 2006-03-07 14:39 by athorp, last changed 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit
python-double-free.tar.gz athorp, 2006-03-07 14:39 Example code
Messages (5)
msg27692 - (view) Author: athorp (athorp) Date: 2006-03-07 14:39
saved_locale is freed twice in

Example code attached.
msg27693 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-03-08 08:14
Logged In: YES 

Your example is not very instructive. It only segfaults on
my box.

Can you tell where exactly the problem is, and how you would
solve it?
msg27694 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-03-08 08:16
Logged In: YES 

I don't see a problem with the code in SVN (either head or
2.4 branch).  When I run 2.5 (HEAD) code with your test (but
not debug malloc) under valgrind on amd64, it doesn't report
any problems.

Can you review the code in SVN to see if you think this is
still a problem.  If so, can you provide a patch that you
believe fixes this problem?
msg27695 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-03-08 08:19
Logged In: YES 

Also, what system are you running on?  Mine amd64 is Linux.
msg27696 - (view) Author: SourceForge Robot (sf-robot) Date: 2006-03-23 03:24
Logged In: YES 

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Date User Action Args
2022-04-11 14:56:15adminsetgithub: 42991
2006-03-07 14:39:40athorpcreate