Open rgillan opened 1 month ago
updating from Bun for reference: Sorry, I'd mistyped your reproduction. I can reproduce a segfault which occurs if libnode109 is installed, because msgpackr-extract picks up the definition of v8::Array::New and calls it with JSC values while that expects V8 values. Weirdly, I don't get the missing symbol error if libnode109 is not installed, instead it runs properly.
It appears that some of the V8 c++ api's are having issues with some npm modules and we think that unpack may be in the same boat. When we do a simple test on the latest Bun (1.1.20) on both RPi4 and RPi5 it crashes.
We raised this as a Bun issue earlier (and it's being worked on) but they pointed us to: https://github.com/oven-sh/bun/issues/4290
On the RPi4 we get:
bun: symbol lookup error: /opt/iotransit/lib/bun/node_modules/msgpackr-extract/build/Release/extract.node: undefined symbol: _ZN2v85Array3NewEPNS_7IsolateEPNS_5LocalINS_5ValueEEEm
On the RPi5 we get:
Expect we will need to wait for Bun to address this but thought it worthwhile sharing in case anyone else runs into the same issue. Thanks for all the effort on this module. pack works out of the box and the performance bump is great.