[Bug 1196047] [NEW] PyIter_Check macros is not working in applications that embed python

ZyX kp-pav at yandex.ru
Sat Jun 29 14:58:19 UTC 2013


Public bug reported:

When trying to use PyIter_Check macros in applications that embed python
interpreter (like vim) it always evaluates to TRUE because
_PyObject_NextNotImplemented function has different address seen in vim
C functions and python library. As address of this function is assigned
always in C library code and checked in vim check is always TRUE. More
details are here:
https://groups.google.com/forum/?fromgroups=#!searchin/vim_dev/tests/vim_dev/CEaL812aLNI/aSuZ0Jin8BQJ.
Problem was tracked down to the presence of “-Bsymbolic-functions”
linking flag.

Checked with manually unpacked libpython2.7_2.7.3-5ubuntu4_amd64.deb on
Gentoo host. In the referenced topic same problem is reported for
“Ubuntu 12.10 with Python 2.7.3” (Bram Moolenaar) and “Ubuntu 13.04”
(Yukihiro Nakadaira).

** Affects: python2.7 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1196047

Title:
  PyIter_Check macros is not working in applications that embed python

Status in “python2.7” package in Ubuntu:
  New

Bug description:
  When trying to use PyIter_Check macros in applications that embed
  python interpreter (like vim) it always evaluates to TRUE because
  _PyObject_NextNotImplemented function has different address seen in
  vim C functions and python library. As address of this function is
  assigned always in C library code and checked in vim check is always
  TRUE. More details are here:
  https://groups.google.com/forum/?fromgroups=#!searchin/vim_dev/tests/vim_dev/CEaL812aLNI/aSuZ0Jin8BQJ.
  Problem was tracked down to the presence of “-Bsymbolic-functions”
  linking flag.

  Checked with manually unpacked libpython2.7_2.7.3-5ubuntu4_amd64.deb
  on Gentoo host. In the referenced topic same problem is reported for
  “Ubuntu 12.10 with Python 2.7.3” (Bram Moolenaar) and “Ubuntu 13.04”
  (Yukihiro Nakadaira).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1196047/+subscriptions




More information about the foundations-bugs mailing list