Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

reproducible crash with 0.5.7 in fs.c on OS X 10.7.2 #1739

Closed
egorFiNE opened this issue Sep 19, 2011 · 8 comments
Closed

reproducible crash with 0.5.7 in fs.c on OS X 10.7.2 #1739

egorFiNE opened this issue Sep 19, 2011 · 8 comments

Comments

@egorFiNE
Copy link

  1. Make empty directory, like /tmp/DDDD
  2. Run this:
fs = require('fs');
var data = fs.readdirSync('/tmp/DDDD');

My results:

Assertion failed: ((req->result == -1 && req->ptr == NULL) || (req->result >= 0 && req->ptr != NULL)), function uv_fs_req_cleanup, file src/unix/fs.c, line 89.
Abort trap: 6

I tried BOTH on a "stock" 0.5.7 and with 7e7e983. Same results.

@isaacs
Copy link

isaacs commented Sep 19, 2011

Reproducible on node master at 243c218

@bnoordhuis
Copy link
Member

Can you try it with the current master? I get Error: ENOENT, Success '/tmp/DDDD' on my linux system. Not quite there yet perhaps but better than a triggered assertion.

@egorFiNE
Copy link
Author

will do now.

@egorFiNE
Copy link
Author

Tried on current master, got the same assertion. Awaiting further instructions. :)

@egorFiNE
Copy link
Author

egorFiNE commented Oct 3, 2011

Still reproducible on 0.5.8.

@ry
Copy link

ry commented Oct 3, 2011

Added to v0.5.9 milestones. Sorry - I didn't see this earlier.

@egorFiNE
Copy link
Author

node 0.5.9 - not reproducible anymore. Thanks! I close this.

@bnoordhuis
Copy link
Member

Yes, it got fixed in 025f5c8. Forgot to close the issue, sorry.

shigeki pushed a commit to shigeki/node-v0.x-archive that referenced this issue Oct 16, 2015
To make it easy to figure out where the warning comes from.
Also fix style and variable name that was made in nodejs#1739.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants