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
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