ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.24k stars 356 forks source link

upgrade fails with wait : interrupted system call #1404

Closed avsm closed 10 years ago

avsm commented 10 years ago

When running

opam upgrade --criteria="-changed" 

It starts to get the archives and then fails with

=-=-=-=-=-=-=-=-=-=-=-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=
async.111.03.00 async-111.03.00.tar.gz is in the local cache, using it.
async_extra.111.06.00 async_extra-111.06.00.tar.gz is in the local cache, using it.
async_kernel.111.06.00 async_kernel-111.06.00.tar.gz is in the local cache, using it.
[ERROR] # opam-version    1.2.0 (6e14e624b2080ca06f6e2fc8f624ec263664fb13)
# os              darwin
opam: "wait" failed: Interrupted system call

Git version is 6e14e624b2080ca06f6e2fc8f624ec263664fb13 and debug log is below:

=-=-=-=-=-=-=-=-=-=-=-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=
00:01.689  043725  PARALLEL                Iterate over 56 task(s) with 3 process(es)
00:01.692  043725  PARALLEL                Creating process 43765
00:01.692  043765  PARALLEL                Spawning a new process
00:01.693  043765  ACTION                  download_package: async.111.03.00
00:01.693  043765  STATE                   get_archive async.111.03.00
00:01.693  043725  PARALLEL                Creating process 43766
00:01.693  043766  PARALLEL                Spawning a new process
00:01.693  043765  RSYNC                   rsync_file src=/Users/avsm/src/git/mirage/opam-repository/archives/async.111.03.00+opam.tar.gz dst=/Users/avsm/.opam/repo/default/archives/async.111.03.00+opam.tar.gz
00:01.693  043766  ACTION                  download_package: async_extra.111.06.00
00:01.693  043766  STATE                   get_archive async_extra.111.06.00
00:01.693  043725  PARALLEL                Creating process 43767
00:01.693  043725  PARALLEL                waiting for a child process to finish
00:01.693  043766  RSYNC                   rsync_file src=/Users/avsm/src/git/mirage/opam-repository/archives/async_extra.111.06.00+opam.tar.gz dst=/Users/avsm/.opam/repo/default/archives/async_extra.111.06.00+opam.tar.gz
00:01.693  043767  PARALLEL                Spawning a new process
00:01.693  043765  FILE(url)               Read ~/.opam/packages/async/async.111.03.00/url in 0.000s
00:01.693  043767  ACTION                  download_package: async_kernel.111.06.00
00:01.693  043765  CURL                    pull-file
00:01.693  043767  STATE                   get_archive async_kernel.111.06.00
00:01.694  043766  FILE(url)               Read ~/.opam/packages/async_extra/async_extra.111.06.00/url in 0.000s
00:01.694  043767  RSYNC                   rsync_file src=/Users/avsm/src/git/mirage/opam-repository/archives/async_kernel.111.06.00+opam.tar.gz dst=/Users/avsm/.opam/repo/default/archives/async_kernel.111.06.00+opam.tar.gz
00:01.694  043766  CURL                    pull-file
async.111.03.00 async-111.03.00.tar.gz is in the local cache, using it.
00:01.694  043765  PARALLEL                OK
00:01.694  043767  FILE(url)               Read ~/.opam/packages/async_kernel/async_kernel.111.06.00/url in 0.000s
00:01.694  043767  CURL                    pull-file
async_extra.111.06.00 async_extra-111.06.00.tar.gz is in the local cache, using it.
00:01.694  043766  PARALLEL                OK
async_kernel.111.06.00 async_kernel-111.06.00.tar.gz is in the local cache, using it.
00:01.695  043767  PARALLEL                OK
[ERROR] # opam-version    1.2.0 (6e14e624b2080ca06f6e2fc8f624ec263664fb13)
# os              darwin
opam: "wait" failed: Interrupted system call
00:01.699  043725  PARALLEL                43765 is dead (exit 0)
00:01.699  043725  PARALLEL                # opam-version    1.2.0 (6e14e624b2080ca06f6e2fc8f624ec263664fb13)
# os              darwin
opam: "wait" failed: Interrupted system call in sub-process cleanup
00:01.699  043725  STATE                   LOAD-STATE(switch-backup-err)
00:01.700  043725  FILE(config)            Read ~/.opam/config in 0.000s
00:01.739  043725  STATE                   Loaded /Users/avsm/.opam/state.cache in 0.040s
00:01.739  043725  FILE(aliases)           Read ~/.opam/aliases in 0.000s
00:01.745  043725  FILE(repo-config)       Read ~/.opam/repo/aray/config in 0.000s
00:01.745  043725  FILE(repo-config)       Read ~/.opam/repo/default/config in 0.000s
00:01.764  043725  FILE(repo-index)        Read ~/.opam/repo/package-index in 0.019s
00:01.764  043725  FILE(repo-index)        Read ~/.opam/repo/compiler-index in 0.000s
00:01.764  043725  FILE(pinned)            Read ~/.opam/system/pinned in 0.000s
00:01.764  043725  FILE(installed)         Read ~/.opam/system/installed in 0.000s
00:01.764  043725  FILE(installed.roots)   Read ~/.opam/system/installed.roots in 0.000s
00:01.770  043725  FILE(reinstall)         Read ~/.opam/system/reinstall in 0.000s
00:01.770  043725  STATE                   ROOT      : /Users/avsm/.opam
00:01.770  043725  STATE                   SWITCH    : system
00:01.770  043725  STATE                   COMPILER  : system
00:01.770  043725  STATE                   COMPILERS : { 3.11.2, 3.12.1, 4.00.0, 4.00.0+debug-runtime, 4.00.0+fp, 4.00.1, 4.00.1+BER, 4.00.1+alloc-profiling, 4.00.1+annot, 4.00.1+french, 4.00.1+mirage-unix, 4.00.1+mirage-xen, 4.00.1+open-types, 4.00.1+raspberrypi, 4.00.1+short-types, 4.01.0, 4.01.0+32bit, 4.01.0+BER, 4.01.0+PIC, 4.01.0+armv6-freebsd, 4.01.0+bin-ocp, 4.01.0+fp, 4.01.0+jocaml, 4.01.0+lsb, 4.01.0+musl, 4.01.0+musl+static, 4.01.0+open-types, 4.01.0beta1, 4.01.0beta1+no-camlp4, 4.01.0dev+extension-points, 4.01.0dev+fp, 4.01.0dev+trunk, 4.02.0+trunk, 4.03.0+fp, 4.03.0+pr10, 4.03.0+pr13, 4.03.0+pr15, 4.03.0+pr17, 4.03.0+pr2, 4.03.0+pr20, 4.03.0+pr22, 4.03.0+pr24, 4.03.0+pr25, 4.03.0+pr26, 4.03.0+pr29, 4.03.0+pr3, 4.03.0+pr30, 4.03.0+pr36, 4.03.0+pr37, 4.03.0+pr4, 4.03.0+pr42, 4.03.0+pr43, 4.03.0+pr46, 4.03.0+pr51, 4.03.0+pr53, 4.03.0+pr56, 4.03.0+pr57, 4.03.0+pr58, 4.03.0+pr6, 4.03.0+trunk, system }
00:01.770  043725  STATE                   REPOS     : { aray, default }
00:01.770  043725  STATE                   PACKAGES  : 2292 packages
00:01.770  043725  STATE                   INSTALLED : { annot.1.0.0, async.111.03.00, async_extra.111.06.00, async_kernel.111.06.00, async_unix.111.06.00, atd.1.1.1, atdgen.1.3.1, base-bigarray.base, base-threads.base, base-unix.base, bin_prot.111.03.00, biniou.1.0.9, camomile.0.8.5, cmdliner.0.9.4, cohttp.0.10.0, comparelib.109.60.00, core.111.06.00, core_extended.111.06.00, core_kernel.111.06.00, cow.0.9.1, cppo.0.9.3, crunch.1.3.0, cryptokit.1.9, cstruct.1.1.0, custom_printf.111.03.00, dyntype.0.9.0, easy-format.1.0.2, enumerate.111.03.00, fieldslib.109.20.03, fileutils.0.4.4, github.0.8.1, herelib.109.35.02, iocaml.999.9.9, iocaml-kernel.999.9.9, iocamljs-kernel.999.9.9, ipaddr.2.4.0, js_of_ocaml.1.4.0, lambda-term.1.5, lwt.2.4.4, lwt-zmq.1.0.0, menhir.20130912, oasis.0.4.2, ocaml-data-notation.0.0.11, ocamlfind.1.4.0, ocamlify.0.0.1, ocamlmod.0.0.4, ocp-build.1.99.6-beta, ocp-indent.1.4.1, ocp-index.1.0.2, ocplib-endian.0.4, omake.0.9.8.6-0.rc1, omd.0.9.7, optcomp.1.5, ospec.0.3.2, ounit.2.0.0, pa_bench.109.55.02, pa_ounit.109.53.02, pa_test.110.01.00, pipebang.110.01.00, pomap.3.0.3, re.1.2.1, re2.111.06.00, react.0.9.4, sexplib.111.03.00, ssl.0.4.6, textutils.111.06.00, tuntap.1.0.0, type_conv.109.60.01, typerep.111.06.00, typerex.1.99.6-beta, tyxml.3.0.0, uint.1.1.1, ulex.1.1, uri.1.4.0, utop.1.11, uuidm.0.9.5, variantslib.109.15.03, websocket.0.7, xmlm.1.2.0, yojson.1.1.8, zed.1.2, zmq.3.2-2 }
00:01.770  043725  STATE                   ROOTS     : { annot.1.0.0, async.111.03.00, base-bigarray.base, base-threads.base, base-unix.base, cohttp.0.10.0, core_extended.111.06.00, cow.0.9.1, crunch.1.3.0, cstruct.1.1.0, github.0.8.1, iocaml.999.9.9, iocaml-kernel.999.9.9, ipaddr.2.4.0, js_of_ocaml.1.4.0, lwt.2.4.4, lwt-zmq.1.0.0, pomap.3.0.3, sexplib.111.03.00, ssl.0.4.6, tuntap.1.0.0, tyxml.3.0.0, utop.1.11, uuidm.0.9.5, websocket.0.7, yojson.1.1.8 }
00:01.770  043725  STATE                   REINSTALL : { iocaml.999.9.9, iocaml-kernel.999.9.9, iocamljs-kernel.999.9.9, ounit.2.0.0, re.1.2.1 }
00:01.770  043725  STATE                   State switch-backup-err loaded in 0.071s
00:01.771  043725  FILE(comp)              Read ~/.opam/compilers/system/system/system.comp in 0.000s
00:01.771  043725  SYSTEM                  rm /Users/avsm/.opam/system/backup/state-20140415182354.export
00:01.771  043725  SYSTEM                  Lock released on /Users/avsm/.opam/system/lock
00:01.771  043725  SYSTEM                  Lock released on /Users/avsm/.opam/lock
clink:opam-repository avsm$ 
AltGr commented 10 years ago

I guess this is fixed by #1417 (please reopen if not)