solana-labs / example-helloworld

Hello world on Solana
MIT License
906 stars 869 forks source link

Segmentation Fault in node program right before program ends #580

Open sjunaiduk opened 1 year ago

sjunaiduk commented 1 year ago

Hi,

The program runs fine and the counter is being incremented as normal. But in my console, the last thing that is logged is

PID 19079 received SIGSEGV for address: 0x0 /home/syed/example-helloworld/node_modules/segfault-handler/build/Release/segfault-handler.node(+0x37a5)[0x7fdd2c0557a5] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7fdd2e823420] node(_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED1Ev+0x20)[0xc38400] node(_ZN4node17PerProcessOptionsD1Ev+0x23)[0xc38c83] node(_ZN4node17PerProcessOptionsD0Ev+0x11)[0xc38dc1] /lib/x86_64-linux-gnu/libnode.so.64(_ZNSt10shared_ptrIN4node17PerProcessOptionsEED1Ev+0x5c)[0x7fdd265a544c] /lib/x86_64-linux-gnu/libc.so.6(+0x468a7)[0x7fdd2e6638a7] /lib/x86_64-linux-gnu/libc.so.6(on_exit+0x0)[0x7fdd2e663a60] node(_ZN4node33DefaultProcessExitHandlerInternalEPNS_11EnvironmentENS_8ExitCodeE+0x3e)[0xb21c9e] node(_ZN4node11Environment4ExitENS_8ExitCodeE+0x93)[0xb67c43] node[0xe2bcb0] node(_ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE+0xb6)[0xe2d106] node[0x18344f9] Segmentation fault

Despite this everything is perfectly normal, it's a non blocker basically... yet I'm unsure as to why this is occuring!

I'm using Windows VSL. My node version is 19.4.0.