seanjensengrey / mosh-scheme

Automatically exported from code.google.com/p/mosh-scheme
Other
0 stars 0 forks source link

Applying more than 10000 arguments causes SEGV #233

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the script below

#!r6rs
(import (rnrs))
(define (p . args) (for-each display args) (newline))
(define (iota count start)
  (do ((i 0 (+ i 1)) (r '() (cons (+ i start) r)))
      ((= i count) (reverse r))))
(call-with-values (lambda () (apply values (iota 10000 1)))
  p)

What is the expected output? What do you see instead?
Either error message or showing values

Nothing but core dump

What version of the product are you using? On what operating system?
version 0.2.7 on Cygwin

Please provide any additional information below.

Original issue reported on code.google.com by ktakash...@gmail.com on 26 Sep 2012 at 7:17

GoogleCodeExporter commented 9 years ago
Thanks,
We should check # of arity.

Original comment by hige...@gmail.com on 26 Sep 2012 at 8:27