Comment 2 for bug 1583237

Revision history for this message
Xavier Roche (roche) wrote :

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