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

#1592 [PASS] Fix missing mem CHECK in storage_rewrite #1616

Merged
merged 7 commits into from
Aug 18, 2018
Merged

#1592 [PASS] Fix missing mem CHECK in storage_rewrite #1616

merged 7 commits into from
Aug 18, 2018

Conversation

xqdan
Copy link
Contributor

@xqdan xqdan commented Aug 17, 2018

For #1592
The test case "test_mem_exceed()" in the file "test_pass_storage_rewrite.py" is made to show the bug of "allocation exceed bound of memory".

In our tests, if max_num_bits < 640, it will trigger the bug.

The CHECK_LE function is added in the file "storage_rewrite.cc L587". After that, the test case "test_alloc_seq()" and "test_alloc_seq_type2()" in the file "test_pass_storage_rewrite.py" are fixed by adding the memory register function.

Regards.

xqdan added 3 commits August 14, 2018 21:17
…_num_bits' too small, it will cause fatal error
…_num_bits' too small, it will cause mem exceed error, add test case 'test_exceed_mem()'
… triggered by 'max_num_bits < 640'. The CHECK_LE func is also added in L587.
@tqchen
Copy link
Member

tqchen commented Aug 17, 2018

please fix the testcase so that they pass, if you expect an throw, do try catch and assert False if theprogram pass

@xqdan xqdan changed the title #1592 added a test case and a CHECK func #1592 [PASS] Fix missing mem CHECK in storage_rewrite Aug 18, 2018
@tqchen tqchen merged commit 38d0835 into apache:master Aug 18, 2018
@tqchen
Copy link
Member

tqchen commented Aug 18, 2018

Thanks @xqdan ! this is now merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants