2014-11-18 1 views
1

를 CentOS 6.6Redhawk이 자바 오류로 충돌 - 신호 (6)에 의해 살해, SIGABRT

Redhawk이 1.10

내가 반복에 프로그램을 일으킬 Redhawk이의 일련의 조작 (프로그램 작성 USRP의 IP를) 할 수

출처 : 자바 1.7.0 - 오픈 JDK

문제 : 프로세스 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71.x86_64/jre/bin 다음과 같은 오류와 충돌/자바 신호 6 (SIGABRT)에 의해 살해했다

이것을 방지하는 방법에 대한 아이디어가 있으십니까?

또한 저는 Redhawk와 Linux에 매우 익숙하므로 ELI5를 알려주십시오. 주제에 나보다 훨씬 똑똑한 사람 당

답변

2

는 :

This is an issue that has just come up with the release of CentOS6.6 as it uses a newer version of gtk2 than CentOS6.5. Eclipse detects this and erroneously assumes it can use the cairo graphics API which is either not available or not at the expected version. It's actually a bug within the Eclipse Version used by the v1.10 and v1.9 series REDHAWK IDE. Information about the issue can be found on this eclipse forum. Eclipse has since fixed the issue within it's latest code base.

The easiest fix for 1.10 and 1.9 users is to apply the fix mentioned within the forum post. Navigate to the directory which contains your eclipse executable (REDHAWK IDE executable) and there should be a configuration file called "eclipse.ini". Add the following parameter to the list of declared options:

-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false

This will disable the use of cairo graphics, which were not being used in the first place.

1

나는 두 개의 별도의 JVM 인스턴스를 생성하고 싶어하는 과정에서 원격 디버깅을 수행했기 때문에이 오류가 일어난 것을 발견했다. 테스트 주자를 실행 한 사람과 실제 테스트를 수행 한 사람. 당신과 함께 프로그램을 실행 한 경우 :

export _JAVA_OPTIONS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7002"

인스 턴스 모두가 포트 7002을 사용하려고 (7002)가 두 번째 인스턴스에 대한 사용하기 때문에 신호 중단이 나타납니다.

대신 사용할 수 있습니다

export _JAVA_OPTIONS="agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=7002"

을 예, 동시에 실행 인스턴스를 방지하기 위해 중지 설정하면. 별도의 인스턴스를 실행하려면 원격 디버거를 두 번 연결해야합니다.