-
Notifications
You must be signed in to change notification settings - Fork 13.4k
llc reads freed memory when run on 2006-11-30-NoCompileUnit.cpp #2056
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
Comments
Mine |
Erm, wanted 1685 :) |
Dale, can you take a look at this one? Duncan, can you please attach the valgrind dump? Thanks, -Chris |
Full backtrace: Invalid read of size 4 |
The problem is obvious:
If Value is true, it deletes Block then dereferences it. |
Fixed, patch here: -Chris |
Chris, Can we close this if it's fixed? ;-) --Owen |
Chris, did you want to close this bug? I can't reproduce it with the fix applied, though I haven't tried it without the fix. |
I can confirm that this bug is now fixed. |
refs llvm#2056 COPY生成でliveinを意識するように変更 See merge request a64fx-swpl/llvm-project!107
Extended Description
Running test/C++Frontend/2006-11-30-NoCompileUnit.cpp under valgrind
shows it reading freed memory in llvm::DIEBlock::BestForm.
To reproduce, run
llvm-gcc -S -O0 -emit-llvm -g 2006-11-30-NoCompileUnit.cpp -o - | llvm-as | valgrind --tool=memcheck llc --disable-fp-elim -f -o NoCompileUnit.s
The text was updated successfully, but these errors were encountered: