Broken exec and eval in Boost.Python 1.65.1

Bug #1833276 reported by Vaclav Blazek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
boost1.65.1 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Boost.Python v. 1.65.0 introduced overloaded functions eval and exec for const char* while the original (str) functions call these overloads.

However, global and local context is not forwarded from str version to const char* and executed Python code sees empty global context making it unable to use any built-in Python function.

The erroneous upstream code was NOT fixed in 1.65.1, used in Ubuntu 18.04, making any software depending on Boost.Python's exec/eval broken on 18.04.

Upstream fixed the code in the next release (1.66.0):
https://github.com/boostorg/python/commit/b09d80a93e299bdaba29b652010b668b87f1306c

Would it be possible to incorporate this patch in the 18.04 LTS?

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libboost-python1.65.1 1.65.1+dfsg-0ubuntu5
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
Date: Tue Jun 18 16:12:27 2019
Dependencies:
 gcc-8-base 8.3.0-6ubuntu1~18.04.1
 libc6 2.27-3ubuntu1
 libgcc1 1:8.3.0-6ubuntu1~18.04.1
 libstdc++6 8.3.0-6ubuntu1~18.04.1
SourcePackage: boost1.65.1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.