Subject: Re: Weak tables harmful to GC?

From: Ricardo Wurmus <[email-masked]>
Date: Sat, 28 Oct 2017 11:56:43 +0200

Hi Ludo,

the bootstrap phase now succeeds but the build crashes:

--8<---------------cut here---------------start------------->8---
…
make[2]: Leaving directory '/tmp/guix-build-guile-awesome-2.2.2.drv-0/guile-2.2.2/bootstrap'
Making all in module
make[2]: Entering directory '/tmp/guix-build-guile-awesome-2.2.2.drv-0/guile-2.2.2/module'
…
wrote `language/tree-il/spec.go'
  GUILEC srfi/srfi-37.go
wrote `ice-9/textual-ports.go'
wrote `ice-9/time.go'
wrote `ice-9/q.go'
  GUILEC srfi/srfi-38.go
wrote `ice-9/hash-table.go'
wrote `rnrs/r5rs.go'
Backtrace:
In ice-9/eval.scm:
    163:9 19 (_ _)
In ice-9/boot-9.scm:
    152:2 18 (with-fluid* _ _ _)
In system/base/target.scm:
     57:6 17 (with-target _ _)
In system/base/compile.scm:
    152:6 16 (compile-file _ #:output-file _ #:from _ #:to _ #:env _ ?)
     43:4 15 (call-once _)
In ice-9/boot-9.scm:
    849:4 14 (with-throw-handler _ _ _)
In system/base/compile.scm:
    59:11 13 (_)
   155:11 12 (_ #<closed: file a77e00>)
    219:8 11 (read-and-compile _ #:from _ #:to _ #:env _ #:opts _)
    255:6 10 (compile _ #:from _ #:to _ #:env _ #:opts _)
   183:32  9 (lp (#<procedure compile-cps (exp env opts)> #<proce?>) ?)
In language/tree-il/compile-cps.scm:
  1084:25  8 (compile-cps #<tree-il (seq (let (m) (m-1ccde3380cfd0b?> ?)
    974:4  7 (optimize-tree-il #<tree-il (seq (let (m) (m-1ccde3380?> ?)
In language/tree-il/analyze.scm:
    563:4  6 (analyze-tree (#<<tree-analysis> down: #<procedure ?> ?) ?)
In srfi/srfi-1.scm:
   656:11  5 (for-each2 (#<<tree-analysis> down: #<procedure 7ff?> ?) ?)
In ice-9/vlist.scm:
   267:16  4 (loop _ _ _)
In language/tree-il/analyze.scm:
  1053:33  3 Exception thrown while printing backtrace:
ERROR: In procedure assq: Wrong type argument in position 2 (expecting association list): ((system base pmatch) car . #f)

ice-9/boot-9.scm:760:25: In procedure dispatch-exception:
ice-9/boot-9.scm:760:25: In procedure assq: Wrong type argument in position 2 (expecting association list): ((system base pmatch) car . #f)
make[2]: *** [Makefile:2258: rnrs/records/procedural.go] Error 1
make[2]: *** Waiting for unfinished jobs....
  GUILEC srfi/srfi-41.go
wrote `rnrs/programs.go'
wrote `ice-9/history.go'
wrote `language/elisp/spec.go'
wrote `language/tree-il/optimize.go'
Backtrace:
In ice-9/eval.scm:
    163:9 19 (_ _)
In ice-9/boot-9.scm:
    152:2 18 (with-fluid* _ _ _)
In system/base/target.scm:
     57:6 17 (with-target _ _)
In system/base/compile.scm:
    152:6 16 (compile-file _ #:output-file _ #:from _ #:to _ #:env _ ?)
     43:4 15 (call-once _)
In ice-9/boot-9.scm:
    849:4 14 (with-throw-handler _ _ _)
In system/base/compile.scm:
    59:11 13 (_)
   155:11 12 (_ #<closed: file 9cfaf0>)
    219:8 11 (read-and-compile _ #:from _ #:to _ #:env _ #:opts _)
    255:6 10 (compile _ #:from _ #:to _ #:env _ #:opts _)
   183:32  9 (lp (#<procedure compile-cps (exp env opts)> #<proce?>) ?)
In language/tree-il/compile-cps.scm:
  1084:25  8 (compile-cps _ #<module (#{ g132}#) a5f320> _)
    974:4  7 (optimize-tree-il #<tree-il (define primitive-eval (la?> ?)
In language/tree-il/analyze.scm:
    563:4  6 (analyze-tree (#<<tree-analysis> down: #<procedure ?> ?) ?)
In srfi/srfi-1.scm:
   656:11  5 (for-each2 (#<<tree-analysis> down: #<procedure 7ff?> ?) ?)
In ice-9/vlist.scm:
   267:16  4 (loop _ _ #t)
In language/tree-il/analyze.scm:
  1053:33  3 Exception thrown while printing backtrace:
ERROR: In procedure assq: Wrong type argument in position 2 (expecting association list): 36
wrote `rnrs/unicode.go'

ice-9/boot-9.scm:760:25: In procedure dispatch-exception:
ice-9/boot-9.scm:760:25: In procedure assq: Wrong type argument in position 2 (expecting association list): 36
wrote `ice-9/curried-definitions.go'
make[2]: *** [Makefile:2258: ice-9/eval.go] Error 1
…
--8<---------------cut here---------------end--------------->8---

This is on the machine with 1.5TB RAM with the same package definition
but using your new patches.

[I’m sending this from my work address, because zoho.com currently has
problems delivering mail to gnu.org.]

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net