Can't pass millions of arguments to a function.
Bug #1833881 reported by
Jeremy Phelps
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I attempted to add a list of a million integers like this:
(apply #'+ (loop repeat 1000000 collect (random 1000))
It does not come as a total surprise that this resulted in the message
"Control stack guard page temporarily disabled: proceed with caution", and
trying it again got me acquainted with the ldb> prompt.
But I'm reporting this as a bug anyway. What happened is reasonable, but not ideal behavior. The above operation should just work, no matter how long the list-of-integers is.
To post a comment you must log in.
> The above operation should just work
But it can't work. The stack is a limited resource.