Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
catching memory corruption
static Handle<Value> Stat(const Arguments& args) {
HandleScope scope;
if (args.Length() < 1 || !args[0]->IsString()) {
String::Utf8Value path(args[0]->ToString());
if (args[1]->IsFunction()) {
ASYNC_CALL(stat, args[1], *path)
} else {
printf("isolate_ before call to uv: %p\n", *((void**)&scope));
SYNC_CALL(stat, *path, *path)
printf("isolate_ after call to uv: %p\n", *((void**)&scope));
return scope.Close(BuildStatsObject((NODE_STAT_STRUCT*)SYNC_REQ.ptr));

This comment has been minimized.

Copy link
Owner Author

commented Nov 9, 2011

isolate_ before call to uv: 0x101026800
isolate_ after call to uv: 0x0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.