#Node-API related segmentation fault

10 messages · Page 1 of 1 (latest)

harsh ruin
#

Any idea what could be causing this crash? I'm using Node-API and the same module is working fine in Node.js. Can't figure out the exact part causing this to create a reproducible example 🤔

#

cc @dusk pilot any idea?

#

so it comes down to this specific part. Let me check what could be causing this in native land

harsh ruin
#

So the error comes down to napi_create_external

#

seems that finalizer cb being null is not handled correctly in deno

dusk pilot
#

oh huh

#

whats being finalized?

harsh ruin
#

I created an external with no finalizer callback (nullptr) and

  • deno just treats it as normal c callback and goes ahead to call it sometime
  • node will check if its null then its not called
tawny sedge
#

You never know if someone has placed a function at memory slot 0... (Apparently in some architectures it is a valid memory address.)

harsh ruin