简体   繁体   English

Mac OS X Yosemite上的ElasticSearch + Node:JRE崩溃?

[英]ElasticSearch + Node on Mac OS X Yosemite: JRE crash?

Somewhat baffled by this one, probably because I haven't often encountered a JRE core dump. 对此有些困惑,可能是因为我很少遇到JRE核心转储。

I'm using the official ElasticSearch module for Node.js, and attempting to create a new document in one of my indices. 我正在使用Node.js的官方ElasticSearch模块,并尝试在我的一个索引中创建一个新文档。

My Node app appears to connect to the ES instance just fine, but when I execute the create request, my JRE bites the dust! 我的Node应用程序似乎可以很好地连接到ES实例,但是当我执行create请求时,我的JRE尘土飞扬! Here's the error spit out by Node: 这是Node吐出的错误:

Elasticsearch INFO: 2015-12-16T21:40:47Z
  Adding connection to http://my.server.address/:9200
Elasticsearch DEBUG: 2015-12-16T21:40:53Z
  starting request { method: 'POST',
    path: '/test/document',
    body: { foo: 'bar' },
    query: { op_type: 'create' } }

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000001004f3616, pid=40975, tid=1299
#
# JRE version: Java(TM) SE Runtime Environment (7.0_79-b15) (build 1.7.0_79-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.79-b02 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [node+0x4f3616]  _ZN4node8debugger5Agent14MessageHandlerERKN2v85Debug7MessageE+0x34
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Path/To/My/App/hs_err_pid42140.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

And here are the contents of the core dump . 这是核心转储的内容

It looks like there's a bug with a console.log() statement causing this in node 5.2.0: http://github.com/nodejs/node/issues/4261 似乎在console.log()语句中存在一个错误,导致在节点5.2.0中导致此错误: http : //github.com/nodejs/node/issues/4261

If you downgrade to Node 5.1.1, you should be good to go. 如果您降级到Node 5.1.1,则应该一切顺利。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM