-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Abort trap: 6 #5646
Comments
Can you post the output of |
Darwin DsMacBookPro 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64 |
@dmitryame what version of node are you using? |
node --version |
Can you run with
and paste the output? Thanks! |
lldb -- node app.js
|
does |
(lldb) bt all
|
Do you have any code that you could share? It is a little difficult to identify exactly is causing the issue without having a test case |
As far as I can tell, it's failing on line 27 of the following code, the line right after the commented out // console.log(this.activation_code); : 'use strict';
var _ = require('lodash');
var massive = require("massive");
var db = require('../consts').DB;
var Employee = function(properties) {
_.assign(this, properties);
}
// set id to the employee obejct, call load to populate the rest of the properties
Employee.prototype.load = function () {
var foundEmployee = db.employees.findOneSync({id: this.id});
if(foundEmployee) {
_.assign(this, foundEmployee);
return this;
} else {
return null;// this is error
}
}
// set activation_code to the employee object, call load to populate the rest of the properties
Employee.prototype.loadByActivationCode = function () {
// console.log(this.activation_code);
var foundEmployee = db.employees.findOneSync( { "activation_code" : this.activation_code } );
if(foundEmployee) {
_.assign(this, foundEmployee);
return this;
} else {
return null;// this is error
}
}
|
Ok, I'm going to assume this is related to the database driver from looking at this. What package are you using for database connections? |
I'm using massive js with postgresql. |
well, actually it was hapeening in that spot in the morning, but now it's not happening in that code any more, I added some trace log after the call that I thought was crashing and it now goes through that line but still Abort trap: 6 somewhere else. |
And now that I took out the concole.log it's not happnening any more. |
It's still happening, in totally different use case now, the same output though. |
I'm pretty sure it's happening on this line of code: |
Without having an actual full test case that reproduces this, it is going to be quite difficult for us to help you debug it. This looks like an issue with a native add on though. |
parse.json is native add on? |
I don't even see where that is |
Actually, yes, perhaps it's part of koa-router
|
Guys, |
ok never mind, it comes from co-body npm |
All over sudden I started getting the following error and node just crashes:
DsMacBookPro:TLogServer dmitry$ node app.js
Assertion failed: (handle->type == UV_TCP || handle->type == UV_TTY || handle->type == UV_NAMED_PIPE), function uv___stream_fd, file ../deps/uv/src/unix/stream.c, line 1545.
Abort trap: 6
I really have no idea how to reproduce it. I've seen there were issues related to stream.c which were fixed in the later releases of node.js. Is this issue back and can be addressed again?
The text was updated successfully, but these errors were encountered: