Skip to contentSkip to conversation

complete build-amd64

xen-unstable bisection xen.org 3 participants 5 messages Jan 26, 2012 – Jan 27, 2012

lore
Share & tools
lore

xen.org

author Acked-by Andres Lagar-Cavilla Acked-by Andres Lagar-Cavilla
#0 lore raw

branch xen-unstable
xen branch xen-unstable
job build-amd64
test xen-build

Tree: qemu git://xenbits.xen.org/staging/qemu-xen-unstable.git
Tree: xen http://xenbits.xen.org/staging/xen-unstable.hg

*** Found and reproduced problem changeset ***

Bug is in tree: xen http://xenbits.xen.org/staging/xen-unstable.hg
Bug introduced: d5b706214616
Bug not present: 1e27e827e6a8

  changeset:   24566:d5b706214616
  user:        Olaf Hering <[email protected]>
  date:        Thu Jan 26 11:04:59 2012 +0000

tools/libxc: fix error handling in xc_mem_paging_load

xc_mem_paging_load() does not pass errors in errno and the actual errno from xc_mem_event_control() is overwritten by munlock(). xenpaging_populate_page() needs to check errno, but with the switch to xc_mem_paging_load() it could not receive ENOMEM anymore.

Update xc_mem_paging_load() to return -1 and preserve errno during munlock().

For bisection revision-tuple graph see:
http://www.chiark.greenend.org.uk/~xensrcts/results/bisect.xen-unstable.build-amd64.xen-build.html
Revision IDs in each graph node refer, respectively, to the Trees above.

----------------------------------------
Searching for failure / basis pass:
11609 fail [host=moss-bug] / 11601 ok.
Failure / basis pass flights: 11609 / 11601
Tree: qemu git://xenbits.xen.org/staging/qemu-xen-unstable.git
Tree: xen http://xenbits.xen.org/staging/xen-unstable.hg
Latest bb36d632e4cabf47882adff07a45c6702c4a5b30 570d0ea0ad2f
Basis pass bb36d632e4cabf47882adff07a45c6702c4a5b30 4271634e4c86
Generating revisions with ./adhoc-revtuple-generator git://xenbits.xen.org/staging/qemu-xen-unstable.git#bb36d632e4cabf47882adff07a45c6702c4a5b30-bb36d632e4cabf47882adff07a45c6702c4a5b30 http://xenbits.xen.org/staging/xen-unstable.hg#4271634e4c86-570d0ea0ad2f
pulling from ssh://[email protected]/HG/staging/xen-unstable.hg
searching for changes
no changes found
pulling from ssh://[email protected]/HG/staging/xen-unstable.hg
searching for changes
no changes found
Loaded 127 nodes in revision graph
Searching for test results:
11600 pass bb36d632e4cabf47882adff07a45c6702c4a5b30 4271634e4c86
11601 pass bb36d632e4cabf47882adff07a45c6702c4a5b30 4271634e4c86
11603 fail bb36d632e4cabf47882adff07a45c6702c4a5b30 d8f280c78544
11604 pass bb36d632e4cabf47882adff07a45c6702c4a5b30 4271634e4c86
11606 fail bb36d632e4cabf47882adff07a45c6702c4a5b30 d8f280c78544
11607 pass bb36d632e4cabf47882adff07a45c6702c4a5b30 1e27e827e6a8
11611 fail bb36d632e4cabf47882adff07a45c6702c4a5b30 d5b706214616
11612 pass bb36d632e4cabf47882adff07a45c6702c4a5b30 1e27e827e6a8
11609 fail bb36d632e4cabf47882adff07a45c6702c4a5b30 570d0ea0ad2f
11613 fail bb36d632e4cabf47882adff07a45c6702c4a5b30 d5b706214616
11614 pass bb36d632e4cabf47882adff07a45c6702c4a5b30 4271634e4c86
11615 fail bb36d632e4cabf47882adff07a45c6702c4a5b30 570d0ea0ad2f
11616 pass bb36d632e4cabf47882adff07a45c6702c4a5b30 1e27e827e6a8
11617 fail bb36d632e4cabf47882adff07a45c6702c4a5b30 d5b706214616
Searching for interesting versions
Result found: flight 11600 (pass), for basis pass
Result found: flight 11609 (fail), for basis failure
Repro found: flight 11614 (pass), for basis pass
Repro found: flight 11615 (fail), for basis failure
0 revisions at bb36d632e4cabf47882adff07a45c6702c4a5b30 1e27e827e6a8
No revisions left to test, checking graph state.
Result found: flight 11607 (pass), for last pass
Result found: flight 11611 (fail), for first failure
Repro found: flight 11612 (pass), for last pass
Repro found: flight 11613 (fail), for first failure
Repro found: flight 11616 (pass), for last pass
Repro found: flight 11617 (fail), for first failure

*** Found and reproduced problem changeset ***

Bug is in tree: xen http://xenbits.xen.org/staging/xen-unstable.hg
Bug introduced: d5b706214616
Bug not present: 1e27e827e6a8

pulling from ssh://[email protected]/HG/staging/xen-unstable.hg searching for changes
no changes found

  changeset:   24566:d5b706214616
  user:        Olaf Hering <[email protected]>
  date:        Thu Jan 26 11:04:59 2012 +0000

tools/libxc: fix error handling in xc_mem_paging_load

xc_mem_paging_load() does not pass errors in errno and the actual errno from xc_mem_event_control() is overwritten by munlock(). xenpaging_populate_page() needs to check errno, but with the switch to xc_mem_paging_load() it could not receive ENOMEM anymore.

Update xc_mem_paging_load() to return -1 and preserve errno during munlock().

Revision graph left in /home/xc_osstest/results/bisect.xen-unstable.build-amd64.xen-build.{dot,ps,png,html}.
----------------------------------------
11617: ALL FAIL

flight 11617 xen-unstable real-bisect [real]
http://www.chiark.greenend.org.uk/~xensrcts/logs/11617/

jobs:
build-amd64 fail

------------------------------------------------------------
sg-report-flight on woking.cam.xci-test.com
logs: /home/xc_osstest/logs
images: /home/xc_osstest/images

Logs, config files, etc. are available at
http://www.chiark.greenend.org.uk/~xensrcts/logs

Test harness code can be found at
http://xenbits.xensource.com/gitweb?p=osstest.git;a=summary

#1 lore raw

xen.org writes ("[xen-unstable bisection] complete build-amd64"):

Quoted 26 lines

branch xen-unstable
xen branch xen-unstable
job build-amd64
test xen-build

Tree: qemu git://xenbits.xen.org/staging/qemu-xen-unstable.git
Tree: xen http://xenbits.xen.org/staging/xen-unstable.hg

*** Found and reproduced problem changeset ***

Bug is in tree: xen http://xenbits.xen.org/staging/xen-unstable.hg
Bug introduced: d5b706214616
Bug not present: 1e27e827e6a8

  changeset:   24566:d5b706214616
  user:        Olaf Hering <[email protected]>
  date:        Thu Jan 26 11:04:59 2012 +0000

tools/libxc: fix error handling in xc_mem_paging_load

xc_mem_paging_load() does not pass errors in errno and the actual errno from xc_mem_event_control() is overwritten by munlock(). xenpaging_populate_page() needs to check errno, but with the switch to xc_mem_paging_load() it could not receive ENOMEM anymore.

Quoted 6 lines

Update xc_mem_paging_load() to return -1 and preserve errno during munlock().

cc1: warnings being treated as errors
xc_mem_paging.c: In function 'xc_mem_paging_load':
xc_mem_paging.c:90: error: statement with no effect
make[3]: *** [xc_mem_paging.o] Error 1
make[3]: Leaving directory `/home/osstest/build.11617.build-amd64/xen-unstable/stubdom/libxc-x86_64' make[2]: *** [build] Error 2
make[2]: Leaving directory `/home/osstest/build.11617.build-amd64/xen-unstable/stubdom/libxc-x86_64' make[1]: *** [libxc-x86_64/libxenctrl.a] Error 2
make[1]: *** Waiting for unfinished jobs....

#2 lore raw
Quoted 34 lines · Ian Jackson

xen.org writes ("[xen-unstable bisection] complete build-amd64"):

Quoted 26 lines

branch xen-unstable
xen branch xen-unstable
job build-amd64
test xen-build

Tree: qemu git://xenbits.xen.org/staging/qemu-xen-unstable.git
Tree: xen http://xenbits.xen.org/staging/xen-unstable.hg

*** Found and reproduced problem changeset ***

Bug is in tree: xen http://xenbits.xen.org/staging/xen-unstable.hg
Bug introduced: d5b706214616
Bug not present: 1e27e827e6a8

  changeset:   24566:d5b706214616
  user:        Olaf Hering <[email protected]>
  date:        Thu Jan 26 11:04:59 2012 +0000

tools/libxc: fix error handling in xc_mem_paging_load

xc_mem_paging_load() does not pass errors in errno and the actual errno from xc_mem_event_control() is overwritten by munlock(). xenpaging_populate_page() needs to check errno, but with the switch to xc_mem_paging_load() it could not receive ENOMEM anymore.

Quoted 6 lines

Update xc_mem_paging_load() to return -1 and preserve errno during munlock().

Quoted 11 lines

cc1: warnings being treated as errors
xc_mem_paging.c: In function 'xc_mem_paging_load':
xc_mem_paging.c:90: error: statement with no effect
make[3]: *** [xc_mem_paging.o] Error 1
make[3]: Leaving directory `/home/osstest/build.11617.build-amd64/xen-unstable/stubdom/libxc-x86_64' make[2]: *** [build] Error 2
make[2]: Leaving directory `/home/osstest/build.11617.build-amd64/xen-unstable/stubdom/libxc-x86_64' make[1]: *** [libxc-x86_64/libxenctrl.a] Error 2
make[1]: *** Waiting for unfinished jobs....

Tim already fixed it.

-- Keir

#3 lore raw

Keir Fraser writes ("Re: [xen-unstable bisection] complete build-amd64"):

Quoted 1 line

Tim already fixed it.

Yes, so Ian points out to me...

Thanks,
Ian.

#4 lore raw
In reply to Ian Jackson
Quoted 9 lines · Ian Jackson

cc1: warnings being treated as errors
xc_mem_paging.c: In function 'xc_mem_paging_load':
xc_mem_paging.c:90: error: statement with no effect
make[3]: *** [xc_mem_paging.o] Error 1
make[3]: Leaving directory `/home/osstest/build.11617.build-amd64/xen-unstable/stubdom/libxc-x86_64' make[2]: *** [build] Error 2
make[2]: Leaving directory `/home/osstest/build.11617.build-amd64/xen-unstable/stubdom/libxc-x86_64' make[1]: *** [libxc-x86_64/libxenctrl.a] Error 2
make[1]: *** Waiting for unfinished jobs....

As Andrew Morton put it once: "We code in C, not in cpp".

extras/mini-os/include/posix/sys/mman.h:19:#define munlock(addr, len) ((void)(addr), (void)(len), 0)

As such, that define should be "static inline munlock(const void *addr, size_t len) { return 0; }". And now that I actually look at that header, mlock should be changed as
well. All this "(void)fn()" mess is really confusing.

Olaf