Closed mingodad closed 3 months ago
Very good find. This seems to be an issue with libjit when optimizing the control flow of a function.
I will close this issue here, but it is definitly a good idea to merge your changes into my libjit fork as well as upstream libjit. While according to git blame this code seems to be modified by myself, it does seem to exist in upstream libjit.
AFAIK Aleksey accepts PRs on his github mirror and then pushes them to GNU savannah. Do you want to create a PR there, making you an official GNU libjit contributor?
Thank you for reply ! I've looked at https://github.com/ademakov/libjit/blob/604d64b0b86ef77103e93bfa1001d166d82e633c/jit/jit-block.c#L236-L255 and your https://github.com/M4GNV5/libjit/blob/6074a2e20cbc667ed292ff82ed3600371f1081d4/jit/jit-block.c#L259-L276 and they differ a bit and I'm not sure if the same problem would happen in the origin.
I've just cloned and built https://github.com/ademakov/libjit and executed dpas
under valgrind
and didn't got any warning/error.
But when I replace your code with the original one and rebuild I still get the same error/warning with valgrind
.
When trying to test
Pointerscript
undervalgrind
I was getting:Making the changes shown bellow allow me to run
Poinerscript
undervalgrind
: