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

这一点有些莫名其妙,可能是因为我没有经常遇到JRE核心转储。

我正在为Node.js使用官方的ElasticSearch模块,并试图在我的一个索引中创build一个新的文档。

我的节点应用程序似乎连接到ES实例就好了,但是当我执行create请求时,我的JRE咬了灰尘! 这里是节点吐出的错误:

 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. # 

这里是核心转储的内容 。

看起来有一个console.log()语句在节点5.2.0中导致这个错误: http : //github.com/nodejs/node/issues/4261

如果你降级到Node 5.1.1,你应该很好。