[CRIU] Questions in CRIU restore mechanism.

Chanho Park chanho61.park at samsusng.com
Sun Mar 31 00:32:09 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.

My GCC compiler(gcc-arm-linux-gnueabihf-4.7) always compiled with -with-mode=thumb.
So I've changed my gcc compiler to gcc-arm-linux-gnueabi(4.6.3).
Since then, I've successfully dumped the test program even if thumb mode.
Thanks for pointing out gcc options :)

I tried to dump our simple 'clock' application.
I've got below error during the dump process.
How do we deal with the process which has shmem?

(00.042692) Found anon-shmem piggie at 4
(00.044305) Error (proc_parse.c:310): Can't handle non-regular mapping on 3850's map 2920849408
(00.044417) Error (cr-dump.c:1367): Collect mappings (pid: 3850) failed with -1

Best regards,
Chanho Park




More information about the CRIU mailing list