Corruption in arguments of create and start (python3-lxc)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
High
|
Stéphane Graber | ||
Raring |
Won't Fix
|
High
|
Stéphane Graber |
Bug Description
== 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.create(
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.
Changed in lxc (Ubuntu): | |
status: | New → Triaged |
Changed in lxc (Ubuntu Raring): | |
status: | New → Triaged |
Changed in lxc (Ubuntu): | |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in lxc (Ubuntu Raring): | |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in lxc (Ubuntu): | |
importance: | Undecided → High |
Changed in lxc (Ubuntu Raring): | |
importance: | Undecided → High |
This bug was fixed in the package lxc - 0.9.0-0ubuntu4
---------------
lxc (0.9.0-0ubuntu4) saucy; urgency=low
* Fix lxc-list crashing when passed --nesting with nested containers.
(LP: #1177408)
* Fix lxc-ls to show nested containers when using alternate lxcpath.
(LP: #1177412)
* Fix python3 API bug leading to parameter corruption in create and start.
(LP: #1177400)
-- Stephane Graber <email address hidden> Tue, 07 May 2013 10:48:40 -0400