[CRIU] About ashmem and Deleted Pages

Pavel Emelyanov xemul at virtuozzo.com
Tue Mar 29 04:16:06 PDT 2016


On 03/29/2016 07:30 AM, Abdullah Yousafzai wrote:
> I am using CRIU on android and android. For a simple shell script/c program CRIU works fine but for application
> developed using android sdk/ndk (e.g. in application in APK format). CRIU fails and the failure seems to be due
> to ashmem because when I print the proc/pid/maps the entries belonging to ashmem) shows as deleted entries . and
> when CRIU iterate over those entries and try to fetch those vmas it stuck to the Bogus Mapping. Now this is code
> is the reason for going into this scenario in the proc_parse.c file:
> 
> if (is_anon_shmem_map(st_buf->st_dev)) {
> if (!(vma_area->e->flags & MAP_SHARED))
> 
> Now I want someone to guide what should I do to checkpoint the APK application.

Please, show the full dump.log and the contents of the /proc/pid/maps file you're talking about.

-- Pavel


More information about the CRIU mailing list