Opened 8 years ago

Closed 8 years ago

#11100 closed Bugs (fixed)

exec_file crashes in Visual Studio 2013 with Python 3.4.3

Reported by: Mikhail Matrosov <mikhail.matrosov@…> Owned by: Stefan Seefeld
Milestone: To Be Determined Component: python USE GITHUB
Version: Boost 1.57.0 Severity: Problem
Keywords: visual-studio Cc: mikhail.matrosov@…

Description

The following code crashes with "0xC0000005: Access violation writing location":

#include <boost/python.hpp>

using namespace boost::python;

int main(int argc, char** argv)
{
  Py_Initialize();

  object main = import("__main__");
  object ns = main.attr("__dict__");
  exec_file("action.py", ns, ns);

  return 0;
}

Compiler: Visual Studio 2013 Update 4 Python: v3.4.3

Change History (3)

comment:1 by Mikhail Matrosov <mikhail.matrosov@…>, 8 years ago

Cc: mikhail.matrosov@… added

Fixed in pull request n.15 on GitHub. Cannot attach a link :-/

comment:2 by Stefan Seefeld, 8 years ago

Owner: changed from Ralf W. Grosse-Kunstleve to Stefan Seefeld

comment:3 by Stefan Seefeld, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.