node.js - Segfault with NodeJs -
i'm trying execute test mocha in node , it's stopping segmentation fault.
in process of gathering intelligence on problem, noticed:
- i updated node , modules
i deleted node_modules , re
npm install
after using bunch of
console.log
located problem afterrender
method returns ,componentdidupdate
of react component fireswhen using iron-node there's no segfault. test passing
- with node, segfault occur when run problematic test (with mocha's
it.only(...)
)
i'd file issue don't know how reproduce yet.
any idea/help more welcome :)
edit:
for me doesn't make sense if you, got using tool: https://github.com/ddopson/node-segfault-handler
pid 19289 received sigsegv address: 0x38 /home/guillaume/documents/random_projects/cookies/node_modules/segfault-handler/build/release/segfault-handler.node(+0x1a1b)[0x7fb63afb7a1b] /usr/lib/libpthread.so.0(+0x10f00)[0x7fb640bb1f00] /usr/bin/node(_zn2v88internal9fieldtype7asclassev+0x15)[0x94a515] /usr/bin/node(_zn2v88internal9fieldtype7convertepns0_4zonee+0x24)[0x94a674] /usr/bin/node(_zn2v88internal8compiler17accessinfofactory25computepropertyaccessinfoens0_6handleins0_3mapeeens3_ins0_4nameeeens1_10accessmodeepns1_18propertyaccessinfoe+0x7a8)[0x75bcc8] /usr/bin/node(_zn2v88internal8compiler17accessinfofactory26computepropertyaccessinfoserkns0_4listins0_6handleins0_3mapeeens0_25freestoreallocationpolicyeeens4_ins0_4nameeeens1_10accessmodeepns0_10zonevectorins1_18propertyaccessinfoeee+0xae)[0x75c34e] /usr/bin/node(_zn2v88internal8compiler29jsnativecontextspecialization17reducenamedaccessepns1_4nodees4_rkns0_4listins0_6handleins0_3mapeeens0_25freestoreallocationpolicyeeens6_ins0_4nameeeens1_10accessmodeens0_12languagemodees4_+0x156)[0x7c5446] /usr/bin/node(_zn2v88internal8compiler29jsnativecontextspecialization17reducenamedaccessepns1_4nodees4_rkns0_13feedbacknexusens0_6handleins0_4nameeeens1_10accessmodeens0_12languagemodee+0xff)[0x7c74cf] /usr/bin/node(_zn2v88internal8compiler29jsnativecontextspecialization17reducejsloadnamedepns1_4nodee+0x7f)[0x7c755f] /usr/bin/node(_zn2v88internal8compiler29jsnativecontextspecialization6reduceepns1_4nodee+0x45)[0x7c9e25] /usr/bin/node(_zn2v88internal8compiler12graphreducer6reduceepns1_4nodee+0x36)[0x799706] /usr/bin/node(_zn2v88internal8compiler12graphreducer9reducetopev+0x1cc)[0x79a15c] /usr/bin/node(_zn2v88internal8compiler12graphreducer10reducenodeepns1_4nodee+0x68)[0x79a288] /usr/bin/node(_zn2v88internal8compiler8pipeline12generatecodeev+0xa4b)[0x7fe08b] /usr/bin/node(_zn2v88internal19optimizedcompilejob11creategraphev+0x26c)[0x85537c] /usr/bin/node(_zn2v88internal8compiler16getoptimizedcodeens0_6handleins0_10jsfunctioneeens1_15concurrencymodeens0_9bailoutidepns0_15javascriptframee+0xf0f)[0x856d4f] /usr/bin/node[0xb0202a] /usr/bin/node(_zn2v88internal35runtime_compileoptimized_concurrenteippns0_6objectepns0_7isolatee+0xda)[0xb0269a] [0x2cab7ce0961b]
edit 2:
i tried extract behavior test since it's integration/e2e test, kind of linked.
so here's do:
everything works expected until change route of react-router
. component render... or supposed to. error happens after render
method (and before componentdidupdate
of simple component). however, component rendered without problem earlier in test... when execute along other tests...
i tried change render method return <h1>hello</h1>
still run segfault.
Comments
Post a Comment