![]() In that case, the operating system sends your process a signal (SIGSEGV on Mac & Linux, STATUS_ACCESS_VIOLATION on Windows), and typically the process shuts down immediately. In practice, a segfault occurs when your program breaks some fundamental rule set by the operating system. Lucky you! You might be more interested in the guide on How to Debug Anything) What is a Segmentation Fault?Ī segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (for example, attempting to write to a read-only location, or to overwrite part of the operating system). (If you do get a normal JavaScript stack trace on the other hand, then you're dealing with a normal JS error, not a segfault. You'll know this happens because node will hard crash, exiting silently without any kind of real stack trace, perhaps printing just segmentation fault (core dumped). What does that mean, and how can you fix it? Oh no, your JavaScript code isn't just throwing an exception or crashing: it's segfaulting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |