chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Add detection for hitting rest argument count


From: Peter Bex
Subject: [Chicken-hackers] [PATCH] Add detection for hitting rest argument count limit on direct procedure application (for #910, sort-of)
Date: Wed, 24 Jul 2013 21:07:17 +0200
User-agent: Mutt/1.4.2.3i

Hi all,

As we figured out in ticket #910, there are two problems when directly
invoking procedures with a large number of rest arguments (not via APPLY):

- there's a bug in GCC 4.5's code generation which causes random errors
   like segfaults and illegal instructions to occur.
- even with a correct C compiler, when going beyond the temporary stack's
   limit, this isn't checked and segfaults will occur.

Here's a patch to add detection for the latter situation, and an improved
version of the apply-test, which will detect the former situation as well.
This can help users to determine whether their CHICKEN is built correctly
and can produce working executables with procedure applications of large
argument counts, and tells them to upgrade GCC if it segfaults.

Unfortunately, the test takes rather long to build (it has to be
compiled now), but I think it's worth it regardless as it will help
prevent spurious bug reports by detecting both error situations.

Cheers,
Peter
-- 
http://www.more-magic.net

Attachment: 0001-Add-checks-for-hitting-the-rest-arg-count-limit-on-d.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]