Public bug reported:

== Rationale ==
The last cherry-pick of python3 fixes from upstream contained a memory bug in 
the function converting python tuples to char**, this leads to completely wrong 
arguments being passed to the init process or the create script.
This problem has since been tracked down and fixed upstream, the solution here 
is to update our cherry-pick to match the current upstream state.

== Test case ==
 1) Run the following in a python3 shell:
>>> import lxc
>>> test = lxc.Container("test")
>>> test.create("ubuntu", {"arch": "i386", "release": "raring"})
 2) While create() is running, check: ps aux | grep raring
 3) Confirm that the arguments to lxc-ubuntu match: --arch i386 --release raring

The bug was leading to those arguments to look like "raring raring
--release raring"

== Regression potential ==
The updated C code has been upstream for a month now and used daily by several 
people and reviewed by several more so I'm very confident we won't see any 
regression in the python API with this cherry-pick.

** Affects: lxc (Ubuntu)
     Importance: High
     Assignee: Stéphane Graber (stgraber)
         Status: Triaged

** Affects: lxc (Ubuntu Raring)
     Importance: High
     Assignee: Stéphane Graber (stgraber)
         Status: Triaged

** Also affects: lxc (Ubuntu Raring)
   Importance: Undecided
       Status: New

** Changed in: lxc (Ubuntu)
       Status: New => Triaged

** Changed in: lxc (Ubuntu Raring)
       Status: New => Triaged

** Changed in: lxc (Ubuntu)
     Assignee: (unassigned) => Stéphane Graber (stgraber)

** Changed in: lxc (Ubuntu Raring)
     Assignee: (unassigned) => Stéphane Graber (stgraber)

** Changed in: lxc (Ubuntu)
   Importance: Undecided => High

** Changed in: lxc (Ubuntu Raring)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1177400

Title:
  Corruption in arguments of create and start (python3-lxc)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1177400/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to