-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
Assertion failed: ((start) <= (end)), function SliceOnto, file ../src/smalloc.cc #661
Comments
Hi, I tried the example from the module's readme, modified fields and everything seems to work fine. Would you mind to add a minimal sequence of code which can trigger this error? |
I'll try! |
@cperryk Can we get some code to reproduce with? |
Having some trouble with that. I can't reproduce the issue by downloading the email individually or just feeding its text to MailParser manually. Might just want to consider this closed unless I find more clues. |
Ok, will be closed until you can reproduce this bug |
@cperryk A couple others have also reported this. If you can come up with any number of steps to reproduce I'll take a look. Thanks. |
Issue in Node tracker: nodejs/node-v0.x-archive#9180 |
I suspect an issue somewhere in @trevnorris can you please take a look if the issue is in this line: https://github.com/iojs/io.js/blob/v1.x/lib/fs.js#L659 Are the arguments to |
@dchest might be on to something? https://github.com/iojs/io.js/blob/v1.x/src/node_file.cc#L794-L802 |
Okay, [convoluted] steps to reproduce:
Looks unrelated to the particular project ( Backtrace (sorry, without JS symbols):
|
Doesn't seem like the var fs = require('fs')
fs.open('./test', 'w', function(err, fd) {
if (err) return console.log(err)
fs.writeSync(fd, 'hello world1', /* insert whatever the heck you want */)
}) |
@Fishrock123 agreed, looks like the arguments in |
@dchest Thanks. I can get the script to fail using that method. |
The failure comes from |
To confirm that, set |
Fixed by c6fd2c5. |
@trevnorris great job, thank you! |
@dchest Np. And thank you for the reproducible test case. Without it I wouldn't have found the problem. :) |
0.12 has a bug with Buffers, which breaks tests: nodejs/node-v0.x-archive#9180 It will be fixed in the next release. For now, disable testing with Node 0.12. Io.js fixed the same bug in v1.3.0: nodejs/node#661 so if Travis CI have updated iojs version, tests should work.
I'm getting this fatal error running a script in io.js that I don't get running the same script in node.js:
I have no idea how to go about fixing this, and I don't know what/where this smalloc.cc file is.
What my script does is use MailParser to parse the text of an email into a js object. It gets a readstream of an email, pipes that into MailParser, but this error always triggers at the same line (names redacted):
To: Foo bar <foobar@foobar>, foo bar <foobar@foobar>
So, not sure if this is a MailParser error, but it seems likely to be something else considering it works fine in node.
The text was updated successfully, but these errors were encountered: