[Bug 1871725] Re: python3-pykdl: PyKDL crashes Python 3 interpretter (SIGABRT) if any API accepting a str is used

Brian Murray 1871725 at bugs.launchpad.net
Tue Jul 21 20:18:35 UTC 2020


Hello Shane, or anyone else affected,

Accepted orocos-kdl into focal-proposed. The package will build now and
be available at https://launchpad.net/ubuntu/+source/orocos-
kdl/1.4.0-7ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: orocos-kdl (Ubuntu Focal)
       Status: In Progress => Fix Committed

** Tags added: verification-needed verification-needed-focal

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1871725

Title:
  python3-pykdl: PyKDL crashes Python 3 interpretter (SIGABRT) if any
  API accepting a str is used

Status in orocos-kdl package in Ubuntu:
  Fix Released
Status in orocos-kdl source package in Focal:
  Fix Committed
Status in orocos-kdl source package in Groovy:
  Fix Released
Status in orocos-kdl package in Debian:
  Fix Released

Bug description:
  [Impact]

   * The package python3-pykdl in focal crashes the Python 3 interpreter
  if any API accepting a str is used.

   * python3-pykdl is used in the ROS robot control software
  (https://ros.org) based on Ubuntu.

   * The patch is taken from upstream and uses PyUnicode_AsUTF8, as
  provided by Python 3.

  [Test Case]

  $ python3 -c "import PyKDL; PyKDL.Tree('foobar')"
  python3: /build/orocos-kdl-oHbJfL/orocos-kdl-1.4.0/python_orocos_kdl/PyKDL/std_string.sip:52: int convertTo_std_string(PyObject*, void**, int*, PyObject*): Assertion `PyUnicode_Check(s)' failed.
  Aborted (core dumped)
  $ echo $?
  134

  [Regression Potential]

   * The patch is part of upstream git since 2018 [1], Debian bullseye
  [2] , Ubuntu groovy and has been accepted into Debian buster [3].

   * I don't see a regression potential as is basically the utf-8
  transition of Python 3.

  [1] https://github.com/orocos/orocos_kinematics_dynamics/commit/ee996a4442339010571cadd976fc6ed17c98dfab
  [2] https://tracker.debian.org/news/1117004/accepted-orocos-kdl-140-9-source-into-unstable/
  [3] https://tracker.debian.org/news/1119612/accepted-orocos-kdl-140-7deb10u1-source-into-proposed-updates-stable-new-proposed-updates/

  [Original Description]

  Dear Maintainer,

  The package python3-pykdl crashes the Python 3 interpreter if any API
  accepting a str is used. I've tested this using the latest Focal packages.

  Minimal reproducible example:

  $ python3 -c "import PyKDL; PyKDL.Tree('foobar')"
  python3: /build/orocos-kdl-mPkyII/orocos-kdl-1.4.0/python_orocos_kdl/PyKDL/std_string.sip:52: int convertTo_std_string(PyObject*, void**, int*, PyObject*): Assertion `PyUnicode_Check(s)' failed.
  Aborted (core dumped)
  $ echo $?
  134

  There is a patch fixing this issue in this upstream Debian Buster bug:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956254

  Would you be willing to apply that patch in Ubuntu Focal?

  Cheers,
  Shane

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/orocos-kdl/+bug/1871725/+subscriptions



More information about the Ubuntu-sponsors mailing list