[CRIU] criu check --extra output and dump failure

Dmitry Safonov 0x7f454c46 at gmail.com
Thu Apr 20 05:00:06 PDT 2017


2017-04-20 11:08 GMT+03:00 Brinkmann, Harald
<Harald.Brinkmann at bst-international.com>:
>
> Hi Dmitry,
>
> On Wed, 2017-04-19 at 22:48 +0300, Dmitry Safonov wrote:
>> 2017-04-19 15:26 GMT+03:00 Brinkmann, Harald
>> <Harald.Brinkmann at bst-international.com>:
>> > the good news is that I made it compile again.
>> >
>> > About the file Documentation/HOWTO.cross-compile:
>> >
>> > The patch
>> > http://16918.selcdn.ru/crtools/aarch64/0001-protobuf-added-the-support-for-the-acrchitecture-AAr.patch does not seem to exist any more.
>> >
>> > In your configuration you --disable-shared, but in at least one place I
>> > needed a shared protobuf library for something else. Might that be a
>> > problem?
>> >
>> > In environments that take care of cross compilations like ptxdist, the
>> > pkg-config magic is not necessary and actually makes the compilation
>> > fail.
>>
>> Yep, you're right.
>> So, this file was written in 2013, last updated in 14 - mind to update
>> with what will work for you? (with patches in criu-ml)
>
> Well, I would, except that I have no idea whether that patch is still
> needed or useful or has just gone somewhere else. I have no idea whether
> the --disable-shared is needed to make criu work or just some default.
> But I can add my ptxdist configuration once that works.
>
>> > The bad news is that I still cannot successfully run that "Simple
>> > Loop"-example, although the crash looks different:
>> >
>> >
>> > root:~ setsid ./test.sh  < /dev/null &> test.log &
>> > root:~ ps -C test.sh
>> >   PID TTY          TIME CMD
>> >   589 ?        00:00:00 test.sh
>> > [1]+  Done                       setsid ./test.sh 0</dev/null 1>&test.log
>> > root:~ echo 1 > /proc/sys
>> > sys/           sysrq-trigger  sysvipc/
>> > root:~ criu dump -t 589 -vvv -o dump.log && echo OK
>> > root:~ more dump.log
>> > (00.001943) Version: 2.12 (gitid 0)
>> > (00.002070) Probing sock diag modules
>> > (00.002361) Done probing
>> > (00.066365) Error (criu/util.c:670): exited, status=3
>> > (00.099922) Error (criu/util.c:670): exited, status=3
>> > (00.100255) ========================================
>> > (00.100297) Dumping processes (pid: 589)
>> > (00.100310) ========================================
>> > (00.100340) Running pre-dump scripts
>> > (00.102395) Pagemap is fully functional
>> > (00.102674) Found anon-shmem device at 5
>> > (00.102740) Reset 736's dirty tracking
>> > (00.102909)  ... done
>> > (00.103073) Dirty tracking support is OFF
>> > (00.103421) Found task size of 7f000000
>> > (00.146119) Adjust mmap_min_addr 0x8000 -> 0x10000
>> > (00.146186) Found mmap_min_addr 0x10000
>> > (00.146203) irmap: Searching irmap cache in work dir
>> > (00.146827) No irmap-cache image
>> > (00.146865) irmap: Searching irmap cache in parent
>> > (00.147306) irmap: No irmap cache
>> > (00.147374) cg-prop: Parsing controller "cpu"
>> > (00.147398) cg-prop:    Strategy "replace"
>> > (00.147416) cg-prop:    Property "cpu.shares"
>> > (00.147430) cg-prop:    Property "cpu.cfs_period_us"
>> > (00.147443) cg-prop:    Property "cpu.cfs_quota_us"
>> > (00.147455) cg-prop:    Property "cpu.rt_period_us"
>> > (00.147469) cg-prop:    Property "cpu.rt_runtime_us"
>> > (00.147490) cg-prop: Parsing controller "memory"
>> > (00.147511) cg-prop:    Strategy "replace"
>> > (00.147528) cg-prop:    Property "memory.limit_in_bytes"
>> > (00.147541) cg-prop:    Property "memory.memsw.limit_in_bytes"
>> > (00.147553) cg-prop:    Property "memory.swappiness"
>> > (00.147566) cg-prop:    Property "memory.soft_limit_in_bytes"
>> > (00.147579) cg-prop:    Property "memory.move_charge_at_immigrate"
>> > (00.147593) cg-prop:    Property "memory.oom_control"
>> > (00.147605) cg-prop:    Property "memory.use_hierarchy"
>> > (00.147617) cg-prop:    Property "memory.kmem.limit_in_bytes"
>> > (00.147629) cg-prop:    Property "memory.kmem.tcp.limit_in_bytes"
>> > (00.147641) cg-prop: Parsing controller "cpuset"
>> > (00.147656) cg-prop:    Strategy "replace"
>> > (00.147669) cg-prop:    Property "cpuset.cpus"
>> > (00.147682) cg-prop:    Property "cpuset.mems"
>> > (00.147694) cg-prop:    Property "cpuset.memory_migrate"
>> > (00.147707) cg-prop:    Property "cpuset.cpu_exclusive"
>> > (00.147719) cg-prop:    Property "cpuset.mem_exclusive"
>> > (00.147731) cg-prop:    Property "cpuset.mem_hardwall"
>> > (00.147743) cg-prop:    Property "cpuset.memory_spread_page"
>> > (00.147756) cg-prop:    Property "cpuset.memory_spread_slab"
>> > (00.147768) cg-prop:    Property "cpuset.sched_load_balance"
>> > (00.147781) cg-prop:    Property "cpuset.sched_relax_domain_level"
>> > (00.147793) cg-prop: Parsing controller "blkio"
>> > (00.147806) cg-prop:    Strategy "replace"
>> > (00.147819) cg-prop:    Property "blkio.weight"
>> > (00.147831) cg-prop: Parsing controller "freezer"
>> > (00.147845) cg-prop:    Strategy "replace"
>> > (00.147858) cg-prop: Parsing controller "perf_event"
>> > (00.147961) cg-prop:    Strategy "replace"
>> > (00.147982) cg-prop: Parsing controller "net_cls"
>> > (00.147998) cg-prop:    Strategy "replace"
>> > (00.148012) cg-prop:    Property "net_cls.classid"
>> > (00.148029) cg-prop: Parsing controller "net_prio"
>> > (00.148044) cg-prop:    Strategy "replace"
>> > (00.148059) cg-prop:    Property "net_prio.ifpriomap"
>> > (00.148072) cg-prop: Parsing controller "pids"
>> > (00.148086) cg-prop:    Strategy "replace"
>> > (00.148099) cg-prop:    Property "pids.max"
>> > (00.148112) cg-prop: Parsing controller "devices"
>> > (00.148125) cg-prop:    Strategy "replace"
>> > (00.148139) cg-prop:    Property "devices.list"
>> > (00.148412) Perparing image inventory (version 1)
>> > (00.148567) Add pid ns 1 pid 736
>> > (00.148620) Add net ns 2 pid 736
>> > (00.148664) Add ipc ns 3 pid 736
>> > (00.148709) Add uts ns 4 pid 736
>> > (00.150395) Add mnt ns 5 pid 736
>> > (00.150450) Add user ns 6 pid 736
>> > (00.150480) Add cgroup ns 7 pid 736
>> > (00.150497) cg: Dumping cgroups for 736
>> > (00.150675) cg:  `- New css ID 1
>> > (00.150701) cg:     `- [devices] -> [/system.slice/system-sshd.slice] [0]
>> > (00.150715) cg:     `- [memory] -> [/] [0]
>> > (00.150728) cg:     `- [name=systemd] -> [/system.slice/system-sshd.slice/sshd at 0-192.168.0.1:22-192.168.0.98:55390.service] [0]
>> > (00.150740) cg: Set 1 is criu one
>> > (00.151443) Seized task 589, state 1
>> > (00.151596) Collected (4 attempts, 0 in_progress)
>> > (00.151720) Seized task 735, state 0
>> > (00.152166) Collected (4 attempts, 0 in_progress)
>> > (00.152305) Collected (4 attempts, 0 in_progress)
>> > (00.152378) Collected 735 in 1 state
>> > (00.152504) Collected (3 attempts, 0 in_progress)
>> > (00.152534) Collected 589 in 1 state
>> > (00.152969) Lock network
>> > (00.153358)     type nfs source 192.168.0.98:/root mnt_id 16 s_dev 0x10 / @ ./ flags 0x300000 options vers=3,rsize=4096,wsize=4096,namlen=255,hard,nolock,proto=tcp,port=2049,timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.98,mountvers=3,mountport=2049,mountproto=tcp,local_lock=all,addr=192.168.0.98
>> > (00.153472)     type devtmpfs source devtmpfs mnt_id 17 s_dev 0x6 / @ ./dev flags 0x300000 options size=316836k,nr_inodes=79209,mode=755
>> > (00.153519)     type sysfs source sysfs mnt_id 18 s_dev 0x11 / @ ./sys flags 0x30000e options
>> > (00.153561)     type proc source proc mnt_id 19 s_dev 0x4 / @ ./proc flags 0x30000e options
>> > (00.153602)     type securityfs source securityfs mnt_id 20 s_dev 0x12 / @ ./sys/kernel/security flags 0x30000e options
>> > (00.153643)     type tmpfs source tmpfs mnt_id 21 s_dev 0x13 / @ ./dev/shm flags 0x1100006 options
>> > (00.153691)     type devpts source devpts mnt_id 22 s_dev 0xd / @ ./dev/pts flags 0x30000a options gid=112,mode=620,ptmxmode=000
>> > (00.153768)     type tmpfs source tmpfs mnt_id 23 s_dev 0x14 / @ ./run flags 0x1100006 options mode=755
>> > (00.153815)     type tmpfs source tmpfs mnt_id 24 s_dev 0x15 / @ ./sys/fs/cgroup flags 0x110000f options mode=755
>> > (00.153959)     type cgroup source cgroup mnt_id 25 s_dev 0x16 / @ ./sys/fs/cgroup/systemd flags 0x30000e options xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd
>> > (00.154014)     type cgroup source cgroup mnt_id 26 s_dev 0x17 / @ ./sys/fs/cgroup/memory flags 0x30000e options memory
>> > (00.154061)     type cgroup source cgroup mnt_id 27 s_dev 0x18 / @ ./sys/fs/cgroup/devices flags 0x30000e options devices
>> > (00.154100)     type mqueue source mqueue mnt_id 28 s_dev 0xe / @ ./dev/mqueue flags 0x300000 options
>> > (00.154141)     type debugfs source debugfs mnt_id 29 s_dev 0x7 / @ ./sys/kernel/debug flags 0x300000 options
>> > (00.154181)     type fusectl source fusectl mnt_id 30 s_dev 0x19 / @ ./sys/fs/fuse/connections flags 0x300000 options
>> > (00.154254)     type tmpfs source tmpfs mnt_id 47 s_dev 0x1a / @ ./tmp flags 0x300006 options size=205488k
>> > (00.154305)     type tmpfs source tmpfs mnt_id 49 s_dev 0x1b / @ ./var/tmp flags 0x300006 options size=205488k
>> > (00.154350)     type tmpfs source tmpfs mnt_id 51 s_dev 0x1c / @ ./var/lock flags 0x30000e options size=1024k,mode=755
>> > (00.154435) mnt: Building mountpoints tree
>> > (00.154456) mnt:        Building plain mount tree
>> > (00.154468) mnt:                Working on 51->16
>> > (00.154481) mnt:                Working on 49->16
>> > (00.154493) mnt:                Working on 47->16
>> > (00.154504) mnt:                Working on 30->18
>> > (00.154515) mnt:                Working on 29->18
>> > (00.154526) mnt:                Working on 28->17
>> > (00.154537) mnt:                Working on 27->24
>> > (00.154548) mnt:                Working on 26->24
>> > (00.154559) mnt:                Working on 25->24
>> > (00.154570) mnt:                Working on 24->18
>> > (00.154581) mnt:                Working on 23->16
>> > (00.154596) mnt:                Working on 22->17
>> > (00.154608) mnt:                Working on 21->17
>> > (00.154620) mnt:                Working on 20->18
>> > (00.154631) mnt:                Working on 19->16
>> > (00.154643) mnt:                Working on 18->16
>> > (00.154654) mnt:                Working on 17->16
>> > (00.154665) mnt:                Working on 16->0
>> > (00.154675) mnt:        Resorting siblings on 16
>> > (00.154687) mnt:        Resorting siblings on 51
>> > (00.154699) mnt:        Resorting siblings on 49
>> > (00.154710) mnt:        Resorting siblings on 47
>> > (00.154721) mnt:        Resorting siblings on 23
>> > (00.154731) mnt:        Resorting siblings on 19
>> > (00.154742) mnt:        Resorting siblings on 18
>> > (00.154753) mnt:        Resorting siblings on 30
>> > (00.154763) mnt:        Resorting siblings on 29
>> > (00.154774) mnt:        Resorting siblings on 24
>> > (00.154785) mnt:        Resorting siblings on 27
>> > (00.154795) mnt:        Resorting siblings on 26
>> > (00.154806) mnt:        Resorting siblings on 25
>> > (00.154817) mnt:        Resorting siblings on 20
>> > (00.154827) mnt:        Resorting siblings on 17
>> > (00.154838) mnt:        Resorting siblings on 28
>> > (00.154848) mnt:        Resorting siblings on 22
>> > (00.154859) mnt:        Resorting siblings on 21
>> > (00.154869) mnt: Done:
>> > (00.154879) mnt: [./](16->0)
>> > (00.154892) mnt:  [./tmp](47->16)
>> > (00.154904) mnt:  <--
>> > (00.154943) mnt:  [./dev](17->16)
>> > (00.154960) mnt:   [./dev/mqueue](28->17)
>> > (00.154974) mnt:   <--
>> > (00.154985) mnt:   [./dev/shm](21->17)
>> > (00.154997) mnt:   <--
>> > (00.155008) mnt:   [./dev/pts](22->17)
>> > (00.155019) mnt:   <--
>> > (00.155029) mnt:  <--
>> > (00.155040) mnt:  [./sys](18->16)
>> > (00.155051) mnt:   [./sys/kernel/debug](29->18)
>> > (00.155062) mnt:   <--
>> > (00.155073) mnt:   [./sys/kernel/security](20->18)
>> > (00.155085) mnt:   <--
>> > (00.155096) mnt:   [./sys/fs/cgroup](24->18)
>> > (00.155107) mnt:    [./sys/fs/cgroup/devices](27->24)
>> > (00.155125) mnt:    <--
>> > (00.155137) mnt:    [./sys/fs/cgroup/systemd](25->24)
>> > (00.155150) mnt:    <--
>> > (00.155161) mnt:    [./sys/fs/cgroup/memory](26->24)
>> > (00.155173) mnt:    <--
>> > (00.155185) mnt:   <--
>> > (00.155196) mnt:   [./sys/fs/fuse/connections](30->18)
>> > (00.155208) mnt:   <--
>> > (00.155220) mnt:  <--
>> > (00.155230) mnt:  [./proc](19->16)
>> > (00.155242) mnt:  <--
>> > (00.155252) mnt:  [./run](23->16)
>> > (00.155263) mnt:  <--
>> > (00.155274) mnt:  [./var/lock](51->16)
>> > (00.155285) mnt:  <--
>> > (00.155296) mnt:  [./var/tmp](49->16)
>> > (00.155307) mnt:  <--
>> > (00.155318) mnt: <--
>> > (00.155366) Collecting netns 2/736
>> > (00.156483) sk unix:    Collected: ino 0x2224 peer_ino 0 family    1 type    1 state 10 name /var/run/dbus/system_bus_socket
>> > (00.156556) sk unix:    Collected: ino 0x1ca2 peer_ino 0 family    1 type    2 state  7 name /run/systemd/notify
>> > (00.156598) sk unix:    Collected: ino 0x1ca4 peer_ino 0 family    1 type    2 state  7 name /run/systemd/cgroups-agent
>> > (00.156635) sk unix:    Collected: ino 0x1ca8 peer_ino 0 family    1 type    1 state 10 name /run/systemd/private
>> > (00.156671) sk unix:    Collected: ino 0x5c7 peer_ino 0 family    1 type    2 state  7 name /run/systemd/journal/dev-log
>> > (00.156705) sk unix:    Collected: ino 0x5cc peer_ino 0 family    1 type    5 state 10 name /run/udev/control
>> > (00.156740) sk unix:    Collected: ino 0x5cf peer_ino 0 family    1 type    1 state 10 name /run/systemd/journal/stdout
>> > (00.156775) sk unix:    Collected: ino 0x5d1 peer_ino 0 family    1 type    2 state  7 name /run/systemd/journal/socket
>> > (00.156809) sk unix:    Collected: ino 0x5d3 peer_ino 0 family    1 type    5 state 10 name /run/systemd/coredump
>> > (00.156830) sk unix:    Collected: ino 0x28e6 peer_ino 0x28e7 family    1 type    5 state  1 name
>> > (00.156848) sk unix:    Collected: ino 0x291a peer_ino 0x291b family    1 type    1 state  1 name (null)
>> > (00.156879) sk unix:    Collected: ino 0x2245 peer_ino 0x2483 family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.156899) sk unix:    Collected: ino 0x25d5 peer_ino 0x25d6 family    1 type    1 state  1 name (null)
>> > (00.156917) sk unix:    Collected: ino 0x237d peer_ino 0x237c family    1 type    1 state  1 name (null)
>> > (00.156934) sk unix:    Collected: ino 0x2374 peer_ino 0x2373 family    1 type    1 state  1 name (null)
>> > (00.156951) sk unix:    Collected: ino 0x2921 peer_ino 0x2920 family    1 type    1 state  1 name (null)
>> > (00.156980) sk unix:    Collected: ino 0x2427 peer_ino 0x2426 family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.157000) sk unix:    Collected: ino 0x2623 peer_ino 0x2624 family    1 type    1 state  1 name (null)
>> > (00.157018) sk unix:    Collected: ino 0x16f6 peer_ino 0x2243 family    1 type    1 state  1 name (null)
>> > (00.157035) sk unix:    Collected: ino 0x2940 peer_ino 0x293f family    1 type    1 state  1 name (null)
>> > (00.157051) sk unix:    Collected: ino 0x25d1 peer_ino 0x25d0 family    1 type    1 state  1 name (null)
>> > (00.157067) sk unix:    Collected: ino 0x2373 peer_ino 0x2374 family    1 type    1 state  1 name (null)
>> > (00.157084) sk unix:    Collected: ino 0x158f peer_ino 0x158e family    1 type    2 state  7 name (null)
>> > (00.157100) sk unix:    Collected: ino 0x1e99 peer_ino 0x1e9a family    1 type    1 state  1 name (null)
>> > (00.157118) sk unix:    Collected: ino 0x210e peer_ino 0x5d1 family    1 type    2 state  7 name (null)
>> > (00.157140) sk unix:    Collected: ino 0x2947 peer_ino 0x2946 family    1 type    1 state  1 name (null)
>> > (00.157157) sk unix:    Collected: ino 0x2627 peer_ino 0x2626 family    1 type    1 state  1 name (null)
>> > (00.157174) sk unix:    Collected: ino 0x224e peer_ino 0x224f family    1 type    1 state  1 name (null)
>> > (00.157221) sk unix:    Collected: ino 0x1674 peer_ino 0x1673 family    1 type    2 state  7 name (null)
>> > (00.157242) sk unix:    Collected: ino 0x294d peer_ino 0x294c family    1 type    1 state  1 name (null)
>> > (00.157259) sk unix:    Collected: ino 0x24ce peer_ino 0x24cf family    1 type    1 state  1 name (null)
>> > (00.157296) sk unix:    Collected: ino 0x2509 peer_ino 0x17f6 family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.157319) sk unix:    Collected: ino 0x29eb peer_ino 0 family    1 type    5 state  7 name (null)
>> > (00.157338) sk unix:    Collected: ino 0x250c peer_ino 0x250d family    1 type    1 state  1 name (null)
>> > (00.157356) sk unix:    Collected: ino 0x67d peer_ino 0x20f9 family    1 type    1 state  1 name (null)
>> > (00.157373) sk unix:    Collected: ino 0x1675 peer_ino 0x1676 family    1 type    2 state  7 name (null)
>> > (00.157390) sk unix:    Collected: ino 0x1ca7 peer_ino 0x1ca6 family    1 type    2 state  7 name (null)
>> > (00.157406) sk unix:    Collected: ino 0x237c peer_ino 0x237d family    1 type    1 state  1 name (null)
>> > (00.157422) sk unix:    Collected: ino 0x1673 peer_ino 0x1674 family    1 type    2 state  7 name (null)
>> > (00.157438) sk unix:    Collected: ino 0x2920 peer_ino 0x2921 family    1 type    1 state  1 name (null)
>> > (00.157457) sk unix:    Collected: ino 0x2622 peer_ino 0x2621 family    1 type    1 state  1 name (null)
>> > (00.157476) sk unix:    Collected: ino 0x166e peer_ino 0x5d1 family    1 type    2 state  7 name (null)
>> > (00.157493) sk unix:    Collected: ino 0x261f peer_ino 0x261e family    1 type    1 state  1 name (null)
>> > (00.157509) sk unix:    Collected: ino 0x293f peer_ino 0x2940 family    1 type    1 state  1 name (null)
>> > (00.157526) sk unix:    Collected: ino 0x28e7 peer_ino 0x28e6 family    1 type    5 state  1 name (null)
>> > (00.157543) sk unix:    Collected: ino 0x60d peer_ino 0x1ca2 family    1 type    2 state  7 name (null)
>> > (00.157559) sk unix:    Collected: ino 0x2381 peer_ino 0x2382 family    1 type    1 state  1 name (null)
>> > (00.157575) sk unix:    Collected: ino 0x1e9c peer_ino 0x1e9b family    1 type    1 state  1 name (null)
>> > (00.157591) sk unix:    Collected: ino 0x261e peer_ino 0x261f family    1 type    1 state  1 name (null)
>> > (00.157608) sk unix:    Collected: ino 0x2946 peer_ino 0x2947 family    1 type    1 state  1 name (null)
>> > (00.157644) sk unix:    Collected: ino 0x2102 peer_ino 0x6cd family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.157667) sk unix:    Collected: ino 0x2c6c peer_ino 0x26d1 family    1 type    1 state  1 name (null)
>> > (00.157685) sk unix:    Collected: ino 0x282e peer_ino 0x2517 family    1 type    1 state  1 name (null)
>> > (00.157702) sk unix:    Collected: ino 0x158e peer_ino 0x158f family    1 type    2 state  7 name (null)
>> > (00.157718) sk unix:    Collected: ino 0x294c peer_ino 0x294d family    1 type    1 state  1 name (null)
>> > (00.157791) sk unix:    Collected: ino 0x255b peer_ino 0x255a family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.157816) sk unix:    Collected: ino 0x2485 peer_ino 0x2250 family    1 type    1 state  1 name (null)
>> > (00.157834) sk unix:    Collected: ino 0x2c21 peer_ino 0x268f family    1 type    1 state  1 name (null)
>> > (00.157930) sk unix:    Collected: ino 0x2517 peer_ino 0x282e family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.158001) sk unix:    Collected: ino 0x2250 peer_ino 0x2485 family    1 type    1 state  1 name /var/run/dbus/system_bus_socket
>> > (00.158027) sk unix:    Collected: ino 0x224f peer_ino 0x224e family    1 type    1 state  1 name (null)
>> > (00.158045) sk unix:    Collected: ino 0x250d peer_ino 0x250c family    1 type    1 state  1 name (null)
>> > (00.158062) sk unix:    Collected: ino 0x291b peer_ino 0x291a family    1 type    1 state  1 name (null)
>> > (00.158080) sk unix:    Collected: ino 0x2621 peer_ino 0x2622 family    1 type    1 state  1 name (null)
>> > (00.158100) sk unix:    Collected: ino 0x28e4 peer_ino 0x28e3 family    1 type    5 state  1 name (null)
>> > (00.158148) sk unix:    Collected: ino 0x237a peer_ino 0x2379 family    1 type    1 state  1 name (null)
>> > (00.158172) sk unix:    Collected: ino 0x2483 peer_ino 0x2245 family    1 type    1 state  1 name (null)
>> > (00.158208) sk unix:    Collected: ino 0x1e9b peer_ino 0x1e9c family    1 type    1 state  1 name (null)
>> > (00.158228) sk unix:    Collected: ino 0x28e3 peer_ino 0x28e4 family    1 type    5 state  1 name (null)
>> > (00.158245) sk unix:    Collected: ino 0x25d6 peer_ino 0x25d5 family    1 type    1 state  1 name (null)
>> > (00.158261) sk unix:    Collected: ino 0x2944 peer_ino 0x2943 family    1 type    1 state  1 name (null)
>> > (00.158277) sk unix:    Collected: ino 0x2496 peer_ino 0x2251 family    1 type    1 state  1 name (null)
>> > (00.158293) sk unix:    Collected: ino 0x2382 peer_ino 0x2381 family    1 type    1 state  1 name (null)
>> > (00.158309) sk unix:    Collected: ino 0x1738 peer_ino 0x2253 family    1 type    1 state  1 name (null)
>> > (00.158325) sk unix:    Collected: ino 0x2104 peer_ino 0x5d1 family    1 type    2 state  7 name (null)
>> > (00.158341) sk unix:    Collected: ino 0x294f peer_ino 0x294e family    1 type    1 state  1 name (null)
>> > (00.158358) sk unix:    Collected: ino 0x255a peer_ino 0x255b family    1 type    1 state  1 name (null)
>> > (00.158398) sk unix:    Collected: ino 0x20f9 peer_ino 0x67d family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.158421) sk unix:    Collected: ino 0x248f peer_ino 0x5d1 family    1 type    2 state  7 name (null)
>> > (00.158454) sk unix:    Collected: ino 0x2253 peer_ino 0x1738 family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.158475) sk unix:    Collected: ino 0x2960 peer_ino 0x295f family    1 type    1 state  1 name (null)
>> > (00.158495) sk unix:    Collected: ino 0x2626 peer_ino 0x2627 family    1 type    1 state  1 name (null)
>> > (00.158528) sk unix:    Collected: ino 0x25bd peer_ino 0x25bc family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.158549) sk unix:    Collected: ino 0x2426 peer_ino 0x2427 family    1 type    1 state  1 name (null)
>> > (00.158567) sk unix:    Collected: ino 0x25bc peer_ino 0x25bd family    1 type    1 state  1 name (null)
>> > (00.158584) sk unix:    Collected: ino 0x2379 peer_ino 0x237a family    1 type    1 state  1 name (null)
>> > (00.158600) sk unix:    Collected: ino 0x1e9a peer_ino 0x1e99 family    1 type    1 state  1 name (null)
>> > (00.158635) sk unix:    Collected: ino 0x2243 peer_ino 0x16f6 family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.158659) sk unix:    Collected: ino 0x2943 peer_ino 0x2944 family    1 type    1 state  1 name (null)
>> > (00.158680) sk unix:    Collected: ino 0x25d0 peer_ino 0x25d1 family    1 type    1 state  1 name (null)
>> > (00.158697) sk unix:    Collected: ino 0x17f6 peer_ino 0x2509 family    1 type    1 state  1 name (null)
>> > (00.158730) sk unix:    Collected: ino 0x24cf peer_ino 0x24ce family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.158765) sk unix:    Collected: ino 0x26d1 peer_ino 0x2c6c family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.158802) sk unix:    Collected: ino 0x255d peer_ino 0x28a2 family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.158824) sk unix:    Collected: ino 0x294e peer_ino 0x294f family    1 type    1 state  1 name (null)
>> > (00.158869) sk unix:    Collected: ino 0x2251 peer_ino 0x2496 family    1 type    1 state  1 name /var/run/dbus/system_bus_socket
>> > (00.158892) sk unix:    Collected: ino 0x6cd peer_ino 0x2102 family    1 type    1 state  1 name (null)
>> > (00.158910) sk unix:    Collected: ino 0x1ca6 peer_ino 0x1ca7 family    1 type    2 state  7 name (null)
>> > (00.158942) sk unix:    Collected: ino 0x268f peer_ino 0x2c21 family    1 type    1 state  1 name /run/systemd/journal/stdout
>> > (00.158964) sk unix:    Collected: ino 0x28a2 peer_ino 0x255d family    1 type    1 state  1 name (null)
>> > (00.158981) sk unix:    Collected: ino 0x1676 peer_ino 0x1675 family    1 type    2 state  7 name (null)
>> > (00.159000) sk unix:    Collected: ino 0x295f peer_ino 0x2960 family    1 type    1 state  1 name (null)
>> > (00.159050) sk unix:    Collected: ino 0x2624 peer_ino 0x2623 family    1 type    1 state  1 name (null)
>> > (00.159403)     Collected: ino   0x2c8f family    2 type    1 port    52249 state 10 src_addr 192.168.0.1
>> > (00.159441)     Collected: ino   0x2683 family    2 type    1 port    46115 state 10 src_addr 192.168.0.1
>> > (00.159486)     Collected: ino   0x1ead family    2 type    1 port    38917 state 10 src_addr 192.168.0.1
>> > (00.159510)     Collected: ino   0x2386 family    2 type    1 port     9222 state 10 src_addr 127.0.0.1
>> > (00.159530)     Collected: ino   0x2370 family    2 type    1 port    56717 state 10 src_addr 192.168.0.1
>> > (00.159549)     Collected: ino   0x2c93 family    2 type    1 port     9200 state 10 src_addr 127.0.0.1
>> > (00.159568)     Collected: ino   0x2326 family    2 type    1 port       80 state 10 src_addr 0.0.0.0
>> > (00.159588)     Collected: ino   0x2c94 family    2 type    1 port     9201 state 10 src_addr 127.0.0.1
>> > (00.159606)     Collected: ino   0x1e5c family    2 type    1 port    55699 state 10 src_addr 192.168.0.1
>> > (00.159625)     Collected: ino   0x2836 family    2 type    1 port    54261 state 10 src_addr 192.168.0.1
>> > (00.159645)     Collected: ino   0x23a5 family    2 type    1 port    41410 state  1 src_addr 127.0.0.1
>> > (00.159663)     Collected: ino   0x2c33 family    2 type    1 port    54261 state  1 src_addr 192.168.0.1
>> > (00.159682)     Collected: ino   0x23a4 family    2 type    1 port    41408 state  1 src_addr 127.0.0.1
>> > (00.159702)     Collected: ino   0x1ebf family    2 type    1 port     9201 state  1 src_addr 127.0.0.1
>> > (00.159720)     Collected: ino   0x2689 family    2 type    1 port    34210 state  1 src_addr 192.168.0.1
>> > (00.159739)     Collected: ino   0x2372 family    2 type    1 port    37080 state  1 src_addr 192.168.0.1
>> > (00.159757)     Collected: ino   0x2cc8 family    2 type    1 port    53724 state  1 src_addr 127.0.0.1
>> > (00.159775)     Collected: ino   0x23a7 family    2 type    1 port    41414 state  1 src_addr 127.0.0.1
>> > (00.159793)     Collected: ino   0x3069 family    2 type    1 port    41442 state  1 src_addr 127.0.0.1
>> > (00.159812)     Collected: ino   0x2cc9 family    2 type    1 port     9201 state  1 src_addr 127.0.0.1
>> > (00.159830)     Collected: ino   0x2677 family    2 type    1 port       80 state  1 src_addr 127.0.0.1
>> > (00.159849)     Collected: ino   0x1ebe family    2 type    1 port    53718 state  1 src_addr 127.0.0.1
>> > (00.159867)     Collected: ino   0x1ec2 family    2 type    1 port       80 state  1 src_addr 127.0.0.1
>> > (00.159886)     Collected: ino   0x2678 family    2 type    1 port       80 state  1 src_addr 127.0.0.1
>> > (00.159904)     Collected: ino   0x2c91 family    2 type    1 port    44980 state  1 src_addr 192.168.0.1
>> > (00.159923)     Collected: ino   0x1e5e family    2 type    1 port    60078 state  1 src_addr 192.168.0.1
>> > (00.159947)     Collected: ino   0x28a9 family    2 type    1 port    54261 state  1 src_addr 192.168.0.1
>> > (00.159968)     Collected: ino   0x2679 family    2 type    1 port       80 state  1 src_addr 127.0.0.1
>> > (00.159989)     Collected: ino   0x2cc7 family    2 type    1 port       80 state  1 src_addr 127.0.0.1
>> > (00.160008)     Collected: ino   0x239d family    2 type    1 port    41406 state  1 src_addr 127.0.0.1
>> > (00.160027)     Collected: ino   0x267a family    2 type    1 port       80 state  1 src_addr 127.0.0.1
>> > (00.160047)     Collected: ino   0x2ca4 family    2 type    1 port    41440 state  1 src_addr 127.0.0.1
>> > (00.160065)     Collected: ino   0x1ebc family    2 type    1 port    41436 state  1 src_addr 127.0.0.1
>> > (00.160086)     Collected: ino   0x23a6 family    2 type    1 port    41412 state  1 src_addr 127.0.0.1
>> > (00.160104)     Collected: ino   0x23ad family    2 type    1 port    54261 state  1 src_addr 192.168.0.1
>> > (00.160122)     Collected: ino   0x28ed family    2 type    1 port    54261 state  1 src_addr 192.168.0.1
>> > (00.160142)     Collected: ino   0x1eaf family    2 type    1 port    43440 state  1 src_addr 192.168.0.1
>> > (00.160160)     Collected: ino   0x2676 family    2 type    1 port       80 state  1 src_addr 127.0.0.1
>> > (00.160222)     Collected: ino   0x1ebd family    2 type    1 port       80 state  1 src_addr 127.0.0.1
>> > (00.160255)     Collected: ino   0x2c80 family    2 type    1 port      854 state  1 src_addr 192.168.0.1
>> > (00.160276)     Collected: ino   0x2c92 family    2 type    1 port    54261 state  1 src_addr 192.168.0.1
>> > (00.160393)     Collected: ino   0x236f family    2 type    2 port    40256 state  7 src_addr 192.168.0.1
>> > (00.160442)     Collected: ino   0x2c8e family    2 type    2 port    40847 state  7 src_addr 192.168.0.1
>> > (00.160464)     Collected: ino   0x2835 family    2 type    2 port    59916 state  7 src_addr 192.168.0.1
>> > (00.160485)     Collected: ino   0x1e5a family    2 type    2 port    36415 state  7 src_addr 192.168.0.1
>> > (00.160504)     Collected: ino   0x2834 family    2 type    2 port    58440 state  7 src_addr 192.168.0.1
>> > (00.160523)     Collected: ino   0x1eab family    2 type    2 port    50279 state  7 src_addr 192.168.0.1
>> > (00.160542)     Collected: ino   0x1e5b family    2 type    2 port    45173 state  7 src_addr 192.168.0.1
>> > (00.160561)     Collected: ino   0x236e family    2 type    2 port    35985 state  7 src_addr 192.168.0.1
>> > (00.160580)     Collected: ino   0x2c8d family    2 type    2 port    56479 state  7 src_addr 192.168.0.1
>> > (00.160599)     Collected: ino   0x2681 family    2 type    2 port    55982 state  7 src_addr 192.168.0.1
>> > (00.160617)     Collected: ino   0x1eac family    2 type    2 port    42685 state  7 src_addr 192.168.0.1
>> > (00.160635)     Collected: ino   0x2682 family    2 type    2 port    57538 state  7 src_addr 192.168.0.1
>> > (00.160861)     Collected: ino   0x2228 family   10 type    1 port       22 state 10 src_addr ::
>> > (00.160899)     Collected: ino   0x1e9d family   10 type    1 port       22 state  1 src_addr ::ffff:192.168.0.1
>> > (00.161142) Collect netlink sock 0xe
>> > (00.161173) Collect netlink sock 0x291d
>> > (00.161189) Collect netlink sock 0x291d
>> > (00.161202) Collect netlink sock 0x10c8
>> > (00.161215) Collect netlink sock 0x29ea
>> > (00.161228) Collect netlink sock 0x1089
>> > (00.161240) Collect netlink sock 0x4f
>> > (00.161253) Collect netlink sock 0x2492
>> > (00.161271) Collect netlink sock 0x2494
>> > (00.161285) Collect netlink sock 0x261d
>> > (00.161298) Collect netlink sock 0x2493
>> > (00.161311) Collect netlink sock 0x14ca
>> > (00.161324) Collect netlink sock 0x10
>> > (00.161336) Collect netlink sock 0x2380
>> > (00.161348) Collect netlink sock 0x2364
>> > (00.161361) Collect netlink sock 0x1ca1
>> > (00.161374) Collect netlink sock 0x2495
>> > (00.161387) Collect netlink sock 0x261d
>> > (00.161400) Collect netlink sock 0x2380
>> > (00.161412) Collect netlink sock 0x2364
>> > (00.161425) Collect netlink sock 0x2495
>> > (00.161438) Collect netlink sock 0x2494
>> > (00.161451) Collect netlink sock 0x2493
>> > (00.161464) Collect netlink sock 0x2492
>> > (00.161476) Collect netlink sock 0x14ca
>> > (00.161489) Collect netlink sock 0x1ca1
>> > (00.161502) Collect netlink sock 0x56
>> > (00.161601) ========================================
>> > (00.161619) Dumping task (pid: 589)
>> > (00.161631) ========================================
>> > (00.161641) Obtaining task stat ...
>> > (00.161822)
>> > (00.161844) Collecting mappings (pid: 589)
>> > (00.161856) ----------------------------------------
>> > (00.162958) Dumping path for -3 fd via self 8 [/bin/busybox]
>> > (00.164873) vma 54b1c000 borrows vfi from previous 54abf000
>> > (00.164958) vma 54b1e000 borrows vfi from previous 54b1c000
>> > (00.165785) Dumping path for -3 fd via self 8 [/lib/libc-2.20.so]
>> > (00.165901) vma 76f92000 borrows vfi from previous 76eba000
>> > (00.165961) vma 76f94000 borrows vfi from previous 76f92000
>> > (00.166763) Dumping path for -3 fd via self 8 [/lib/ld-2.20.so]
>> > (00.167066) vma 76fb8000 borrows vfi from previous 76fb7000
>> > (00.167255) Collected, longest area occupies 216 pages
>> > (00.167280) 0x54abf000-0x54b14000 (340K) prot 0x5 flags 0x2 fdflags 0 st 0x41 off 0 reg fp  shmid: 0x1
>> > (00.167301) 0x54b1c000-0x54b1e000 (8K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x55000 reg fp  shmid: 0x1
>> > (00.167318) 0x54b1e000-0x54b1f000 (4K) prot 0x3 flags 0x2 fdflags 0 st 0x41 off 0x57000 reg fp  shmid: 0x1
>> > (00.167335) 0x55fac000-0x55fcd000 (132K) prot 0x3 flags 0x22 fdflags 0 st 0x221 off 0 reg heap ap  shmid: 0
>> > (00.167351) 0x76eba000-0x76f92000 (864K) prot 0x5 flags 0x2 fdflags 0 st 0x41 off 0 reg fp  shmid: 0x2
>> > (00.167366) 0x76f92000-0x76f94000 (8K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0xd8000 reg fp  shmid: 0x2
>> > (00.167381) 0x76f94000-0x76f95000 (4K) prot 0x3 flags 0x2 fdflags 0 st 0x41 off 0xda000 reg fp  shmid: 0x2
>> > (00.167397) 0x76f95000-0x76f98000 (12K) prot 0x3 flags 0x22 fdflags 0 st 0x201 off 0 reg ap  shmid: 0
>> > (00.167447) 0x76f98000-0x76fb0000 (96K) prot 0x5 flags 0x2 fdflags 0 st 0x41 off 0 reg fp  shmid: 0x3
>> > (00.167468) 0x76fb5000-0x76fb7000 (8K) prot 0x3 flags 0x22 fdflags 0 st 0x201 off 0 reg ap  shmid: 0
>> > (00.167485) 0x76fb7000-0x76fb8000 (4K) prot 0x1 flags 0x2 fdflags 0 st 0x41 off 0x17000 reg fp  shmid: 0x3
>> > (00.167501) 0x76fb8000-0x76fb9000 (4K) prot 0x3 flags 0x2 fdflags 0 st 0x41 off 0x18000 reg fp  shmid: 0x3
>> > (00.167516) 0x7ebae000-0x7ebd0000 (136K) prot 0x3 flags 0x122 fdflags 0 st 0x201 off 0 reg ap  shmid: 0
>> > (00.167532) 0x7ef15000-0x7ef16000 (4K) prot 0x5 flags 0x22 fdflags 0 st 0x201 off 0 reg ap  shmid: 0
>> > (00.167547) 0xffff0000-0xffff1000 (4K) prot 0x5 flags 0x22 fdflags 0 st 0x204 off 0 vsys ap  shmid: 0
>> > (00.167562) ----------------------------------------
>> > (00.167577)
>> > (00.167588) Collecting fds (pid: 589)
>> > (00.167600) ----------------------------------------
>> > (00.167720) Found 4 file descriptors
>> > (00.167745) ----------------------------------------
>> > (00.167808) Dump private signals of 589
>> > (00.167974) Dump shared signals of 589
>> > (00.168074) Parasite syscall_ip at 0x54abf000
>> > (00.169826) Set up parasite blob using memfd
>> > (00.169874) Putting parasite blob into 0x76e04000->0x76eb0000
>> > (00.170281) Dumping GP/FPU registers for 589
>> > (00.170328) Putting tsock into pid 589
>> > (00.170512) Error (criu/parasite-syscall.c:92): si_code=4 si_pid=589 si_status=11
>> > (00.170550) Error (criu/parasite-syscall.c:100): 589 was stopped by 11 unexpectedly
>> > root:~ dmesg
>> >
>> > (...)
>> >
>> > [  103.439574] potentially unexpected fatal signal 11.
>> > [  103.444491] CPU: 1 PID: 589 Comm: test.sh Tainted: G           O    4.4.8-20170119-1 #3
>> > [  103.452569] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
>> > [  103.459171] task: a61c8cc0 ti: a6274000 task.ti: a6274000
>> > [  103.464591] PC is at 0x76eb2780
>> > [  103.467785] LR is at 0x0
>> > [  103.470334] pc : [<76eb2780>]    lr : [<00000000>]    psr: 00080030
>> > [  103.470334] sp : 76eb9390  ip : 00000072  fp : 54b1d2f4
>> > [  103.481852] r10: 55fac008  r9 : 00000000  r8 : 55fac284
>> > [  103.487173] r7 : 00000072  r6 : 55fac2f4  r5 : 00000000  r4 : 00000000
>> > [  103.493718] r3 : 00000000  r2 : 76eb0000  r1 : 76eb3060  r0 : 00000002
>> > [  103.500307] Flags: nzcv  IRQs on  FIQs on  Mode USER_32  ISA Thumb  Segment user
>> > [  103.507769] Control: 10c5387d  Table: 360a804a  DAC: 00000055
>> > [  103.513539] CPU: 1 PID: 589 Comm: test.sh Tainted: G           O    4.4.8-20170119-1 #3
>> > [  103.521553] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
>> > [  103.528085] Backtrace:
>> > [  103.530580] [<80013f80>] (dump_backtrace) from [<800141cc>] (show_stack+0x20/0x24)
>> > [  103.538157]  r6:60080113 r5:8099cae8 r4:00000000 r3:00000000
>> > [  103.543900] [<800141ac>] (show_stack) from [<802adab4>] (dump_stack+0x9c/0xb0)
>> > [  103.551138] [<802ada18>] (dump_stack) from [<80010b80>] (show_regs+0x1c/0x20)
>> > [  103.558284]  r6:a6275edc r5:a4e369c8 r4:a6275fb0 r3:00000006
>> > [  103.564019] [<80010b64>] (show_regs) from [<800335a8>] (get_signal+0x5f8/0x6ec)
>> > [  103.571343] [<80032fb0>] (get_signal) from [<80013350>] (do_signal+0xc4/0x424)
>> > [  103.578570]  r10:55fac008 r9:a6274000 r8:00000000 r7:00000000 r6:a6275fb0 r5:a6275ec8
>> > [  103.586481]  r4:00000000
>> > [  103.589041] [<8001328c>] (do_signal) from [<80013888>] (do_work_pending+0xa8/0xc0)
>> > [  103.596614]  r10:55fac008 r9:a6274000 r8:00000000 r7:10c5387d r6:a6275fb0 r5:00000000
>> > [  103.604521]  r4:a6274010
>> > [  103.607080] [<800137e0>] (do_work_pending) from [<8000fdd4>] (slow_work_pending+0xc/0x20)
>> > [  103.615259]  r7:10c5387d r6:ffffffff r5:00080030 r4:76eb2780
>> >
>> > I have added the compilation log and object dumps as attachments,
>> > because they are rather big to put them inline.
>>
>> Hmm, so from dmesg and logs I don't see obvious reasons, why
>> it has crashed. All looks quite normal (except PC) :-/
>>
>> Could you send me your parasite.built-in.o - so I'll dissect it with gdb/etc?
>> Crashdump may be also useful.
>
> Done.
>
> These should be from the same test run as the stuff above and
> yesterday's attachments.

Hi Harald,

So the fun thing - is that dumping worked on RPI2 with your parasite blob :)
I've double checked, that criu loaded your parasite in a task.

As your parasite is compiled with THUMB mode, could you check that
your kernel has CONFIG_ARM_THUMB enabled?

To make sure that the issue here is no more in parasite, but in
environment/kernel/criu/etc, could you make test with parasite blob from
my compilation?
Just replace criu/pie/parasite.built-in.o with mine and run `make` - so
it'll regenerate parasite-blob.h header.

-- 
             Dmitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parasite.built-in.o
Type: application/x-object
Size: 90884 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20170420/3ae18653/attachment-0001.bin>


More information about the CRIU mailing list