首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PyLucene错误与IceTea / JDK / JRE

PyLucene错误与IceTea / JDK / JRE
EN

Stack Overflow用户
提问于 2014-11-13 08:53:13
回答 1查看 448关注 0票数 10

使用最新的http://bendemott.blogspot.de/2013/11/installing-pylucene-4-451.html,我遵循了幽门烯的安装指南pylucene-4.9.0.0

当我尝试lucene.initVM()时,我得到以下错误:

代码语言:javascript
复制
alvas@ubi:~$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lucene
>>> lucene.initVM()
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ffba22808b8, pid=5189, tid=140718811092800
#
# JRE version: OpenJDK Runtime Environment (7.0_65-b32) (build 1.7.0_65-b32)
# Java VM: OpenJDK 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 2.5.3
# Distribution: Ubuntu 14.04 LTS, package 7u71-2.5.3-0ubuntu0.14.04.1
# Problematic frame:
# V  [libjvm.so+0x6088b8]  jni_RegisterNatives+0x58
#
# 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:
# /home/alvas/hs_err_pid5189.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
#
Aborted (core dumped)

和文件http://pastebin.com/6B8FyC4Z

,我的IceTea配置有什么问题吗?还是我的JDK?或者JRE?

我该如何解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2015-04-13 13:55:25

因此,我查看了您的堆栈跟踪,我不认为问题是具体的pyLucene。在堆栈跟踪中,可以看到以下错误:

代码语言:javascript
复制
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000000

如果您查看第一部分,SIGSEGV,这意味着您在系统的某个地方有一个分段错误。SEGV_MAPERR是特定的错误,这意味着OpenJDK试图将内存映射到对象,但失败了。这可能是由于内存不足、分页文件/虚拟内存、地址空间差、甚至是糟糕的库造成的。它在另一台机器上工作的原因可能是任何事情。核心转储非常有用,所以如果您可以运行

代码语言:javascript
复制
ulimit -c unlimited

这会给你一些东西看。这是在VM中还是在物理机器上?如果Ubuntu没有为各种Java任务分配足够的内存,我已经在Ubuntu中看到了随机的sigsegv。我在我的ESXi虚拟机监控程序中特别看到了这一点,我最注意的是当ESXi开始执行内存交换时。我能够通过增加内存、重新启动VM和确保我的虚拟机管理程序没有交换内存来解决这个问题。如果这有帮助的话请告诉我。:)

编辑:我还注意到,如果底层存储提供者的性能很差,这会影响交换数据,我觉得这也会影响到sigsegv问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26904725

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档