NodeOS / NodeOS

Lightweight operating system using Node.js as userspace

Home Page:http://node-os.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Entire system crash from the interpreter

LoganDark opened this issue · comments

require('fs').readFileSync('/bin/node').toString('utf8'), in the interpreter, crashes the entire system.

There's a bunch of extremely fast scrolling text and then the system immediately powers off.

Obviously, bin/node is the Node.js executable, not only is binary but also is really big, so it's normal it output garbage. It should not crash, this could be for an out of memory problem, or some instruction inside the Node.js binary itself. Can you provide more info about how it crash?

@piranna The screen floods with text very quickly and then the system immediately shuts off, check the issue.

it's normal it output garbage

The text is by the kernel (i.e. has timestamps and ASCII and all that).