1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 20:00:19 +02:00
guile/module/system/repl
Andy Wingo 7e4760e413 fix bug in compilation of and' and or'; more robust underflow detection.
* module/system/il/compile.scm (codegen): Rewrite handling of `and' and
  `or' ghil compilation, because it was broken if drop was #t. Tricky
  bug, this one! Took me days to track down!

* module/system/repl/repl.scm: Export call-with-backtrace, which probably
  should go in some other file.

* src/vm.c (scm_vm_save_stack): Handle the fp==0 case for errors before
  we have a frame.

* src/vm_engine.h (NEW_FRAME, FREE_FRAME): Stricter underflow checking,
  raising the stack base to the return address, in an attempt to prevent
  inadvertant stack smashing (the symptom of the and/or miscompilation
  bug).
  (CHECK_IP): A check that the current IP is within the bounds of the
  current program. Not normally compiled in. Perhaps it should be?

* src/vm_system.c (halt): Set vp->ip to NULL. Paranoia, I know.
  (return): Call CHECK_IP(), if such a thing is compiled in.

* testsuite/Makefile.am (vm_test_files):
* testsuite/t-catch.scm:
* testsuite/t-map.scm:
* testsuite/t-or.scm: New tests.
2008-08-11 18:35:58 +02:00
..
.cvsignore *** empty log message *** 2001-04-22 02:13:48 +00:00
command.scm fix stack corruption on vm-save-stack; more robust with nonlocal exits 2008-08-07 19:04:25 +02:00
common.scm big reorg of scheme modules -- e.g. programs.c -> (system vm program) 2008-08-07 13:11:27 +02:00
describe.scm fix syntax error in describe.scm 2008-05-19 21:38:09 +02:00
Makefile.am distcheck works now 2008-05-20 12:54:14 +02:00
repl.scm fix bug in compilation of and' and or'; more robust underflow detection. 2008-08-11 18:35:58 +02:00