davidoskiii / Luminique

Luminique is a C bytecode interpreted language with a Javascript like syntax.
10 stars 0 forks source link

Segfault with `super` #3

Closed davidoskiii closed 2 months ago

davidoskiii commented 4 months ago

When calling super.init() on some classes it can crash. What i found: The segfault occurs in OP_SUPER_INVOKE and it's because superclass that get's popped from the VM is, usually, not a class at all. I added a check to prevent the segfault but this means that super is useless. Updates: Just found out that every time super is called it always causes a stack overflow, i will continue investigation.