What are you trying to do?
Using serialport for access the serial port.
What happens?
A simple test program ends up in an error message Speicherzugriffsfehler ("segmentation fault").
Other ports (e.g. ttyAMA0) produce the same error.
What should have happened?
No error message / crash should occure.
const SerialPort = require('serialport')
const port = new SerialPort('/dev/ttyUSB0', { baudRate: 256000 })
In the meanwhile, pierreroth64 postet the same issue. I can confirm, what he descriped. When i change to 6.2.2 everythink works.
Here is mine #1770
SIGSEGV happens at that line because ConnectionOptionsBaton inherits from Nan::AsyncResource (requiring a v8 isolate) and EIO_Open -> setup is called from a uv thread that doesn't have an associated isolate.
Downgrading to 6.2.2 it's ok. With 7.x.x it's broken.
I had the same problem. Tried different versions of Node (eg LTS, latest, 8.15, etc) with no change. Glad to see it is possible to roll back to an earlier version, but...
Same here, downgrading to 6.2.2 works
How does 7.1.0 work for you?
We should have this fixed later today btw #1772
415891c586f202f07006ba4f541c437cad2ba5d0 fixes the segfaults for me on a Raspberry Pi 3 running 32-bit Arch Linux ARM. :+1:
[email protected] has been relased with the fix. Sorry for the delay on this.