[CRIU] zdtm/static/fd failure on aarch64

Adrian Reber adrian at lisas.de
Mon Jun 11 17:52:32 MSK 2018


On Mon, Jun 11, 2018 at 03:47:02PM +0100, Dmitry Safonov wrote:
> > following tests are still failing on aarch64 on my setup:
> >
> >  * zdtm/static/fd(h)
> >  * zdtm/static/cow01(h)
> >  * zdtm/transition/maps007(h)
> >
> > I started to look closer at zdtm/static/fd and it seems to fail while
> > running the mutex_lock() function:
> >
> > 10:12:24.210:  3813: ERR: ../lib/lock.h:148: futex (errno = 11 (Resource temporarily unavailable))
> > 10:12:24.211:  3812: ERR: test.c:256: Test exited on unexpected signal 6
> >
> > In strace I see the following:
> >
> > [pid  3813] futex(0xffff9c140000, FUTEX_WAIT, 2618556417, NULL) = -1 EAGAIN (Resource temporarily unavailable)
> >
> > So somehow it cannot do the lock and fails.
> >
> > Any ideas what might be wrong here.
> >
> > In the code there is mmap(... PAGE_SIZE ...) which is done using the
> > correct value for that platform.
> 
> Could you try with the attached patch?
> 
[...]
> -		BUG_ON(ret < 0 && errno != -EWOULDBLOCK);
> +		BUG_ON(ret < 0 && errno != EWOULDBLOCK);

Now it goes into an endless loop writing

 10:50:30.462:  3980: ERR: ../lib/lock.h:148: futex (errno = 11 (Resource temporarily unavailable))

to the output file.

		Adrian


More information about the CRIU mailing list