Re: stklos problem: stack corruption with scale and canvas

From: Mark Montague <monty_at_gg.caltech.edu>
Date: Thu, 06 Jun 2002 17:55:57 -0700

Looking further at this problem, I was able to reproduce it by making
the callback for the "scale.stk" demo exhibit the problem as well:

I just added some time-consuming trig to the callback:

--- scale.stk Thu Jun 6 15:26:46 2002
+++ Examples/scale.stk Sun Jun 2 17:49:25 2002
_at_@ -46,7 +46,7 @@
                            :value 120
                            :command (lambda (e)
                                       (format #t "horizontal: ~S\n"
- (sin (exp (cos (exp ((value (event-widget e)))))))))))
+ (value (event-widget e))))))
          (vs (make <scale> :orientation 'vertical
                            :parent win
                            :height 300

It looks like when callbacks take too long as events are coming in
quickly, there is some sort of race condition on the stack that
corrupts the arguments.

                                - M

-- 
Mark "Monty" Montague | monty_at_gg.caltech.edu  | I don't do Windows(tm)
If a tree falls when there's no one observing, does its wave function collapse?
	  <URL:http://www.gg.caltech.edu/~monty/monty.shtml>
 X-PGP-Fingerprint: E4 EA 6D B1 82 46 DB A1  B0 FF 60 B9 F9 5D 5C F7
Received on Fri Jun 07 2002 - 02:56:29 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST