Skip to content
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

Memory access issues #4

Closed
zayac opened this issue Sep 24, 2012 · 0 comments
Closed

Memory access issues #4

zayac opened this issue Sep 24, 2012 · 0 comments

Comments

@zayac
Copy link
Owner

zayac commented Sep 24, 2012

The current version causes some memory tests to fail:

95% tests passed, 10 tests failed out of 204

Total Test time (real) =  66.15 sec

The following tests FAILED:
        125 - memory_test_/home/zayac/code/eq/tests/codegen_tests_python/streams-first-class2.tex (Failed)
        129 - memory_test_/home/zayac/code/eq/tests/codegen_tests_python/fail_tests/d.tex (Failed)
        136 - memory_test_/home/zayac/code/eq/tests/codegen_tests_python/print.tex (Failed)
        137 - memory_test_/home/zayac/code/eq/tests/codegen_tests_python/d.tex (Failed)
        139 - memory_test_/home/zayac/code/eq/tests/codegen_tests_python/streams-first-class.tex (Failed)
        144 - memory_test_/home/zayac/code/eq/tests/parser_tests/md5.tex (Failed)
        154 - memory_test_/home/zayac/code/eq/tests/parser_tests/3.tex (Failed)
        155 - memory_test_/home/zayac/code/eq/tests/parser_tests/print.tex (Failed)
        189 - memory_test_/home/zayac/code/eq/tests/type_tests/fail_tests/print.tex (Failed)
        201 - memory_test_/home/zayac/code/eq/tests/type_tests/print.tex (Failed)

Need to find out invalid read/write memory accesses.

Another bug was introduced by SSA implementation in 98e170e. For example, the following test causes segmentation fault in malloc_consolidate() function.

\begin{eqcode}{\mu}{\ }{\ }{\type{Z}}
  a \gets 1 \lend
  b \in \overline{\type{Z}} \lend
  a \gets a \lend
  b^{[0]} \gets 1 \lend
  b^{[\iter]} \gets b^{[\iter - 1]} \lend
  \return {b^{[a]}} \lend
\end{eqcode}

Earlier compiler version handles this properly.

@zayac zayac closed this as completed in a398aac Sep 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant