<div dir="ltr"><div><div>Here are the outputs for the timerfd.img and all the fdinfo images : </div><div><br></div><div>Alex</div><div><br></div><div>pi@pi-desktop:~/checkpoint$ crit show timerfd.img </div><div>{</div><div> "magic": "TIMERFD", </div><div> "entries": [</div><div> {</div><div> "id": 24, </div><div> "flags": "0x80802", </div><div> "fown": {</div><div> "uid": 0, </div><div> "euid": 0, </div><div> "signum": 0, </div><div> "pid_type": 0, </div><div> "pid": 0</div><div> }, </div><div> "clockid": 0, </div><div> "ticks": 0, </div><div> "settime_flags": "0x3", </div><div> "vsec": 682023567, </div><div> "vnsec": 553637761, </div><div> "isec": 0, </div><div> "insec": 0</div><div> }, </div><div> {</div><div> "id": 42, </div><div> "flags": "0x80802", </div><div> "fown": {</div><div> "uid": 0, </div><div> "euid": 0, </div><div> "signum": 0, </div><div> "pid_type": 0, </div><div> "pid": 0</div><div> }, </div><div> "clockid": 1, </div><div> "ticks": 0, </div><div> "settime_flags": "0x1", </div><div> "vsec": 175, </div><div> "vnsec": 707095586, </div><div> "isec": 0, </div><div> "insec": 0</div><div> }, </div><div> {</div><div> "id": 45, </div><div> "flags": "0x80802", </div><div> "fown": {</div><div> "uid": 0, </div><div> "euid": 0, </div><div> "signum": 0, </div><div> "pid_type": 0, </div><div> "pid": 0</div><div> }, </div><div> "clockid": 0, </div><div> "ticks": 0, </div><div> "settime_flags": "0x1", </div><div> "vsec": 67651, </div><div> "vnsec": 268899125, </div><div> "isec": 0, </div><div> "insec": 0</div><div> }, </div><div> {</div><div> "id": 65, </div><div> "flags": "0x80802", </div><div> "fown": {</div><div> "uid": 0, </div><div> "euid": 0, </div><div> "signum": 0, </div><div> "pid_type": 0, </div><div> "pid": 0</div><div> }, </div><div> "clockid": 1, </div><div> "ticks": 1, </div><div> "settime_flags": "0x1", </div><div> "vsec": 0, </div><div> "vnsec": 0, </div><div> "isec": 0, </div><div> "insec": 0</div><div> }</div><div> ]</div><div>}</div></div><div><br></div><div>----------------------------------------------------</div><div><br></div><div>pi@pi-desktop:~/checkpoint$ crit show fdinfo-2.img </div><div>{</div><div> "magic": "FDINFO", </div><div> "entries": [</div><div> {</div><div> "id": 19, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 0</div><div> }, </div><div> {</div><div> "id": 19, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 1</div><div> }, </div><div> {</div><div> "id": 19, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 2</div><div> }, </div><div> {</div><div> "id": 20, </div><div> "flags": 1, </div><div> "type": "NETLINKSK", </div><div> "fd": 3</div><div> }, </div><div> {</div><div> "id": 21, </div><div> "flags": 1, </div><div> "type": "EVENTPOLL", </div><div> "fd": 4</div><div> }, </div><div> {</div><div> "id": 22, </div><div> "flags": 1, </div><div> "type": "SIGNALFD", </div><div> "fd": 5</div><div> }, </div><div> {</div><div> "id": 23, </div><div> "flags": 1, </div><div> "type": "REG", </div><div> "fd": 6</div><div> }, </div><div> {</div><div> "id": 24, </div><div> "flags": 1, </div><div> "type": "TIMERFD", </div><div> "fd": 7</div><div> }, </div><div> {</div><div> "id": 25, </div><div> "flags": 1, </div><div> "type": "EVENTPOLL", </div><div> "fd": 8</div><div> }, </div><div> {</div><div> "id": 26, </div><div> "flags": 1, </div><div> "type": "REG", </div><div> "fd": 9</div><div> }, </div><div> {</div><div> "id": 27, </div><div> "flags": 1, </div><div> "type": "INOTIFY", </div><div> "fd": 10</div><div> }, </div><div> {</div><div> "id": 28, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 11</div><div> }, </div><div> {</div><div> "id": 29, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 12</div><div> }, </div><div> {</div><div> "id": 30, </div><div> "flags": 1, </div><div> "type": "PIPE", </div><div> "fd": 13</div><div> }, </div><div> {</div><div> "id": 31, </div><div> "flags": 1, </div><div> "type": "PIPE", </div><div> "fd": 14</div><div> }, </div><div> {</div><div> "id": 32, </div><div> "flags": 1, </div><div> "type": "PIPE", </div><div> "fd": 15</div><div> }, </div><div> {</div><div> "id": 33, </div><div> "flags": 1, </div><div> "type": "PIPE", </div><div> "fd": 16</div><div> }, </div><div> {</div><div> "id": 34, </div><div> "flags": 1, </div><div> "type": "INOTIFY", </div><div> "fd": 17</div><div> }, </div><div> {</div><div> "id": 35, </div><div> "flags": 1, </div><div> "type": "INOTIFY", </div><div> "fd": 18</div><div> }, </div><div> {</div><div> "id": 36, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 19</div><div> }, </div><div> {</div><div> "id": 37, </div><div> "flags": 1, </div><div> "type": "FIFO", </div><div> "fd": 20</div><div> }, </div><div> {</div><div> "id": 38, </div><div> "flags": 1, </div><div> "type": "INOTIFY", </div><div> "fd": 21</div><div> }, </div><div> {</div><div> "id": 39, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 22</div><div> }, </div><div> {</div><div> "id": 40, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 23</div><div> }, </div><div> {</div><div> "id": 41, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 24</div><div> }, </div><div> {</div><div> "id": 42, </div><div> "flags": 1, </div><div> "type": "TIMERFD", </div><div> "fd": 25</div><div> }, </div><div> {</div><div> "id": 43, </div><div> "flags": 1, </div><div> "type": "NETLINKSK", </div><div> "fd": 26</div><div> }, </div><div> {</div><div> "id": 44, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 27</div><div> }, </div><div> {</div><div> "id": 45, </div><div> "flags": 1, </div><div> "type": "TIMERFD", </div><div> "fd": 28</div><div> }, </div><div> {</div><div> "id": 46, </div><div> "flags": 1, </div><div> "type": "INOTIFY", </div><div> "fd": 29</div><div> }, </div><div> {</div><div> "id": 47, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 31</div><div> }</div><div> ]</div><div>}</div><div><br></div><div>--------------------------------------------</div><div><br></div><div><div>pi@pi-desktop:~/checkpoint$ crit show fdinfo-3.img </div><div>{</div><div> "magic": "FDINFO", </div><div> "entries": [</div><div> {</div><div> "id": 57, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 0</div><div> }, </div><div> {</div><div> "id": 58, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 1</div><div> }, </div><div> {</div><div> "id": 58, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 2</div><div> }, </div><div> {</div><div> "id": 43, </div><div> "flags": 1, </div><div> "type": "NETLINKSK", </div><div> "fd": 3</div><div> }, </div><div> {</div><div> "id": 36, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 4</div><div> }, </div><div> {</div><div> "id": 40, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 5</div><div> }, </div><div> {</div><div> "id": 41, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 6</div><div> }, </div><div> {</div><div> "id": 59, </div><div> "flags": 1, </div><div> "type": "EVENTPOLL", </div><div> "fd": 7</div><div> }, </div><div> {</div><div> "id": 60, </div><div> "flags": 1, </div><div> "type": "REG", </div><div> "fd": 8</div><div> }, </div><div> {</div><div> "id": 61, </div><div> "flags": 1, </div><div> "type": "SIGNALFD", </div><div> "fd": 9</div><div> }, </div><div> {</div><div> "id": 62, </div><div> "flags": 1, </div><div> "type": "SIGNALFD", </div><div> "fd": 10</div><div> }, </div><div> {</div><div> "id": 63, </div><div> "flags": 1, </div><div> "type": "SIGNALFD", </div><div> "fd": 11</div><div> }, </div><div> {</div><div> "id": 64, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 12</div><div> }, </div><div> {</div><div> "id": 65, </div><div> "flags": 1, </div><div> "type": "TIMERFD", </div><div> "fd": 13</div><div> }, </div><div> {</div><div> "id": 66, </div><div> "flags": 1, </div><div> "type": "REG", </div><div> "fd": 14</div><div> }, </div><div> {</div><div> "id": 67, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 15</div><div> }, </div><div> {</div><div> "id": 47, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 16</div><div> }</div><div> ]</div><div>}</div></div><div><br></div><div>----------------------------------------</div><div><br></div><div><div>pi@pi-desktop:~/checkpoint$ crit show fdinfo-4.img </div><div>{</div><div> "magic": "FDINFO", </div><div> "entries": [</div><div> {</div><div> "id": 72, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 0</div><div> }, </div><div> {</div><div> "id": 73, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 1</div><div> }, </div><div> {</div><div> "id": 74, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 2</div><div> }, </div><div> {</div><div> "id": 75, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 3</div><div> }, </div><div> {</div><div> "id": 76, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 4</div><div> }, </div><div> {</div><div> "id": 77, </div><div> "flags": 1, </div><div> "type": "PACKETSK", </div><div> "fd": 5</div><div> }, </div><div> {</div><div> "id": 78, </div><div> "flags": 1, </div><div> "type": "INETSK", </div><div> "fd": 6</div><div> }</div><div> ]</div><div>}</div></div><div><br></div><div>------------------------</div><div><br></div><div><div>pi@pi-desktop:~/checkpoint$ crit show fdinfo-5.img </div><div>{</div><div> "magic": "FDINFO", </div><div> "entries": [</div><div> {</div><div> "id": 84, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 0</div><div> }, </div><div> {</div><div> "id": 85, </div><div> "flags": 0, </div><div> "type": "UNIXSK", </div><div> "fd": 1</div><div> }, </div><div> {</div><div> "id": 85, </div><div> "flags": 0, </div><div> "type": "UNIXSK", </div><div> "fd": 2</div><div> }, </div><div> {</div><div> "id": 86, </div><div> "flags": 1, </div><div> "type": "REG", </div><div> "fd": 3</div><div> }</div><div> ]</div><div>}</div></div><div><br></div><div><br></div><div>------------------------------------------------------------</div><div><br></div><div>pi@pi-desktop:~/checkpoint$ crit show fdinfo-6.img <br></div><div><div>{</div><div> "magic": "FDINFO", </div><div> "entries": [</div><div> {</div><div> "id": 95, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 0</div><div> }, </div><div> {</div><div> "id": 96, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 1</div><div> }, </div><div> {</div><div> "id": 96, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 2</div><div> }, </div><div> {</div><div> "id": 39, </div><div> "flags": 1, </div><div> "type": "UNIXSK", </div><div> "fd": 3</div><div> }, </div><div> {</div><div> "id": 97, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 4</div><div> }, </div><div> {</div><div> "id": 98, </div><div> "flags": 1, </div><div> "type": "REG", </div><div> "fd": 5</div><div> }</div><div> ]</div><div>}</div></div><div><br></div><div>---------------------------------------------------------------</div><div><br></div><div><div>pi@pi-desktop:~/checkpoint$ crit show fdinfo-7.img </div><div>{</div><div> "magic": "FDINFO", </div><div> "entries": [</div><div> {</div><div> "id": 100, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 0</div><div> }, </div><div> {</div><div> "id": 100, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 1</div><div> }, </div><div> {</div><div> "id": 100, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 2</div><div> }, </div><div> {</div><div> "id": 101, </div><div> "flags": 1, </div><div> "type": "REG", </div><div> "fd": 10</div><div> }</div><div> ]</div><div>}</div></div><div><br></div><div>----------------------------------------</div><div><div>pi@pi-desktop:~/checkpoint$ crit show fdinfo-8.img </div><div>{</div><div> "magic": "FDINFO", </div><div> "entries": [</div><div> {</div><div> "id": 100, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 0</div><div> }, </div><div> {</div><div> "id": 100, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 1</div><div> }, </div><div> {</div><div> "id": 100, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 2</div><div> }</div><div> ]</div><div>}</div></div><div><br></div><div>-------------------------------------------</div><div><div>pi@pi-desktop:~/checkpoint$ crit show fdinfo-9.img </div><div>{</div><div> "magic": "FDINFO", </div><div> "entries": [</div><div> {</div><div> "id": 116, </div><div> "flags": 0, </div><div> "type": "REG", </div><div> "fd": 0</div><div> }, </div><div> {</div><div> "id": 117, </div><div> "flags": 0, </div><div> "type": "UNIXSK", </div><div> "fd": 1</div><div> }, </div><div> {</div><div> "id": 117, </div><div> "flags": 0, </div><div> "type": "UNIXSK", </div><div> "fd": 2</div><div> }</div><div> ]</div><div>}</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-14 20:45 GMT+02:00 Cyrill Gorcunov <span dir="ltr"><<a href="mailto:gorcunov@gmail.com" target="_blank">gorcunov@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Jun 14, 2016 at 12:39:50PM -0600, Tycho Andersen wrote:<br>
> On Tue, Jun 14, 2016 at 08:25:32PM +0200, alex vk wrote:<br>
> > Hi again,<br>
> ><br>
> > I removed the 'lxc.console=none' from the config file, and the output of<br>
> > the <a href="http://tty.info" rel="noreferrer" target="_blank">tty.info</a> is "tty[8801:b]"<br>
> ><br>
> > However the restore now fails with this message :<br>
> ><br>
> > pie: 1: Error (pie/restorer.c:888): Can't restore ticks/time for timer><br>
> > pie: 1: fd - 0<br>
> > pie: 1: Error (pie/restorer.c:1408): Can't restore timerfd -22<br>
><br>
> It looks like the only way you'd get this is if the fd passed to<br>
> timerfd_settime was not a real timerfd. (at least based on<br>
> <a href="https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=5442e9fbd" rel="noreferrer" target="_blank">https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=5442e9fbd</a><br>
> and the check for t->ticks in the CRIU code the EINVAL you get should<br>
> come from timerfd_settime).<br>
<br>
</span>Not only. EINVAL comes from flags and settings too. So timerfd.img might help here.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Can you give the output of `crit show fdinfo-$id.img` for all your<br>
> fdinfo images?<br>
><br>
> I'm also CCing Cyrill, maybe he has a better idea :)<br>
<br>
<br>
</div></div></blockquote></div><br></div>