Re: [Xen-devel] [BUG] libxl_ctx_free calls close(0)

2017-07-24 Thread Ian Jackson
Victor Kirhenshtein writes ("Re: [Xen-devel] [BUG] libxl_ctx_free calls close(0)"): > It is 4.4.1 (4.4.1-9+deb8u9 from Debian 8 repository). Looks like Debian just > have too old version in repository. Problem is not reproduces on 4.6.5. Debian jessie is not likely to get signif

Re: [Xen-devel] [BUG] libxl_ctx_free calls close(0)

2017-07-21 Thread Wei Liu
On Fri, Jul 21, 2017 at 01:18:52PM +0300, Victor Kirhenshtein wrote: > It is 4.4.1 (4.4.1-9+deb8u9 from Debian 8 repository). Looks like > Debian just have too old version in repository. Problem is not > reproduces on 4.6.5. Right. That commit is included in 4.5, not 4.4. Just backporting that on

Re: [Xen-devel] [BUG] libxl_ctx_free calls close(0)

2017-07-21 Thread Victor Kirhenshtein
Jackson Subject: Re: [Xen-devel] [BUG] libxl_ctx_free calls close(0) Date: Fri, 21 Jul 2017 09:20:38 +0100 CC Ian Jackson I don't know which version of Xen you're using. Can you check if it contains the following commit? commit fa13f7b0c0f3d01741e35d573009503c3bf7b6a6 Author: And

Re: [Xen-devel] [BUG] libxl_ctx_free calls close(0)

2017-07-21 Thread Wei Liu
CC Ian Jackson I don't know which version of Xen you're using. Can you check if it contains the following commit? commit fa13f7b0c0f3d01741e35d573009503c3bf7b6a6 Author: Andrew Cooper AuthorDate: Mon Aug 18 14:02:37 2014 +0100 Commit: Ian Campbell CommitDate: Wed Aug 27 02:30:25 2014 +0

[Xen-devel] [BUG] libxl_ctx_free calls close(0)

2017-07-20 Thread Victor Kirhenshtein
Hello, it seems that libxl_ctx_free always calls close(0) for some reason, even if libxl never opens file descriptor 0. It sometimes closes valid descriptor in application causing random and hard to debug I/O errors. The following simple program can be used to reproduce this bug: #include #incl