Skip to content

Endless loop, node crashes with out of memory #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
teobugslayer opened this issue Dec 8, 2015 · 2 comments
Closed

Endless loop, node crashes with out of memory #142

teobugslayer opened this issue Dec 8, 2015 · 2 comments

Comments

@teobugslayer
Copy link

Repro case

var fileContents = '<Page><Label class="title"/></Page';

var domErrorHandler = function(level, str) { console.log("x"); };
var DomParser = require("xmldom").DOMParser;
var parser = new DomParser({ locator:{}, errorHandler: domErrorHandler });
parser.parseFromString(fileContents, "text/xml");

This makes node to allocate endlessly memory until the process crashes. If the attribute in the inner tag is removed, #139 happens instead.

This is blocker for us, because it triggers NativeScript/nativescript-cli#1307

@teobugslayer
Copy link
Author

Happens with node 4.2.3 on Windows, or node 0.12 on OS X.

@jindw
Copy link
Owner

jindw commented Jan 10, 2016

thanks for your report!
it's a serious bug!!

fixed !

@jindw jindw closed this as completed Jan 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants