Skip to content

node js 5.2.0 segmentation fault after console.log #4261

Closed
@jianpingw

Description

The segementation fault is easy to trigger. I use sailsJS and here are the lines to cause the crash:

foo: function (req, res) {
    console.log(req.body); // This line will trigger crash later on.
    // One ORM call.
    Bar.findOne(...) // ORM call, crashed
}

The "console.log" reliably causes the nodeJS crash later on. The same code works fine on 5.1.1.

Trace from segfault-handler.node(+0x1af4)[0x7f9a58a9aaf4]:

/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340)[0x7f9a5de94340]
/usr/local/bin/node(_ZN4node8debugger5Agent14MessageHandlerERKN2v85Debug7MessageE+0x41)[0xe06371]
/usr/local/bin/node(_ZN2v88internal5Debug20NotifyMessageHandlerENS_10DebugEventENS0_6HandleINS0_8JSObjectEEES5_b+0x9e3)[0xa540d3]
/usr/local/bin/node(_ZN2v88internal5Debug17ProcessDebugEventENS_10DebugEventENS0_6HandleINS0_8JSObjectEEEb+0x9b)[0xa5630b]
/usr/local/bin/node(_ZN2v88internal5Debug14OnAfterCompileENS0_6HandleINS0_6ScriptEEE+0x23e)[0xa5751e]
/usr/local/bin/node(_ZN2v88internal8Compiler19GetFunctionFromEvalENS0_6HandleINS0_6StringEEENS2_INS0_18SharedFunctionInfoEEENS2_INS0_7ContextEEENS0_12LanguageModeENS0_16ParseRestrictionEiiNS2_INS0_6ObjectEEENS_19ScriptOriginOptionsE+0x143)[0xa31ff3]
/usr/local/bin/node(_ZN2v88internal21Runtime_CompileStringEiPPNS0_6ObjectEPNS0_7IsolateE+0x143)[0xca1c43]
[0x27fae210839b]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    consoleIssues and PRs related to the console subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions