Segfault when running compiled Truffle method.

Stefan Marr java at stefan-marr.de
Thu Jan 23 07:31:01 PST 2014


Hi:
On 23 Jan 2014, at 15:52, Andreas Woess <andreas.woess at jku.at> wrote:

> Otherwise the unsafeFrameCast which you have in PArguments is not
> correct.

Triggered by this mail, I would like to mention an unrelated error I ran into a couple of times:

I did not make sure that my nodes are guaranteed to be part of the same hierarchy, which resulted during my inlining experiments from time to time in nasty crashes that have very strange characteristics when debugging.

The main reason is that node replacement is not checking for type safety.
So, you can end up with the type of `this` having nothing to do with the method that is currently executing.

Once I understood what was going on, it was easy to fix.
But perhaps, node replacement could include a check that makes sure that the child field, it replaces the node in, has a compatible type? Might avoid confusion for people starting out with Truffle.

Best regards
Stefan



-- 
Stefan Marr
INRIA Lille - Nord Europe
http://stefan-marr.de/research/





More information about the graal-dev mailing list