geocar / mmap

node mmap implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: EBADF, Bad file descriptor

leeight opened this issue · comments

After checkout https://github.com/indutny/jit.js.git and run example/basic/main.js, I got the following error.

/home/users/foo/local/jit.js/node_modules/mmap/index.js:6
    return real_map(size,protection,flags,fd,offset);
           ^
Error: EBADF, Bad file descriptor
    at mmap_wrapper (/home/users/foo/local/jit.js/node_modules/mmap/index.js:6:12)
    at toExecutable (/home/users/foo/local/jit.js/lib/jit/api.js:17:15)
    at Object.wrap (/home/users/foo/local/jit.js/lib/jit/api.js:105:14)
    at Object.compile (/home/users/foo/local/jit.js/lib/jit/api.js:131:14)
    at Object.<anonymous> (/home/users/foo/local/jit.js/example/basic/main.js:9:14)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)