munificent / craftinginterpreters

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

SIGSEGV and SIGABRT from concatenate #1040

Closed mcfriend99 closed 2 years ago

mcfriend99 commented 2 years ago

I experience a lot of SIGSEGV and SIGABRT from concatenate() function in vm.c whenever the strings are large. Anyone else experiencing this?? Any ideas?? This also leads to corruption in the GC's sweep() function as well while clearing garbages.

Any help??

RevengerWizard commented 2 years ago

How much large strings?

mcfriend99 commented 2 years ago

I'm yet to notice any pattern regarding the string length, but once gc is collected during a call to concatenate, the error happens.

mcfriend99 commented 2 years ago

This issue has been resolved. Thanks @RevengerWizard for the time. For those interested, the issue was due to having a rouge object in my module system.