munificent / craftinginterpreters

Repository for the book "Crafting Interpreters"
http://www.craftinginterpreters.com/
Other
8.5k stars 1.01k forks source link

Chapter 26 Answer 2 SIGSEGV on Linux #1048

Closed mcfriend99 closed 1 year ago

mcfriend99 commented 2 years ago

Hi,

After implementing the changes in Chapter 26 Answer 2, the program always encounter a SIGSEGV at the following code:

if (object->mark == vm.markValue) return;

This only happens on Linux so far in my tests (I haven't tested on Windows, but it doesn't happen on OSX). It's worth nothing that I am running aarch64. Is it possible it's an Illegal hardware instruction??

Compiler: GCC Architecture: aarch64 OS: Ubuntu 20.04 and Fedora 35

Any help or Insight will be helpful @munificent.

Regards