Version 2.2.3 tests fail on Debian i386 and ppc64el hosts

2017-12-30 Thread Rob Browning

I've been trying to get Guile 2.2 to build and pass the tests on all of
the Debian architectures again, and at this point, the release[1]
architectures are OK except i386 and ppc64el (and armel, which is still
building...).

Initially amd64 was failing in test-out-of-memory, but changing
-fstack-protector-strong to -fno-stack-protector seemed to fix it.

However, that test is dying in the same way on ppc64el:

  GC Warning: Failed to expand heap by 8388608 bytes
  GC Warning: Failed to expand heap by 8388608 bytes
  GC Warning: Failed to expand heap by 65536 bytes
  GC Warning: Out of Memory! Heap size: 27 MiB. Returning NULL!
  GC Warning: Failed to expand heap by 8388608 bytes
  GC Warning: Failed to expand heap by 65536 bytes
  GC Warning: Out of Memory! Heap size: 27 MiB. Returning NULL!
  Warning: Unwind-only `out-of-memory' exception; skipping pre-unwind handler.
  FAIL: test-out-of-memory
  ==
  1 of 39 tests failed
  Please report to bug-gu...@gnu.org
  ==
  Makefile:2630: recipe for target 'check-TESTS' failed

Preliminary investigation suggests that test-out-of-memory makes it past
the first two tests, and dies on:

  (test (lambda ()
  ;; This one is the kicker -- we allocate pairs until the heap
  ;; can't expand.  This is the hardest test to deal with because
  ;; the error-handling machinery has no memory in which to work.
  (iota #e1e8)))

The i386 build has a different problem, it never finishes sandbox.test,
hanging here at 100+% CPU:

  Running rnrs-libraries.test
  Running rtl-compilation.test
  Running rtl.test
  Running sandbox.test

I thought I'd bring this up in case either is something you've seen
before.  In addition, I can reproduce both failures on Debian
porterboxes, and would be happy to help if I can.

(And of course, if it made sense, we could also mark a test as unresolved for
 the moment.)

cf.
  https://bugs.gnu.org/29464
  https://buildd.debian.org/status/package.php?p=guile-2.2&suite=sid

[1] The release architectures are the unshaded ones on the buildd page.

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4



Re: GC Warning related to large mem block allocation - Help needed

2017-12-30 Thread David Pirotte
Hi Mike,

> If all you are doing is trying to get Guile not to issue warnings about big
> allocations, I think all you need to do is put -DGC_IGNORE_WARN in the
> CFLAGS when you build Guile.

Thanks for the suggestion, but it does not work. If I trust guile (gcc) to use 
an
exported CFLAGS env variable:

export CFLAGS="-O3 -DGC_IGNORE_WARN"
[ which is properly listed in the config.log after configure...

and if this flag is 'correct', it appeared to work at first glance:

scheme@(guile-user)> ,use (srfi srfi-4)
scheme@(guile-user)>  (for-each (lambda (i) (make-f32vector 1)) 
(iota 100))
[ no warnings here

but a more expensive task triggers these warnings still

scheme@(guile-user)> ,time (quasep caso-9 '1mm)
 init...  GC Warning: Repeated allocation of very large block (appr. size 
775012352):
May lead to memory leak and poor performance.
kernels... GC Warning: Repeated allocation of very large block (appr. size 
775237632):
May lead to memory leak and poor performance.
small pellets... GC Warning: Repeated allocation of very large block (appr. 
size 775012352):
May lead to memory leak and poor performance.
grip layer... GC Warning: Repeated allocation of very large block (appr. size 
775012352):
May lead to memory leak and poor performance.
GC Warning: Repeated allocation of very large block (appr. size 775012352):
May lead to memory leak and poor performance.
micro pellets... GC Warning: Repeated allocation of very large block (appr. 
size 775012352):
May lead to memory leak and poor performance.
GC Warning: Repeated allocation of very large block (appr. size 775012352):
May lead to memory leak and poor performance.
gripped kernels... GC Warning: Repeated allocation of very large block (appr. 
size 775012352):
May lead to memory leak and poor performance.
GC Warning: Repeated allocation of very large block (appr. size 775012352):
May lead to memory leak and poor performance.
GC Warning: Repeated allocation of very large block (appr. size 775012352):
May lead to memory leak and poor performance.
none gripped kernels... GC Warning: Repeated allocation of very large block 
(appr. size 775012352):
May lead to memory leak and poor performance.
quase particles... GC Warning: Repeated allocation of very large block (appr. 
size 775012352):
May lead to memory leak and poor performance.

$1 = ((13755 14086 3 (#f32(255.0 255.0 255.0 255.0 255.0 255.0 255.0 # # ...) 
...)) # ...)
;; 300.318682s real time, 369.596406s run time.  5.252115s spent in GC.


pgpChP1tzdfHz.pgp
Description: OpenPGP digital signature