[CRIU] Questions in CRIU restore mechanism.

Alexander Kartashov alekskartashov at parallels.com
Fri Mar 29 09:10:21 EDT 2013


On 03/29/2013 03:26 PM, Chanho Park wrote:
> Hi Alexander,
> Hmm, our platform/library/application may be compiled in thumb mode.
That's OK. The problem is that the parasite and restorer blobs
(pie/parasite.built-in.bin.o and pie/restorer.built-in.bin.o)
may be compiled in the Thumb mode that is unacceptable.

My gcc -v output is:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabi/4.6/lto-wrapper
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-11' 
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.6 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes 
--enable-gnu-unique-object --enable-plugin --enable-objc-gc 
--disable-sjlj-exceptions --with-arch=armv4t --with-float=soft 
--enable-checking=release --build=arm-linux-gnueabi 
--host=arm-linux-gnueabi --target=arm-linux-gnueabi
Thread model: posix
gcc version 4.6.3 (Debian 4.6.3-11)

My GCC compiles the parasite and restorer blobs in the ARM mode.
Please make sure that your GCC does the same.

> If a test program is compiled in thumb mode, the dump stage is always failed.
> Doesn't the CRIU support thumb mode?
> Do we need more patches?
I've never tested crtools with Thumb mode programs before.
nevertheless I've successfully dumped and restored the test program
compiled in the Thumb mode now. So the issue needs further
investigation.

Could you send me:
* the test program binary,
* the parasite and restorer blobs,
* the failed dump log.

-- 
Sincerely yours,
Alexander Kartashov

Intern
Core team

www.parallels.com

Skype: aleksandr.kartashov
Email: alekskartashov at parallels.com



More information about the CRIU mailing list