Another demonstration:

* This one does not work:

sudo lxc-attach --name utest_generic_tests -- /bin/bash -c "/usr/bin/python -c 
'from ctypes import *; memset(0,1,1)'"; echo $?
0

* This one works:

sudo lxc-attach --name utest_generic_tests -- /bin/bash -c "/usr/bin/python -c 
'from ctypes import *; memset(0,1,1)' 2>&2"; echo $?
/bin/bash: line 1:  2286 Segmentation fault      (core dumped) /usr/bin/python 
-c 'from ctypes import *; memset(0,1,1)' 2>&2
139

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

Title:
  lxc-attach strange tty behavior (kills command) when stderr is
  redirected to a file

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to