-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type unification #147
Comments
Huh, the double free corruption is a problem. I'll have to investigate a little further. As far as the second thing goes, try using |
I just tried running this program and got the following output:
I didn't see any double free or corruption error. What system are you running on? |
Hey I tried it again and this is what I got OpenCL Platform Name: AMD Accelerated Parallel Processing I am not sure what conditions resulted in the first error since I did it a while ago. but it seems to be working now.. However what does glibc detected mean? and also is it possible to have the memory map and backtrace info optional? |
Ah, this actually looks like the same error. On Wed, Apr 22, 2015 at 6:12 AM Phillip Ochola [email protected]
|
I opened #150 to focus on the memory corruption problems, since I'm starting to see it on my own now too. I'm going to close this issue, since it seems like we figured out the type unification part of it. Feel free to reopen if this is not correct. |
Hey I have the following code
(module
(define (main)
(let ((x (vector 1 2))
(y (vector 3 4)))
(let ((z (kernel ((i x))
(kernel ((j y))
(+ i (+ j (+ 2 3)))))))
(println "The resultant matrix is ")
(println z)))
0))
I would like to add in some text with the variable as an output. While the above code compiles, the runtime error is
*** glibc detected *** ./addition-test-2: double free or corruption (out): 0x000000000303eca0 ***
before I tried using (println "The resultant matrix is " z) but it gave me this error:
In expression...
(invoke (var z_22))
Expected type...
(closure
##{rvar cb26eek7jwtius46vhva6e-215} invoke_53
->
#[#{tvar cb26eek7jwtius46vhva6e-216} invoke_52])
But found...
(vec #[#{rvar cb26eek7jwtius46vhva6e-215} rk_51](vec #[#{rvar cb26eek7jwtius46vhva6e-215} rk_50]
#[#{tvar cb26eek7jwtius46vhva6e-216} num_49]))
Exception in typecheck: Could not unify types
Is there a way to unify different data types?
The text was updated successfully, but these errors were encountered: