opamでいろいろパッケージをインストールしていたのですが、パッケージのインストールは成功したものの、その後opamが Stack overflow を返すようになってしまいました。何か解決方法はありますでしょうか。

$ opam update

=-=- Updating package repositories =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[default] synchronized from https://opam.ocaml.org
Fatal error:
Stack overflow
Backtrace:
  Called from file "pervasives.ml", line 214, characters 22-31
  Called from file "pervasives.ml", line 214, characters 22-31
  Called from file "pervasives.ml", line 214, characters 22-31
  Called from file "pervasives.ml", line 214, characters 22-31
  Called from file "pervasives.ml", line 214, characters 22-31
  Called from file "pervasives.ml", line 214, characters 22-31
  Called from file "pervasives.ml", line 214, characters 22-31
  Called from file "pervasives.ml", line 214, characters 22-31
  Called from file "pervasives.ml", line 214, characters 22-31
  Called from file "pervasives.ml", line 214, characters 22-31
  Called from file "solver/opamSolver.ml", line 330, characters 8-44
  Called from file "client/opamClient.ml", line 805, characters 6-356
  Called from file "client/opamClient.ml", line 1211, characters 12-34
  Called from file "core/opamFilename.ml", line 324, characters 12-15

新たなパッケージのインストールを使用としても同様のエラーがでます。opam switchはできます。

環境は以下のとおりです。

  • opam 1.2.2
  • OCaml 4.02.3
  • Ubuntu 12.04