Home > front end >  random crash in our node app with fatal error
random crash in our node app with fatal error

Time:11-04

my node program is crashing with the following error. Tried on both node v14.18.1 and v16.13.0.

#
# Fatal error in , line 0
# Check failed: i::kMaxInt >= len.
#
#
#
#FailureMessage Object: 0x7ffd97a48d20
 1: 0xaa6321  [node]
 2: 0x1a3b274 V8_Fatal(char const*, ...) [node]
 3: 0xbcec79 v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::NewStringType, int) [node]
 4: 0xb1c319  [node]
 5: 0xa14671  [node]
 6: 0xc238db  [node]
 7: 0xc24e86  [node]
 8: 0xc25506 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [node]
 9: 0x1446459  [node]

CodePudding user response:

Since there's v8::String::NewFromUtf8 on the stack, and Check failed: i::kMaxInt >= len in the error message, it's pretty clear that your string is too long. On 64-bit platforms, the max string length that V8 supports is ~536 million characters.

  • Related