-
Notifications
You must be signed in to change notification settings - Fork 138
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
SegFault when #optimizing trivial bracket #7
Comments
Hi Otto, Ik zal er eens naar kijken. Waarschijnlijk totaal triviaal. Jos Quoting Otto Rottier [email protected]:
|
I got a bug report concerning pySecDec today which I could track down to an issue of exactly this kind. In my case, the minimal program I could come up with is
It works with optimize lower than 3 but fails with O3 and O4. |
Now we have a memory leak:
|
- Fixed memory leak for trivial bracket, mentioned in issue #7
A function in This may cause a catastrophic result in a simple example, but I think fortunately our routine is too complicated and compilers at the present day are not so smart to abuse this undefined behaviour for optimizations. I will fix it in the next commit. |
Then I need to think about a memory leak in optimization with ParFORM, which should be easy to fix once I set up an environment where MPI and Valgrind are correctly working. |
Let's reconsider the Otto's example:
Before Ben's commit 0a07b8c, FORM had crashed like
But now:
It seems that something different is happening... |
If I revert the change for the simultaneous optimization of expressions (namely, brackets) in 1d4b775?w=1#diff-b041575ff5a324d5d3b06ee7e9d3ac313fab602aad39112ca26348a28ce039baL4330-R4359 then the code seems to work correctly, at least for the trivial case. So, what was the intention and the background of this change? Did it try to fix something and actually break the code in the trivial case? |
This reverts a part of 1d4b775.
This reverts a part of 1d4b775. Close vermaseren#7
This reverts a part of 1d4b775.
Hello,
The following form program causes a segmentation fault:
If the bracket is nontrivial,
the program runs fine.
This issue also occurred with Format O0, but that has been fixed with commit 8ee418f (I think)
The text was updated successfully, but these errors were encountered: