[CRIU] "tty: Can't open 9 (index 0): Bad file descriptor" occurred in the restoring step
Andrew Vagin
avagin at parallels.com
Wed Mar 26 06:25:40 PDT 2014
On Wed, Mar 26, 2014 at 04:16:20PM +0800, linuxchyu at sina.com wrote:
> All information about that error are:
>
> (00.262900) 1: Send fd 9 to /crtools-fd-166-3
> (00.262962) 1: Create fd for 9
> (00.262981) 1: Restoring fd 10 (state -> create)
> (00.262991) 1: Opening pair master (id 0x8 ino 0x24a67 peer 0x24a4c)
> (00.263008) 1: Trying to restore recv queue for 68
> (00.263041) 1: Trying to restore recv queue for 8
> (00.263068) 1: 8 restore sndbuf 212992 rcv buf 212992
> (00.263081) 1: restore priority 0 for socket
> (00.263090) 1: restore rcvlowat 1 for socket
> (00.263099) 1: restore mark 0 for socket
> (00.263115) 1: Wait fdinfo pid=263 fd=4
> (00.263125) 1: Send fd 10 to /crtools-fd-263-4
> (00.263158) 1: Create fd for 10
> (00.263174) 1: Restoring fd 12 (state -> create)
> (00.263184) 1: tty: open type ptmx id 0x9 index 0 (master 1 sid 0 pgrp 0
> inherit 0)
> (00.263252) 1: tty: ptmx opened with index 2
> (00.263260) 1: Error (tty.c:285): tty: Unable to open /dev/ptmx with specified
> index 0
> (00.263311) 263: 3 restore sndbuf 212992 rcv buf 212992
> (00.263328) 263: restore priority 0 for socket
> (00.263333) 263: restore rcvlowat 1 for socket
> (00.263337) 263: restore mark 0 for socket
> (00.263347) 263: Create fd for 4
> (00.263355) 263: Restoring fd 5 (state -> create)
> (00.263359) 263: Creating pipe pipe_id=0x24a4d id=0x45
> (00.263372) 263: Restoring size 0x10000 for 0x24a4d
> (00.263380) 263: Wait fdinfo pid=263 fd=6
> (00.263384) 263: Send fd 5 to /crtools-fd-263-6
> (00.263400) 263: Create fd for 5
> (00.263407) 263: Restoring fd 6 (state -> create)
> (00.263410) 263: Creating pipe pipe_id=0x24a4d id=0x46
> (00.263414) 263: Waiting fd for 6
> (00.263428) 263: Create fd for 6
> (00.263436) 263: Restoring fd 3 (state -> create)
> (00.263442) 263: epoll: Restore eventpoll: id 0x000043 flags 0x02
> (00.263455) 263: Create fd for 3
> (00.263462) 263: Restoring fd 0 (state -> receive)
> (00.263466) 263: Restoring fd 1 (state -> receive)
> (00.263469) 263: Restoring fd 2 (state -> receive)
> (00.263472) 263: Restoring fd 4 (state -> receive)
> (00.263475) 263: Restoring fd 5 (state -> receive)
> (00.263478) 263: Restoring fd 6 (state -> receive)
> (00.263481) 263: Restoring fd 3 (state -> receive)
> (00.263484) 263: Restoring fd 0 (state -> post_create)
> (00.263487) 263: Restoring fd 1 (state -> post_create)
> (00.263490) 263: Restoring fd 2 (state -> post_create)
> (00.263493) 263: Restoring fd 4 (state -> post_create)
> (00.263496) 263: Restoring fd 5 (state -> post_create)
> (00.263499) 263: Restoring fd 6 (state -> post_create)
> (00.263502) 263: Restoring fd 3 (state -> post_create)
> (00.263511) 263: Restore file locks.
> (00.263654) 263: Opening 0x00007f2153c9f000-0x00007f2153cb8000
> 0x0000000000000000 (41) vma
> (00.263659) 263: Opening 0x00007f2153cb8000-0x00007f2153eb7000
> 0x0000000000019000 (41) vma
> (00.263669) 263: Opening 0x00007f2153eb7000-0x00007f2153eb8000
> 0x0000000000018000 (41) vma
> (00.263673) 263: Opening 0x00007f2153eb8000-0x00007f2153eb9000
> 0x0000000000019000 (41) vma
> (00.263677) 263: Opening 0x00007f2153eb9000-0x00007f2153ebd000
> 0x0000000000000000 (201) vma
> (00.263680) 263: Opening 0x00007f2153ebd000-0x00007f2153ec4000
> 0x0000000000000000 (41) vma
> (00.263683) 263: Opening 0x00007f2153ec4000-0x00007f21540c3000
> 0x0000000000007000 (41) vma
> (00.263687) 263: Opening 0x00007f21540c3000-0x00007f21540c4000
> 0x0000000000006000 (41) vma
> (00.263690) 263: Opening 0x00007f21540c4000-0x00007f21540c5000
> 0x0000000000007000 (41) vma
> (00.263694) 263: Opening 0x00007f21540c5000-0x00007f2154280000
> 0x0000000000000000 (41) vma
> (00.263697) 263: Opening 0x00007f2154280000-0x00007f2154480000
> 0x00000000001bb000 (41) vma
> (00.263700) 263: Opening 0x00007f2154480000-0x00007f2154484000
> 0x00000000001bb000 (41) vma
> (00.263703) 263: Opening 0x00007f2154484000-0x00007f2154486000
> 0x00000000001bf000 (41) vma
> (00.263706) 263: Opening 0x00007f2154486000-0x00007f215448b000
> 0x0000000000000000 (201) vma
> (00.263709) 263: Opening 0x00007f215448b000-0x00007f21544cf000
> 0x0000000000000000 (41) vma
> (00.263713) 263: Opening 0x00007f21544cf000-0x00007f21546ce000
> 0x0000000000044000 (41) vma
> (00.263716) 263: Opening 0x00007f21546ce000-0x00007f21546cf000
> 0x0000000000043000 (41) vma
> (00.263719) 263: Opening 0x00007f21546cf000-0x00007f21546d0000
> 0x0000000000044000 (41) vma
> (00.263722) 263: Opening 0x00007f21546d0000-0x00007f21546d8000
> 0x0000000000000000 (41) vma
> (00.263725) 263: Opening 0x00007f21546d8000-0x00007f21548d8000
> 0x0000000000008000 (41) vma
> (00.263728) 263: Opening 0x00007f21548d8000-0x00007f21548d9000
> 0x0000000000008000 (41) vma
> (00.263731) 263: Opening 0x00007f21548d9000-0x00007f21548da000
> 0x0000000000009000 (41) vma
> (00.263734) 263: Opening 0x00007f21548da000-0x00007f21548f1000
> 0x0000000000000000 (41) vma
> (00.263737) 263: Opening 0x00007f21548f1000-0x00007f2154af0000
> 0x0000000000017000 (41) vma
> (00.263740) 263: Opening 0x00007f2154af0000-0x00007f2154af1000
> 0x0000000000016000 (41) vma
> (00.263743) 263: Opening 0x00007f2154af1000-0x00007f2154af2000
> 0x0000000000017000 (41) vma
> (00.263746) 263: Opening 0x00007f2154af2000-0x00007f2154b15000
> 0x0000000000000000 (41) vma
> (00.263750) 263: Opening 0x00007f2154d0a000-0x00007f2154d0f000
> 0x0000000000000000 (201) vma
> (00.263753) 263: Opening 0x00007f2154d12000-0x00007f2154d14000
> 0x0000000000000000 (201) vma
> (00.263756) 263: Opening 0x00007f2154d14000-0x00007f2154d15000
> 0x0000000000022000 (41) vma
> (00.263759) 263: Opening 0x00007f2154d15000-0x00007f2154d16000
> 0x0000000000023000 (41) vma
> (00.263762) 263: Opening 0x00007f2154d16000-0x00007f2154d17000
> 0x0000000000000000 (201) vma
> (00.263778) 263: Opening 0x00007f2154d17000-0x00007f2154d36000
> 0x0000000000000000 (41) vma
> (00.263782) 263: Opening 0x00007f2154f35000-0x00007f2154f37000
> 0x000000000001e000 (41) vma
> (00.263785) 263: Opening 0x00007f2154f37000-0x00007f2154f38000
> 0x0000000000020000 (41) vma
> (00.263807) 263: Opening 0x00007f2155d2b000-0x00007f2155d6d000
> 0x0000000000000000 (221) vma
> (00.263817) 263: Opening 0x00007fff88b28000-0x00007fff88b4a000
> 0x0000000000000000 (201) vma
> (00.263824) 263: Opening 0x00007fff88b98000-0x00007fff88b9a000
> 0x0000000000000000 (209) vma
> (00.263882) 263: Restore via sigreturn
> (00.263886) 263: 1 threads require 40K of memory
> (00.263963) 263: Parsed 400000-48e000 vma
> (00.263970) 263: Parsed 68d000-68e000 vma
> (00.263974) 263: Parsed 68e000-69b000 vma
> (00.263977) 263: Parsed 69b000-6a4000 vma
> (00.263981) 263: Parsed af1000-b12000 vma
> (00.263984) 263: Parsed b12000-b54000 vma
> (00.263988) 263: Parsed 7f8d75d9e000-7f8d75db7000 vma
> (00.263992) 263: Parsed 7f8d75db7000-7f8d75fb6000 vma
> (00.263995) 263: Parsed 7f8d75fb6000-7f8d75fb7000 vma
> (00.263999) 263: Parsed 7f8d75fb7000-7f8d75fb8000 vma
> (00.264002) 263: Parsed 7f8d75fb8000-7f8d75fbc000 vma
> (00.264017) 263: Parsed 7f8d75fbc000-7f8d75fc3000 vma
> (00.264027) 263: Parsed 7f8d75fc3000-7f8d761c2000 vma
> (00.264031) 263: Parsed 7f8d761c2000-7f8d761c3000 vma
> (00.264034) 263: Parsed 7f8d761c3000-7f8d761c4000 vma
> (00.264038) 263: Parsed 7f8d761c4000-7f8d7637f000 vma
> (00.264042) 263: Parsed 7f8d7637f000-7f8d7657f000 vma
> (00.264045) 263: Parsed 7f8d7657f000-7f8d76583000 vma
> (00.264049) 263: Parsed 7f8d76583000-7f8d76585000 vma
> (00.264052) 263: Parsed 7f8d76585000-7f8d7658a000 vma
> (00.264056) 263: Parsed 7f8d7658a000-7f8d765ce000 vma
> (00.264070) 263: Parsed 7f8d765ce000-7f8d767cd000 vma
> (00.264074) 263: Parsed 7f8d767cd000-7f8d767ce000 vma
> (00.264077) 263: Parsed 7f8d767ce000-7f8d767cf000 vma
> (00.264081) 263: Parsed 7f8d767cf000-7f8d767d7000 vma
> (00.264084) 263: Parsed 7f8d767d7000-7f8d769d7000 vma
> (00.264088) 263: Parsed 7f8d769d7000-7f8d769d8000 vma
> (00.264091) 263: Parsed 7f8d769d8000-7f8d769d9000 vma
> (00.264098) 263: Parsed 7f8d769d9000-7f8d769f0000 vma
> (00.264102) 263: Parsed 7f8d769f0000-7f8d76bef000 vma
> (00.264116) 263: Parsed 7f8d76bef000-7f8d76bf0000 vma
> (00.264120) 263: Parsed 7f8d76bf0000-7f8d76bf1000 vma
> (00.264124) 263: Parsed 7f8d76bf1000-7f8d76c14000 vma
> (00.264128) 263: Parsed 7f8d76c14000-7f8d76c1b000 vma
> (00.264131) 263: Parsed 7f8d76c1b000-7f8d76c1c000 vma
> (00.264134) 263: Parsed 7f8d76c1c000-7f8d76c1d000 vma
> (00.264138) 263: Parsed 7f8d76c1d000-7f8d76c1e000 vma
> (00.264141) 263: Parsed 7f8d76c1e000-7f8d76c3d000 vma
> (00.264145) 263: Parsed 7f8d76c3d000-7f8d76c3f000 vma
> (00.264148) 263: Parsed 7f8d76c3f000-7f8d76c40000 vma
> (00.264151) 263: Parsed 7f8d76c40000-7f8d76c82000 vma
> (00.264166) 263: Parsed 7f8d76c84000-7f8d76ca5000 vma
> (00.264170) 263: Parsed 7f8d76ca5000-7f8d76ca7000 vma
> (00.264173) 263: Parsed 7f8d76ca7000-7f8d76cb2000 vma
> (00.264177) 263: Parsed 7f8d76cb2000-7f8d76eb1000 vma
> (00.264180) 263: Parsed 7f8d76eb1000-7f8d76eb2000 vma
> (00.264184) 263: Parsed 7f8d76eb2000-7f8d76eb3000 vma
> (00.264187) 263: Parsed 7f8d76eb3000-7f8d76ebe000 vma
> (00.264191) 263: Parsed 7f8d76ebe000-7f8d770bd000 vma
> (00.264194) 263: Parsed 7f8d770bd000-7f8d770be000 vma
> (00.264198) 263: Parsed 7f8d770be000-7f8d770bf000 vma
> (00.264213) 263: Parsed 7f8d770bf000-7f8d770d6000 vma
> (00.264218) 263: Parsed 7f8d770d6000-7f8d772d5000 vma
> (00.264222) 263: Parsed 7f8d772d5000-7f8d772d6000 vma
> (00.264225) 263: Parsed 7f8d772d6000-7f8d772d7000 vma
> (00.264229) 263: Parsed 7f8d772d7000-7f8d772d9000 vma
> (00.264232) 263: Parsed 7f8d772d9000-7f8d772e2000 vma
> (00.264236) 263: Parsed 7f8d772e2000-7f8d774e1000 vma
> (00.264239) 263: Parsed 7f8d774e1000-7f8d774e2000 vma
> (00.264242) 263: Parsed 7f8d774e2000-7f8d774e3000 vma
> (00.264257) 263: Parsed 7f8d774e3000-7f8d774e6000 vma
> (00.264261) 263: Parsed 7f8d774e6000-7f8d776e5000 vma
> (00.264264) 263: Parsed 7f8d776e5000-7f8d776e6000 vma
> (00.264268) 263: Parsed 7f8d776e6000-7f8d776e7000 vma
> (00.264271) 263: Parsed 7f8d776e7000-7f8d77724000 vma
> (00.264275) 263: Parsed 7f8d77724000-7f8d77923000 vma
> (00.264278) 263: Parsed 7f8d77923000-7f8d77924000 vma
> (00.264281) 263: Parsed 7f8d77924000-7f8d77925000 vma
> (00.264285) 263: Parsed 7f8d77925000-7f8d7793e000 vma
> (00.264288) 263: Parsed 7f8d7793e000-7f8d77b3d000 vma
> (00.264301) 263: Parsed 7f8d77b3d000-7f8d77b3e000 vma
> (00.264305) 263: Parsed 7f8d77b3e000-7f8d77b3f000 vma
> (00.264308) 263: Parsed 7f8d77b3f000-7f8d77b43000 vma
> (00.264312) 263: Parsed 7f8d77b43000-7f8d77cfe000 vma
> (00.264318) 263: Parsed 7f8d77cfe000-7f8d77efe000 vma
> (00.264322) 263: Parsed 7f8d77efe000-7f8d77f02000 vma
> (00.264326) 263: Parsed 7f8d77f02000-7f8d77f04000 vma
> (00.264329) 263: Parsed 7f8d77f04000-7f8d77f09000 vma
> (00.264333) 263: Parsed 7f8d77f09000-7f8d77f10000 vma
> (00.264336) 263: Parsed 7f8d77f10000-7f8d7810f000 vma
> (00.264350) 263: Parsed 7f8d7810f000-7f8d78110000 vma
> (00.264354) 263: Parsed 7f8d78110000-7f8d78111000 vma
> (00.264357) 263: Parsed 7f8d78111000-7f8d7811a000 vma
> (00.264361) 263: Parsed 7f8d7811a000-7f8d78319000 vma
> (00.264368) 263: Parsed 7f8d78319000-7f8d7831a000 vma
> (00.264372) 263: Parsed 7f8d7831a000-7f8d7831b000 vma
> (00.264376) 263: Parsed 7f8d7831b000-7f8d7833b000 vma
> (00.264379) 263: Parsed 7f8d7833b000-7f8d7853a000 vma
> (00.264383) 263: Parsed 7f8d7853a000-7f8d7853b000 vma
> (00.264397) 263: Parsed 7f8d7853b000-7f8d7853c000 vma
> (00.264401) 263: Parsed 7f8d7853c000-7f8d7853e000 vma
> (00.264405) 263: Parsed 7f8d7853e000-7f8d78582000 vma
> (00.264408) 263: Parsed 7f8d78582000-7f8d78781000 vma
> (00.264412) 263: Parsed 7f8d78781000-7f8d78782000 vma
> (00.264415) 263: Parsed 7f8d78782000-7f8d78783000 vma
> (00.264419) 263: Parsed 7f8d78783000-7f8d7878b000 vma
> (00.264422) 263: Parsed 7f8d7878b000-7f8d7898b000 vma
> (00.264425) 263: Parsed 7f8d7898b000-7f8d7898c000 vma
> (00.264432) 263: Parsed 7f8d7898c000-7f8d7898d000 vma
> (00.264447) 263: Parsed 7f8d7898d000-7f8d789a4000 vma
> (00.264451) 263: Parsed 7f8d789a4000-7f8d78ba3000 vma
> (00.264454) 263: Parsed 7f8d78ba3000-7f8d78ba4000 vma
> (00.264458) 263: Parsed 7f8d78ba4000-7f8d78ba5000 vma
> (00.264461) 263: Parsed 7f8d78ba5000-7f8d78bc8000 vma
> (00.264465) 263: Parsed 7f8d78bc8000-7f8d78bd0000 vma
> (00.264468) 263: Parsed 7f8d78bd0000-7f8d78bd1000 vma
> (00.264472) 263: Parsed 7f8d78bd1000-7f8d78bd2000 vma
> (00.264475) 263: Parsed 7f8d78bd2000-7f8d78bd3000 vma
> (00.264478) 263: Parsed 7f8d78bd3000-7f8d78c11000 vma
> (00.264482) 263: Parsed 7f8d78c11000-7f8d78c13000 vma
> (00.264496) 263: Parsed 7f8d78c13000-7f8d78c14000 vma
> (00.264500) 263: Parsed 7f8d78c14000-7f8d78cf9000 vma
> (00.264504) 263: Parsed 7f8d78cfa000-7f8d78d1c000 vma
> (00.264508) 263: Parsed 7f8d78d1c000-7f8d78d1e000 vma
> (00.264511) 263: Parsed 7f8d78d1e000-7f8d78ed9000 vma
> (00.264514) 263: Parsed 7f8d78ed9000-7f8d790d9000 vma
> (00.264518) 263: Parsed 7f8d790d9000-7f8d790dd000 vma
> (00.264521) 263: Parsed 7f8d790dd000-7f8d790df000 vma
> (00.264525) 263: Parsed 7f8d790df000-7f8d790e4000 vma
> (00.264528) 263: Parsed 7f8d790e4000-7f8d790e7000 vma
> (00.264531) 263: Parsed 7f8d790e7000-7f8d792e6000 vma
> (00.264537) 263: Parsed 7f8d792e6000-7f8d792e7000 vma
> (00.264551) 263: Parsed 7f8d792e7000-7f8d792e8000 vma
> (00.264556) 263: Parsed 7f8d792e8000-7f8d792ef000 vma
> (00.264559) 263: Parsed 7f8d792ef000-7f8d794ef000 vma
> (00.264563) 263: Parsed 7f8d794ef000-7f8d794f0000 vma
> (00.264566) 263: Parsed 7f8d794f0000-7f8d794f1000 vma
> (00.264570) 263: Parsed 7f8d794f1000-7f8d7950a000 vma
> (00.264573) 263: Parsed 7f8d7950a000-7f8d79709000 vma
> (00.264576) 263: Parsed 7f8d79709000-7f8d7970a000 vma
> (00.264580) 263: Parsed 7f8d7970a000-7f8d7970b000 vma
> (00.264595) 263: Parsed 7f8d7970b000-7f8d7970f000 vma
> (00.264599) 263: Parsed 7f8d7970f000-7f8d79732000 vma
> (00.264603) 263: Parsed 7f8d79917000-7f8d7991b000 vma
> (00.264607) 263: Parsed 7f8d79922000-7f8d79925000 vma
> (00.264610) 263: Parsed 7f8d79925000-7f8d7992a000 vma
> (00.264613) 263: Parsed 7f8d7992a000-7f8d7992c000 vma
> (00.264617) 263: Parsed 7f8d7992c000-7f8d7992d000 vma
> (00.264620) 263: Parsed 7f8d7992d000-7f8d7992f000 vma
> (00.264624) 263: Parsed 7f8d7992f000-7f8d79931000 vma
> (00.264627) 263: Parsed 7f8d79931000-7f8d79932000 vma
> (00.264630) 263: Parsed 7f8d79932000-7f8d79933000 vma
> (00.264634) 263: Parsed 7f8d79933000-7f8d79934000 vma
> (00.264637) 263: Parsed 7fff2a634000-7fff2a655000 vma
> (00.264643) 263: Parsed 7fff2a7f2000-7fff2a7f4000 vma
> (00.264648) 263: Parsed ffffffffff600000-ffffffffff601000 vma
> (00.264668) 263: Found bootstrap VMA hint at: 0x10000 (needs ~80K)
> (00.264712) 263: call mremap(0x7f8d79923000, 8192, 8192, MAYMOVE | FIXED,
> 0x20000)
> (00.264736) 263: xsave runtime structure
> (00.264742) 263: -----------------------
> (00.264745) 263: cwd:37f swd:0 twd:0 fop:0 mxcsr:1f80 mxcsr_mask:ffff
> (00.264749) 263: magic1:46505853 extended_size:344 xstate_bv:7 xstate_size:340
> (00.264752) 263: xstate_bv: 7
> (00.264755) 263: -----------------------
> (00.264758) 263: Thread 0 stack 0x15540 rt_sigframe 0x1d540
> (00.264917) 263: Going to chroot into /proc/self/fd/10
> (00.264960) 263: Restoring umask to 0
> (00.264970) 263: task_args: 0x15000
> task_args->pid: 263
> task_args->nr_threads: 1
> task_args->clone_restore_fn: 0x10a00
> task_args->thread_args: 0x154c0
> pie: Switched to the restorer 263
> pie: vdso: Remap rt-vdso 0x7fff2a7f2000 -> 0x22000
> pie: Remap 0x7f8d75d9e000->0x7f2153c9f000 len 0x19000
> pie: Remap 0x7f8d75db7000->0x7f2153cb8000 len 0x1ff000
> pie: Remap 0x7f8d75fb6000->0x7f2153eb7000 len 0x1000
> pie: Remap 0x7f8d75fb7000->0x7f2153eb8000 len 0x1000
> pie: Remap 0x7f8d75fb8000->0x7f2153eb9000 len 0x4000
> pie: Remap 0x7f8d75fbc000->0x7f2153ebd000 len 0x7000
> pie: Remap 0x7f8d75fc3000->0x7f2153ec4000 len 0x1ff000
> pie: Remap 0x7f8d761c2000->0x7f21540c3000 len 0x1000
> pie: Remap 0x7f8d761c3000->0x7f21540c4000 len 0x1000
> pie: Remap 0x7f8d761c4000->0x7f21540c5000 len 0x1bb000
> pie: Remap 0x7f8d7637f000->0x7f2154280000 len 0x200000
> pie: Remap 0x7f8d7657f000->0x7f2154480000 len 0x4000
> pie: Remap 0x7f8d76583000->0x7f2154484000 len 0x2000
> pie: Remap 0x7f8d76585000->0x7f2154486000 len 0x5000
> pie: Remap 0x7f8d7658a000->0x7f215448b000 len 0x44000
> pie: Remap 0x7f8d765ce000->0x7f21544cf000 len 0x1ff000
> pie: Remap 0x7f8d767cd000->0x7f21546ce000 len 0x1000
> pie: Remap 0x7f8d767ce000->0x7f21546cf000 len 0x1000
> pie: Remap 0x7f8d767cf000->0x7f21546d0000 len 0x8000
> pie: Remap 0x7f8d767d7000->0x7f21546d8000 len 0x200000
> pie: Remap 0x7f8d769d7000->0x7f21548d8000 len 0x1000
> pie: Remap 0x7f8d769d8000->0x7f21548d9000 len 0x1000
> pie: Remap 0x7f8d769d9000->0x7f21548da000 len 0x17000
> pie: Remap 0x7f8d769f0000->0x7f21548f1000 len 0x1ff000
> pie: Remap 0x7f8d76bef000->0x7f2154af0000 len 0x1000
> pie: Remap 0x7f8d76bf0000->0x7f2154af1000 len 0x1000
> pie: Remap 0x7f8d76bf1000->0x7f2154af2000 len 0x23000
> pie: Remap 0x7f8d76c14000->0x7f2154d0a000 len 0x5000
> pie: Remap 0x7f8d76c19000->0x7f2154d12000 len 0x2000
> pie: Remap 0x7f8d76c1b000->0x7f2154d14000 len 0x1000
> pie: Remap 0x7f8d76c1c000->0x7f2154d15000 len 0x1000
> pie: Remap 0x7f8d76c1d000->0x7f2154d16000 len 0x1000
> pie: Remap 0x7f8d76c1e000->0x7f2154d17000 len 0x1f000
> pie: Remap 0x7f8d76c3d000->0x7f2154f35000 len 0x2000
> pie: Remap 0x7f8d76c3f000->0x7f2154f37000 len 0x1000
> pie: Remap 0x7f8d76c40000->0x7f2155d2b000 len 0x42000
> pie: Remap 0x7f8d76ca5000->0x7fff88b98000 len 0x2000
> pie: vdso: Parsing at 0x7fff88b98000 0x7fff88b9a000
> pie: vdso: Base address 0xffffffffff700000
> pie: vdso: Runtime vdso matches dumpee, remap inplace
> pie: vdso: Remap right dumpee 0x22000 -> 0x7fff88b98000
> pie: Remap 0x7f8d76c83000->0x7fff88b28000 len 0x22000
> pie: Restoring EXE link
> pie: Restoring scheduler params 0.0.0
> pie: 263: Restored
> (00.265613) 166: 4 restore sndbuf 212992 rcv buf 212992
> (00.265629) 166: restore priority 0 for socket
> (00.265634) 166: restore rcvlowat 1 for socket
> (00.265637) 166: restore mark 0 for socket
> (00.265650) 166: Create fd for 3
> (00.265657) 166: Restoring fd 4 (state -> create)
> (00.265661) 166: Creating pipe pipe_id=0x24a4a id=0x22
> (00.265710) 166: Restoring size 0x10000 for 0x24a4a
> (00.265722) 166: Wait fdinfo pid=166 fd=5
> (00.265727) 166: Send fd 6 to /crtools-fd-166-5
> (00.265743) 166: Create fd for 4
> (00.265750) 166: Restoring fd 5 (state -> create)
> (00.265753) 166: Creating pipe pipe_id=0x24a4a id=0x23
> (00.265757) 166: Waiting fd for 5
> (00.265783) 166: Create fd for 5
> (00.265807) 166: Restoring fd 6 (state -> create)
> (00.265822) 166: Opening netlink socket id 0x24
> (00.265851) 166: 6 restore sndbuf 212992 rcv buf 268435456
> (00.265858) 166: restore priority 0 for socket
> (00.265862) 166: restore rcvlowat 1 for socket
> (00.265866) 166: restore mark 0 for socket
> (00.265870) 166: set passcred for socket
> (00.265877) 166: Create fd for 6
> (00.265885) 166: Restoring fd 0 (state -> receive)
> (00.265889) 166: Restoring fd 1 (state -> receive)
> (00.265893) 166: Restoring fd 2 (state -> receive)
> (00.265895) 166: Restoring fd 3 (state -> receive)
> (00.265898) 166: Restoring fd 4 (state -> receive)
> (00.265901) 166: Restoring fd 5 (state -> receive)
> (00.265910) 166: Restoring fd 6 (state -> receive)
> (00.265914) 166: Restoring fd 0 (state -> post_create)
> (00.265917) 166: Restoring fd 1 (state -> post_create)
> (00.265920) 166: Restoring fd 2 (state -> post_create)
> (00.265923) 166: Restoring fd 3 (state -> post_create)
> (00.265926) 166: Restoring fd 4 (state -> post_create)
> (00.265929) 166: Restoring fd 5 (state -> post_create)
> (00.265932) 166: Restoring fd 6 (state -> post_create)
> (00.265939) 166: Restore file locks.
> (00.266085) 166: Opening 0x00007f5ca00cf000-0x00007f5ca00e8000
> 0x0000000000000000 (41) vma
> (00.266091) 166: Opening 0x00007f5ca00e8000-0x00007f5ca02e7000
> 0x0000000000019000 (41) vma
> (00.266094) 166: Opening 0x00007f5ca02e7000-0x00007f5ca02e8000
> 0x0000000000018000 (41) vma
> (00.266098) 166: Opening 0x00007f5ca02e8000-0x00007f5ca02e9000
> 0x0000000000019000 (41) vma
> (00.266101) 166: Opening 0x00007f5ca02e9000-0x00007f5ca02ed000
> 0x0000000000000000 (201) vma
> (00.266104) 166: Opening 0x00007f5ca02ed000-0x00007f5ca02f4000
> 0x0000000000000000 (41) vma
> (00.266108) 166: Opening 0x00007f5ca02f4000-0x00007f5ca04f3000
> 0x0000000000007000 (41) vma
> (00.266111) 166: Opening 0x00007f5ca04f3000-0x00007f5ca04f4000
> 0x0000000000006000 (41) vma
> (00.266114) 166: Opening 0x00007f5ca04f4000-0x00007f5ca04f5000
> 0x0000000000007000 (41) vma
> (00.266118) 166: Opening 0x00007f5ca04f5000-0x00007f5ca06b0000
> 0x0000000000000000 (41) vma
> (00.266121) 166: Opening 0x00007f5ca06b0000-0x00007f5ca08b0000
> 0x00000000001bb000 (41) vma
> (00.266124) 166: Opening 0x00007f5ca08b0000-0x00007f5ca08b4000
> 0x00000000001bb000 (41) vma
> (00.266127) 166: Opening 0x00007f5ca08b4000-0x00007f5ca08b6000
> 0x00000000001bf000 (41) vma
> (00.266130) 166: Opening 0x00007f5ca08b6000-0x00007f5ca08bb000
> 0x0000000000000000 (201) vma
> (00.266134) 166: Opening 0x00007f5ca08bb000-0x00007f5ca08cb000
> 0x0000000000000000 (41) vma
> (00.266137) 166: Opening 0x00007f5ca08cb000-0x00007f5ca0aca000
> 0x0000000000010000 (41) vma
> (00.266140) 166: Opening 0x00007f5ca0aca000-0x00007f5ca0acb000
> 0x000000000000f000 (41) vma
> (00.266143) 166: Opening 0x00007f5ca0acb000-0x00007f5ca0acc000
> 0x0000000000010000 (41) vma
> (00.266146) 166: Opening 0x00007f5ca0acc000-0x00007f5ca0b10000
> 0x0000000000000000 (41) vma
> (00.266149) 166: Opening 0x00007f5ca0b10000-0x00007f5ca0d0f000
> 0x0000000000044000 (41) vma
> (00.266152) 166: Opening 0x00007f5ca0d0f000-0x00007f5ca0d10000
> 0x0000000000043000 (41) vma
> (00.266156) 166: Opening 0x00007f5ca0d10000-0x00007f5ca0d11000
> 0x0000000000044000 (41) vma
> (00.266159) 166: Opening 0x00007f5ca0d11000-0x00007f5ca0d19000
> 0x0000000000000000 (41) vma
> (00.266162) 166: Opening 0x00007f5ca0d19000-0x00007f5ca0f19000
> 0x0000000000008000 (41) vma
> (00.266165) 166: Opening 0x00007f5ca0f19000-0x00007f5ca0f1a000
> 0x0000000000008000 (41) vma
> (00.266168) 166: Opening 0x00007f5ca0f1a000-0x00007f5ca0f1b000
> 0x0000000000009000 (41) vma
> (00.266171) 166: Opening 0x00007f5ca0f1b000-0x00007f5ca0f32000
> 0x0000000000000000 (41) vma
> (00.266174) 166: Opening 0x00007f5ca0f32000-0x00007f5ca1131000
> 0x0000000000017000 (41) vma
> (00.266177) 166: Opening 0x00007f5ca1131000-0x00007f5ca1132000
> 0x0000000000016000 (41) vma
> (00.266181) 166: Opening 0x00007f5ca1132000-0x00007f5ca1133000
> 0x0000000000017000 (41) vma
> (00.266184) 166: Opening 0x00007f5ca1133000-0x00007f5ca1156000
> 0x0000000000000000 (41) vma
> (00.266187) 166: Opening 0x00007f5ca134b000-0x00007f5ca1350000
> 0x0000000000000000 (201) vma
> (00.266190) 166: Opening 0x00007f5ca1353000-0x00007f5ca1355000
> 0x0000000000000000 (201) vma
> (00.266193) 166: Opening 0x00007f5ca1355000-0x00007f5ca1356000
> 0x0000000000022000 (41) vma
> (00.266197) 166: Opening 0x00007f5ca1356000-0x00007f5ca1357000
> 0x0000000000023000 (41) vma
> (00.266200) 166: Opening 0x00007f5ca1357000-0x00007f5ca1358000
> 0x0000000000000000 (201) vma
> (00.266203) 166: Opening 0x00007f5ca1358000-0x00007f5ca1369000
> 0x0000000000000000 (41) vma
> (00.266206) 166: Opening 0x00007f5ca1569000-0x00007f5ca156a000
> 0x0000000000011000 (41) vma
> (00.266213) 166: Opening 0x00007f5ca156a000-0x00007f5ca156b000
> 0x0000000000012000 (41) vma
> (00.266217) 166: Opening 0x00007f5ca2f7f000-0x00007f5ca2fa0000
> 0x0000000000000000 (221) vma
> (00.266221) 166: Opening 0x00007fff7663e000-0x00007fff76660000
> 0x0000000000000000 (201) vma
> (00.266224) 166: Opening 0x00007fff76767000-0x00007fff76769000
> 0x0000000000000000 (209) vma
> (00.266261) 166: Restore via sigreturn
> (00.266266) 166: 1 threads require 40K of memory
> (00.266332) 166: Parsed 400000-48e000 vma
> (00.266339) 166: Parsed 68d000-68e000 vma
> (00.266343) 166: Parsed 68e000-69b000 vma
> (00.266347) 166: Parsed 69b000-6a4000 vma
> (00.266350) 166: Parsed af1000-b12000 vma
> (00.266354) 166: Parsed b12000-b54000 vma
> (00.266357) 166: Parsed 7f8d75bbd000-7f8d75bd6000 vma
> (00.266361) 166: Parsed 7f8d75bd6000-7f8d75dd5000 vma
> (00.266364) 166: Parsed 7f8d75dd5000-7f8d75dd6000 vma
> (00.266368) 166: Parsed 7f8d75dd6000-7f8d75dd7000 vma
> (00.266371) 166: Parsed 7f8d75dd7000-7f8d75ddb000 vma
> (00.266386) 166: Parsed 7f8d75ddb000-7f8d75de2000 vma
> (00.266391) 166: Parsed 7f8d75de2000-7f8d75fe1000 vma
> (00.266394) 166: Parsed 7f8d75fe1000-7f8d75fe2000 vma
> (00.266398) 166: Parsed 7f8d75fe2000-7f8d75fe3000 vma
> (00.266401) 166: Parsed 7f8d75fe3000-7f8d7619e000 vma
> (00.266405) 166: Parsed 7f8d7619e000-7f8d7639e000 vma
> (00.266408) 166: Parsed 7f8d7639e000-7f8d763a2000 vma
> (00.266412) 166: Parsed 7f8d763a2000-7f8d763a4000 vma
> (00.266415) 166: Parsed 7f8d763a4000-7f8d763a9000 vma
> (00.266419) 166: Parsed 7f8d763a9000-7f8d763b9000 vma
> (00.266433) 166: Parsed 7f8d763b9000-7f8d765b8000 vma
> (00.266437) 166: Parsed 7f8d765b8000-7f8d765b9000 vma
> (00.266440) 166: Parsed 7f8d765b9000-7f8d765ba000 vma
> (00.266444) 166: Parsed 7f8d765ba000-7f8d765fe000 vma
> (00.266447) 166: Parsed 7f8d765fe000-7f8d767fd000 vma
> (00.266450) 166: Parsed 7f8d767fd000-7f8d767fe000 vma
> (00.266457) 166: Parsed 7f8d767fe000-7f8d767ff000 vma
> (00.266461) 166: Parsed 7f8d767ff000-7f8d76807000 vma
> (00.266464) 166: Parsed 7f8d76807000-7f8d76a07000 vma
> (00.266478) 166: Parsed 7f8d76a07000-7f8d76a08000 vma
> (00.266482) 166: Parsed 7f8d76a08000-7f8d76a09000 vma
> (00.266485) 166: Parsed 7f8d76a09000-7f8d76a20000 vma
> (00.266489) 166: Parsed 7f8d76a20000-7f8d76c1f000 vma
> (00.266492) 166: Parsed 7f8d76c1f000-7f8d76c20000 vma
> (00.266496) 166: Parsed 7f8d76c20000-7f8d76c21000 vma
> (00.266499) 166: Parsed 7f8d76c21000-7f8d76c44000 vma
> (00.266502) 166: Parsed 7f8d76c44000-7f8d76c4b000 vma
> (00.266506) 166: Parsed 7f8d76c4b000-7f8d76c4c000 vma
> (00.266520) 166: Parsed 7f8d76c4c000-7f8d76c4d000 vma
> (00.266525) 166: Parsed 7f8d76c4d000-7f8d76c4e000 vma
> (00.266528) 166: Parsed 7f8d76c4e000-7f8d76c5f000 vma
> (00.266532) 166: Parsed 7f8d76c5f000-7f8d76c60000 vma
> (00.266535) 166: Parsed 7f8d76c60000-7f8d76c61000 vma
> (00.266538) 166: Parsed 7f8d76c61000-7f8d76c82000 vma
> (00.266542) 166: Parsed 7f8d76c84000-7f8d76ca5000 vma
> (00.266545) 166: Parsed 7f8d76ca5000-7f8d76ca7000 vma
> (00.266548) 166: Parsed 7f8d76ca7000-7f8d76cb2000 vma
> (00.266552) 166: Parsed 7f8d76cb2000-7f8d76eb1000 vma
> (00.266555) 166: Parsed 7f8d76eb1000-7f8d76eb2000 vma
> (00.266561) 166: Parsed 7f8d76eb2000-7f8d76eb3000 vma
> (00.266575) 166: Parsed 7f8d76eb3000-7f8d76ebe000 vma
> (00.266579) 166: Parsed 7f8d76ebe000-7f8d770bd000 vma
> (00.266583) 166: Parsed 7f8d770bd000-7f8d770be000 vma
> (00.266586) 166: Parsed 7f8d770be000-7f8d770bf000 vma
> (00.266590) 166: Parsed 7f8d770bf000-7f8d770d6000 vma
> (00.266593) 166: Parsed 7f8d770d6000-7f8d772d5000 vma
> (00.266597) 166: Parsed 7f8d772d5000-7f8d772d6000 vma
> (00.266600) 166: Parsed 7f8d772d6000-7f8d772d7000 vma
> (00.266604) 166: Parsed 7f8d772d7000-7f8d772d9000 vma
> (00.266607) 166: Parsed 7f8d772d9000-7f8d772e2000 vma
> (00.266620) 166: Parsed 7f8d772e2000-7f8d774e1000 vma
> (00.266624) 166: Parsed 7f8d774e1000-7f8d774e2000 vma
> (00.266627) 166: Parsed 7f8d774e2000-7f8d774e3000 vma
> (00.266631) 166: Parsed 7f8d774e3000-7f8d774e6000 vma
> (00.266638) 166: Parsed 7f8d774e6000-7f8d776e5000 vma
> (00.266642) 166: Parsed 7f8d776e5000-7f8d776e6000 vma
> (00.266646) 166: Parsed 7f8d776e6000-7f8d776e7000 vma
> (00.266650) 166: Parsed 7f8d776e7000-7f8d77724000 vma
> (00.266653) 166: Parsed 7f8d77724000-7f8d77923000 vma
> (00.266666) 166: Parsed 7f8d77923000-7f8d77924000 vma
> (00.266670) 166: Parsed 7f8d77924000-7f8d77925000 vma
> (00.266673) 166: Parsed 7f8d77925000-7f8d7793e000 vma
> (00.266680) 166: Parsed 7f8d7793e000-7f8d77b3d000 vma
> (00.266684) 166: Parsed 7f8d77b3d000-7f8d77b3e000 vma
> (00.266687) 166: Parsed 7f8d77b3e000-7f8d77b3f000 vma
> (00.266691) 166: Parsed 7f8d77b3f000-7f8d77b43000 vma
> (00.266694) 166: Parsed 7f8d77b43000-7f8d77cfe000 vma
> (00.266698) 166: Parsed 7f8d77cfe000-7f8d77efe000 vma
> (00.266711) 166: Parsed 7f8d77efe000-7f8d77f02000 vma
> (00.266716) 166: Parsed 7f8d77f02000-7f8d77f04000 vma
> (00.266719) 166: Parsed 7f8d77f04000-7f8d77f09000 vma
> (00.266723) 166: Parsed 7f8d77f09000-7f8d77f10000 vma
> (00.266726) 166: Parsed 7f8d77f10000-7f8d7810f000 vma
> (00.266730) 166: Parsed 7f8d7810f000-7f8d78110000 vma
> (00.266733) 166: Parsed 7f8d78110000-7f8d78111000 vma
> (00.266736) 166: Parsed 7f8d78111000-7f8d7811a000 vma
> (00.266740) 166: Parsed 7f8d7811a000-7f8d78319000 vma
> (00.266743) 166: Parsed 7f8d78319000-7f8d7831a000 vma
> (00.266757) 166: Parsed 7f8d7831a000-7f8d7831b000 vma
> (00.266761) 166: Parsed 7f8d7831b000-7f8d7833b000 vma
> (00.266765) 166: Parsed 7f8d7833b000-7f8d7853a000 vma
> (00.266781) 166: Parsed 7f8d7853a000-7f8d7853b000 vma
> (00.266785) 166: Parsed 7f8d7853b000-7f8d7853c000 vma
> (00.266862) 1: Error (tty.c:614): tty: Can't open 9 (index 0): Bad file
> descriptor
> (00.298420) Error (cr-restore.c:1037): 35921 exited, status=255
> (00.298463) Error (cr-restore.c:1579): Restoring FAILED.
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> linuxchyu at sina.com
>
>
> From: linuxchyu at sina.com
> Date: 2014-03-26 15:58
> To: criu
> Subject: "tty: Can't open 9 (index 0): Bad file descriptor" occurred in the
> restoring step
>
> Hello everyone. I caught an error when i was using the test for dumping/
> restoring an LXC container. The dumping step was all right , but the
> following error occurred in the restoring step, which could be find in the
> restore.log.
>
> (00.266862) 1: Error (tty.c:614): tty: Can't open 9 (index 0): Bad file
> descriptor
Looks like the terminal with index 0 is already used.
Do you mount devpts with the newinstance option? If you don't know, you
can try to find this options in /path_to_ct/etc/fstab or /path_to_ct/etc/filesystems.
Could you show output of "lsof | grep pts/0" and "ls -li /dev/pts" from host and from CT?
Thanks
> (00.298420) Error (cr-restore.c:1037): 35921 exited, status=255
> (00.298463) Error (cr-restore.c:1579): Restoring FAILED.
>
> My OS is Ubuntu13.10. I have set lxc.console=none lxc.tty = 0 and removed
> the "lxc.cgroup.devices.allow = c 5:1 rwm" from the container config.
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> linuxchyu at sina.com
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
More information about the CRIU
mailing list