Cached procedure causes an error
Issue #149
resolved
Running test of this library https://github.com/ktakashi/aeolus causes an error on second time.
%%%% Starting test DES
FAIL cipher?
Unhandled exception
Condition components:
1. &assertion
2. &who apply
3. &message invalid application
4. &irritants (#<code-builder ecb-start (3 0 0)> #(8 8 8 16 #<closure des-setup 2:0> #<closure des-encrypt 5:0> #<closure des-decrypt 5:0> #<closure des-done 1:0>) #vu8(0 0 0 0 0 0 0 0) #f)
5. &stack-trace
stack trace:
[1] make-cipher
[2] make-cipher
src: (setup spec key param)
"/home/takashi/projects/aeolus/lib/aeolus/cipher.sld":52
[3] des-ecb-test
src: (cipher-maker key)
"tests/test-des.scm":135
[4] #f
src: (proc (car l))
[5] load
Seems caching and lining cause this problem.
Comments (2)
-
reporter -
reporter - changed status to resolved
Adding ugly workaround for closure caching (Fixes
#149)→ <<cset c032f856ad8f>>
- Log in to comment
small piece of code: