hyperboria / bugs

Peer-to-peer IPv6 networking, secure and near-zero-conf.
154 stars 17 forks source link

Work around Os.cpus() segfaulting node 0.8.22 on BeagleBone Black Angstrom #104

Closed interfect closed 8 years ago

interfect commented 8 years ago

The default nodejs on BeagleBoneBlack Angstrom Linux will segfault if you call Os.cpus(). The build script should make the Os.cpus() call in a separate process, and work around its failure.

This wouldn't be cjdns's problem, except every other version of nodejs Ive tried (the one cjdns downloads and the latest one) falls down at converting numbers to hex. On the BBB, in Node 4.2.6, (100).toString(16) returns 'C'. No joke.

interfect commented 8 years ago

This is a dumb idea and Node's problem.