From 7bd52079fc2035c5182c55163c8bc8932ac9c2df Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Tue, 1 Oct 2013 15:39:47 +0200 Subject: [PATCH 1/8] New upstream version: - Fixes a deadlock in GC callbacks - Disables experimental features --- .gitignore | 1 + abrt-java-connector.spec | 8 ++++++-- sources | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b9742eb..ab2d02a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /abrt-java-connector-1.0.3-872c1de.tar.gz /abrt-java-connector-1.0.4-e97c189.tar.gz /abrt-java-connector-1.0.5-9214372.tar.gz +/abrt-java-connector-1.0.6-befb850.tar.gz diff --git a/abrt-java-connector.spec b/abrt-java-connector.spec index df290a5..abb0fee 100644 --- a/abrt-java-connector.spec +++ b/abrt-java-connector.spec @@ -1,8 +1,8 @@ -%global commit 9214372f6635aa377954f26a7c4dc90477a14564 +%global commit befb850dbc72b117ad6bebabee314e7d41b97183 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: abrt-java-connector -Version: 1.0.5 +Version: 1.0.6 Release: 1%{?dist} Summary: JNI Agent library converting Java exceptions to ABRT problems @@ -96,6 +96,10 @@ make test %changelog +* Tue Oct 01 2013 Jakub Filak - 1.0.6-1 +- Fix a deadlock in GC start callback +- Disable experimental features in production releases + * Tue Jul 30 2013 Jakub Filak - 1.0.5-1 - Provide a proper configuration for libreport diff --git a/sources b/sources index 95fa143..59eddff 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -22d8cd75ed08c29207b4d50b7b275568 abrt-java-connector-1.0.5-9214372.tar.gz +5178c778188592bab07881a6bef064e8 abrt-java-connector-1.0.6-befb850.tar.gz From 402bbfa775a8b6876c36617ebc624910fd3cfcf1 Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Fri, 10 Jan 2014 16:24:23 +0100 Subject: [PATCH 2/8] New upstream release 1.0.7 Resolves: #1023081, #1026208 --- .gitignore | 1 + abrt-java-connector.spec | 15 +++++++++++++-- sources | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ab2d02a..8bfff79 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /abrt-java-connector-1.0.4-e97c189.tar.gz /abrt-java-connector-1.0.5-9214372.tar.gz /abrt-java-connector-1.0.6-befb850.tar.gz +/abrt-java-connector-1.0.7-873f82e.tar.gz diff --git a/abrt-java-connector.spec b/abrt-java-connector.spec index abb0fee..e0c4e56 100644 --- a/abrt-java-connector.spec +++ b/abrt-java-connector.spec @@ -1,8 +1,8 @@ -%global commit befb850dbc72b117ad6bebabee314e7d41b97183 +%global commit 873f82e89b01478edb8e286ae79fe7e91bf470ea %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: abrt-java-connector -Version: 1.0.6 +Version: 1.0.7 Release: 1%{?dist} Summary: JNI Agent library converting Java exceptions to ABRT problems @@ -14,6 +14,7 @@ Source0: https://github.com/jfilak/%{name}/archive/%{commit}/%{name}-%{version}- BuildRequires: cmake BuildRequires: libreport-devel BuildRequires: java-1.7.0-openjdk-devel +BuildRequires: systemd-devel Requires: abrt @@ -96,6 +97,16 @@ make test %changelog +* Fri Jan 10 2014 Jakub Filak - 1.0.7-1 +- Use the last frame class path for executable +- Gracefully handle JVMTI errors +- Add an abstract to README +- Add support for journald and syslog +- Make log output disabled by default +- Add support for changing log directory +- Fix a race condition causing a crash of JVM +- Resolves: #1023081, #1026208 + * Tue Oct 01 2013 Jakub Filak - 1.0.6-1 - Fix a deadlock in GC start callback - Disable experimental features in production releases diff --git a/sources b/sources index 59eddff..2be2ea9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -5178c778188592bab07881a6bef064e8 abrt-java-connector-1.0.6-befb850.tar.gz +5c08c9964a09a5dc2ae509a4ba3fa3ba abrt-java-connector-1.0.7-873f82e.tar.gz From 641234d9b141ffd34fa8d2ea1f9d514068dbca8e Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Wed, 22 Jan 2014 13:53:24 +0100 Subject: [PATCH 3/8] New upstream release 1.0.8 --- .gitignore | 1 + abrt-java-connector.spec | 52 ++++++++++++---------------------------- sources | 2 +- 3 files changed, 17 insertions(+), 38 deletions(-) diff --git a/.gitignore b/.gitignore index 8bfff79..623832e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /abrt-java-connector-1.0.5-9214372.tar.gz /abrt-java-connector-1.0.6-befb850.tar.gz /abrt-java-connector-1.0.7-873f82e.tar.gz +/abrt-java-connector-1.0.8-39322b0.tar.gz diff --git a/abrt-java-connector.spec b/abrt-java-connector.spec index e0c4e56..7b13d96 100644 --- a/abrt-java-connector.spec +++ b/abrt-java-connector.spec @@ -1,8 +1,8 @@ -%global commit 873f82e89b01478edb8e286ae79fe7e91bf470ea +%global commit 39322b058d182855559ce0d6679e3ad5de5dc82e %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: abrt-java-connector -Version: 1.0.7 +Version: 1.0.8 Release: 1%{?dist} Summary: JNI Agent library converting Java exceptions to ABRT problems @@ -12,9 +12,12 @@ URL: https://github.com/jfilak/abrt-java-connector Source0: https://github.com/jfilak/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz BuildRequires: cmake +BuildRequires: satyr-devel BuildRequires: libreport-devel +BuildRequires: abrt-devel BuildRequires: java-1.7.0-openjdk-devel BuildRequires: systemd-devel +BuildRequires: gettext Requires: abrt @@ -35,50 +38,17 @@ make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} -# Remove unwanted Fedora specific workflow configuration files -%if 0%{!?fedora:1} -rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_FedoraJava.xml -rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/workflows.d/report_fedora_java.conf -rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/events.d/java_event_fedora.conf -rm -f $RPM_BUILD_ROOT%{_mandir}/man5/report_fedora_java.conf.5 -rm -f $RPM_BUILD_ROOT%{_mandir}/man5/java_event_fedora.conf.5 -%endif - -# Remove unwanted RHEL specific workflow configuration files -%if 0%{!?rhel:1} -rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELJava.xml -rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/workflows.d/report_rhel_java.conf -rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/events.d/java_event_rhel.conf -rm -f $RPM_BUILD_ROOT%{_mandir}/man5/report_rhel_java.conf.5 -rm -f $RPM_BUILD_ROOT%{_mandir}/man5/java_event_rhel.conf.5 -%endif - - %files %doc LICENSE README AUTHORS %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_java.conf %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup_java.conf %config(noreplace) %{_sysconfdir}/libreport/events.d/java_event.conf +%{_bindir}/abrt-action-analyze-java +%{_mandir}/man1/abrt-action-analyze-java.1* %{_mandir}/man5/java_event.conf.5* %{_mandir}/man5/bugzilla_format_java.conf.5* %{_mandir}/man5/bugzilla_formatdup_java.conf.5* -%if 0%{?fedora} -%{_datadir}/libreport/workflows/workflow_FedoraJava.xml -%config(noreplace) %{_sysconfdir}/libreport/events.d/java_event_fedora.conf -%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_fedora_java.conf -%{_mandir}/man5/java_event_fedora.conf.5* -%{_mandir}/man5/report_fedora_java.conf.5* -%endif - -%if 0%{?rhel} -%{_datadir}/libreport/workflows/workflow_RHELJava.xml -%config(noreplace) %{_sysconfdir}/libreport/events.d/java_event_rhel.conf -%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel_java.conf -%{_mandir}/man5/java_event_rhel.conf.5* -%{_mandir}/man5/report_rhel_java.conf.5* -%endif - # install only unversioned shared object because the package is a Java plugin # and not a system library but unfortunately the library must be placed in ld # library paths @@ -97,6 +67,14 @@ make test %changelog +* Wed Jan 22 2014 Jakub Filak - 1.0.8-1 +- Do not report exceptions caught in a native method +- Mark stack traces with 3rd party classes as not-reportable +- Calculate 'duphash' & 'uuid' in satyr +- Use the main class URL for 'executable' +- Do not ship own reporting workflow definitions +- Code optimizations + * Fri Jan 10 2014 Jakub Filak - 1.0.7-1 - Use the last frame class path for executable - Gracefully handle JVMTI errors diff --git a/sources b/sources index 2be2ea9..e0abc6a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -5c08c9964a09a5dc2ae509a4ba3fa3ba abrt-java-connector-1.0.7-873f82e.tar.gz +5dd39a61a4775e3bea30a46968668ede abrt-java-connector-1.0.8-39322b0.tar.gz From 395b2d0edbdd9aa3312b7f41c9624b080248ce21 Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Tue, 4 Feb 2014 10:38:20 +0100 Subject: [PATCH 4/8] Fix covscan defects, double-free error on java process end Resolves: #1049011 --- ...air-of-defects-uncovered-by-coverity.patch | 51 +++++++++++++++++++ ...gent_onload-and-agent_onunload-are-p.patch | 51 +++++++++++++++++++ abrt-java-connector.spec | 13 ++++- 3 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 0001-Fix-a-pair-of-defects-uncovered-by-coverity.patch create mode 100644 0002-Make-sure-that-agent_onload-and-agent_onunload-are-p.patch diff --git a/0001-Fix-a-pair-of-defects-uncovered-by-coverity.patch b/0001-Fix-a-pair-of-defects-uncovered-by-coverity.patch new file mode 100644 index 0000000..4294fa1 --- /dev/null +++ b/0001-Fix-a-pair-of-defects-uncovered-by-coverity.patch @@ -0,0 +1,51 @@ +From 54be469b8b91272e1f9852670a2f49e6bbecd0d8 Mon Sep 17 00:00:00 2001 +From: Jakub Filak +Date: Wed, 22 Jan 2014 15:33:50 +0100 +Subject: [PATCH 1/2] Fix a pair of defects uncovered by coverity + +--- + src/abrt-checker.c | 8 ++++++-- + src/jthread_map.c | 1 + + 2 files changed, 7 insertions(+), 2 deletions(-) + +diff --git a/src/abrt-checker.c b/src/abrt-checker.c +index 91485e0..713053c 100644 +--- a/src/abrt-checker.c ++++ b/src/abrt-checker.c +@@ -2886,7 +2886,11 @@ void parse_commandline_options(char *options) + } + else if (strcmp("executable", key) == 0) + { +- if (strcmp("threadclass", value) == 0) ++ if (NULL == value || '\0' == value[0]) ++ { ++ fprintf(stderr, "A value of '%s' option cannot be empty\n", key); ++ } ++ else if (strcmp("threadclass", value) == 0) + { + VERBOSE_PRINT("Use a thread class for 'executable'\n"); + executableFlags |= ABRT_EXECUTABLE_THREAD; +@@ -2899,7 +2903,7 @@ void parse_commandline_options(char *options) + } + else + { +- fprintf(stderr, "Unknown 'executable' option's value '%s'\n", key); ++ fprintf(stderr, "Unknown '%s' option's value '%s'\n", key, value); + } + } + else +diff --git a/src/jthread_map.c b/src/jthread_map.c +index 4517398..4cb417b 100644 +--- a/src/jthread_map.c ++++ b/src/jthread_map.c +@@ -55,6 +55,7 @@ T_jthreadMap *jthread_map_new() + if (NULL == map) + { + fprintf(stderr, __FILE__ ":" STRINGIZE(__LINE__) ": calloc() error\n"); ++ return NULL; + } + + pthread_mutex_init(&map->mutex, /*use default attributes*/NULL); +-- +1.8.3.1 + diff --git a/0002-Make-sure-that-agent_onload-and-agent_onunload-are-p.patch b/0002-Make-sure-that-agent_onload-and-agent_onunload-are-p.patch new file mode 100644 index 0000000..e4c5f66 --- /dev/null +++ b/0002-Make-sure-that-agent_onload-and-agent_onunload-are-p.patch @@ -0,0 +1,51 @@ +From 71ac5da86488ace3ebb3f3fa4adc747a511634e2 Mon Sep 17 00:00:00 2001 +From: Pavel Tisnovsky +Date: Mon, 3 Feb 2014 18:00:35 +0100 +Subject: [PATCH 2/2] Make sure that agent_onload and agent_onunload are + processed only once. + +--- + src/abrt-checker.c | 16 ++++++++++++++++ + 1 file changed, 16 insertions(+) + +diff --git a/src/abrt-checker.c b/src/abrt-checker.c +index 713053c..f142d7e 100644 +--- a/src/abrt-checker.c ++++ b/src/abrt-checker.c +@@ -2923,10 +2923,17 @@ JNIEXPORT jint JNICALL Agent_OnLoad( + char *options, + void *reserved __UNUSED_VAR) + { ++ static int already_called = 0; + jvmtiEnv *jvmti_env = NULL; + jvmtiError error_code = JVMTI_ERROR_NONE; + jint result; + ++ /* we need to make sure the agent is initialized once */ ++ if (already_called) { ++ return; ++ } ++ ++ already_called = 1; + pthread_mutex_init(&abrt_print_mutex, /*attr*/NULL); + + INFO_PRINT("Agent_OnLoad\n"); +@@ -3001,6 +3008,15 @@ JNIEXPORT jint JNICALL Agent_OnLoad( + */ + JNIEXPORT void JNICALL Agent_OnUnload(JavaVM *vm __UNUSED_VAR) + { ++ static int already_called = 0; ++ ++ /* we need to make sure the agent is initialized once */ ++ if (already_called) { ++ return; ++ } ++ ++ already_called = 1; ++ + pthread_mutex_destroy(&abrt_print_mutex); + + INFO_PRINT("Agent_OnUnLoad\n"); +-- +1.8.3.1 + diff --git a/abrt-java-connector.spec b/abrt-java-connector.spec index 7b13d96..fc94fb7 100644 --- a/abrt-java-connector.spec +++ b/abrt-java-connector.spec @@ -3,7 +3,7 @@ Name: abrt-java-connector Version: 1.0.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: JNI Agent library converting Java exceptions to ABRT problems Group: System Environment/Libraries @@ -11,6 +11,9 @@ License: GPLv2+ URL: https://github.com/jfilak/abrt-java-connector Source0: https://github.com/jfilak/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +Patch0001: 0001-Fix-a-pair-of-defects-uncovered-by-coverity.patch +Patch0002: 0002-Make-sure-that-agent_onload-and-agent_onunload-are-p.patch + BuildRequires: cmake BuildRequires: satyr-devel BuildRequires: libreport-devel @@ -18,6 +21,7 @@ BuildRequires: abrt-devel BuildRequires: java-1.7.0-openjdk-devel BuildRequires: systemd-devel BuildRequires: gettext +BuildRequires: git Requires: abrt @@ -27,7 +31,7 @@ exceptions and transform them to ABRT problems %prep -%setup -qn %{name}-%{commit} +%autosetup -n %{name}-%{commit} -S git %build @@ -67,6 +71,11 @@ make test %changelog +* Tue Feb 04 2014 Jakub Filak - 1.0.8-2 +- Make sure that agent_onload and agent_onunload are processed only once +- Fix a pair of defects uncovered by coverity +- Resolves: #1049011 + * Wed Jan 22 2014 Jakub Filak - 1.0.8-1 - Do not report exceptions caught in a native method - Mark stack traces with 3rd party classes as not-reportable From a0edd4275f7e1e26068cb4e208d77a87a3f34536 Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Tue, 4 Feb 2014 17:04:36 +0100 Subject: [PATCH 5/8] Fix build --- ...the-right-constant-from-Agent_OnLoad.patch | 26 +++++++++ ...t-for-multiple-calls-of-Agent_OnLoad.patch | 54 +++++++++++++++++++ abrt-java-connector.spec | 8 ++- 3 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 0003-Return-the-right-constant-from-Agent_OnLoad.patch create mode 100644 0004-Add-a-test-for-multiple-calls-of-Agent_OnLoad.patch diff --git a/0003-Return-the-right-constant-from-Agent_OnLoad.patch b/0003-Return-the-right-constant-from-Agent_OnLoad.patch new file mode 100644 index 0000000..874b63a --- /dev/null +++ b/0003-Return-the-right-constant-from-Agent_OnLoad.patch @@ -0,0 +1,26 @@ +From 9b09814b2a7b04105f784d7cb79836c057b92830 Mon Sep 17 00:00:00 2001 +From: Jakub Filak +Date: Tue, 4 Feb 2014 16:37:12 +0100 +Subject: [PATCH 3/4] Return the right constant from Agent_OnLoad + +Related to rhbz#1049011 +--- + src/abrt-checker.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/abrt-checker.c b/src/abrt-checker.c +index f142d7e..e9caada 100644 +--- a/src/abrt-checker.c ++++ b/src/abrt-checker.c +@@ -2930,7 +2930,7 @@ JNIEXPORT jint JNICALL Agent_OnLoad( + + /* we need to make sure the agent is initialized once */ + if (already_called) { +- return; ++ return JNI_OK; + } + + already_called = 1; +-- +1.8.3.1 + diff --git a/0004-Add-a-test-for-multiple-calls-of-Agent_OnLoad.patch b/0004-Add-a-test-for-multiple-calls-of-Agent_OnLoad.patch new file mode 100644 index 0000000..0e33925 --- /dev/null +++ b/0004-Add-a-test-for-multiple-calls-of-Agent_OnLoad.patch @@ -0,0 +1,54 @@ +From 3fdb3cebe489b75d23f1f21672d4aadd10471ad2 Mon Sep 17 00:00:00 2001 +From: Jakub Filak +Date: Tue, 4 Feb 2014 16:38:02 +0100 +Subject: [PATCH 4/4] Add a test for multiple calls of Agent_OnLoad + +Related rhbz#1049011 +--- + test/CMakeLists.txt | 10 ++++++++++ + test/outputs/run_three_times.log.in | 13 +++++++++++++ + 2 files changed, 23 insertions(+) + create mode 100644 test/outputs/run_three_times.log.in + +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index 0439294..5b117a1 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -317,5 +317,15 @@ _add_test(run_remote_thread 0) + _add_analyze_test(not_reportable_1remote_class) + _add_analyze_test(not_reportable_3remote_classes) + ++_add_test_target( ++ run_three_times ++ SimpleTest ++ DEPENDS ${TEST_JAVA_TARGETS} ++ AGENT_OPTIONS caught=java.lang.ArrayIndexOutOfBoundsException:java.lang.NullPointerException -agentlib=${AGENT_NAME}=output=/proc/pid/0/java.log -agentlib=${AGENT_NAME}=output=/proc/pid/1/java.log ++) ++_add_test(run_three_times 2) ++ ++ ++ + get_directory_property(all_run_targets ALL_RUN_TARGETS) + add_custom_target(run_all DEPENDS ${all_run_targets}) +diff --git a/test/outputs/run_three_times.log.in b/test/outputs/run_three_times.log.in +new file mode 100644 +index 0000000..aa8b2c8 +--- /dev/null ++++ b/test/outputs/run_three_times.log.in +@@ -0,0 +1,13 @@ ++Caught exception java.lang.ArrayIndexOutOfBoundsException in method SimpleTest.throwIndexOutOfBoundsException() ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++ at SimpleTest.throwIndexOutOfBoundsException(SimpleTest.java:24) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] ++ at SimpleTest.catchIndexOutOfBoundsException(SimpleTest.java:47) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] ++ at SimpleTest.throwAndCatchAllExceptions(SimpleTest.java:61) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] ++ at SimpleTest.main(SimpleTest.java:81) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] ++executable: @CMAKE_BINARY_DIR@/test/SimpleTest.class ++Uncaught exception java.lang.NullPointerException in method SimpleTest.throwNullPointerException() ++Exception in thread "main" java.lang.NullPointerException ++ at SimpleTest.throwNullPointerException(SimpleTest.java:36) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] ++ at SimpleTest.throwAndDontCatchException(SimpleTest.java:71) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] ++ at SimpleTest.main(SimpleTest.java:83) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] ++executable: @CMAKE_BINARY_DIR@/test/SimpleTest.class +-- +1.8.3.1 + diff --git a/abrt-java-connector.spec b/abrt-java-connector.spec index fc94fb7..f17d8c3 100644 --- a/abrt-java-connector.spec +++ b/abrt-java-connector.spec @@ -3,7 +3,7 @@ Name: abrt-java-connector Version: 1.0.8 -Release: 2%{?dist} +Release: 3%{?dist} Summary: JNI Agent library converting Java exceptions to ABRT problems Group: System Environment/Libraries @@ -13,6 +13,8 @@ Source0: https://github.com/jfilak/%{name}/archive/%{commit}/%{name}-%{version}- Patch0001: 0001-Fix-a-pair-of-defects-uncovered-by-coverity.patch Patch0002: 0002-Make-sure-that-agent_onload-and-agent_onunload-are-p.patch +Patch0003: 0003-Return-the-right-constant-from-Agent_OnLoad.patch +Patch0004: 0004-Add-a-test-for-multiple-calls-of-Agent_OnLoad.patch BuildRequires: cmake BuildRequires: satyr-devel @@ -71,6 +73,10 @@ make test %changelog +* Tue Feb 04 2014 Jakub Filak - 1.0.8-3 +- Return the correct value from Agent_OnLoad +- Add test for multiple calls of Agent_On* + * Tue Feb 04 2014 Jakub Filak - 1.0.8-2 - Make sure that agent_onload and agent_onunload are processed only once - Fix a pair of defects uncovered by coverity From 7af63e35504b615e3fa3fc4bdfd76bb5dcf203be Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Tue, 18 Mar 2014 11:53:25 +0100 Subject: [PATCH 6/8] New upstream release 1.0.9 --- .gitignore | 1 + ...air-of-defects-uncovered-by-coverity.patch | 51 ------------------ ...gent_onload-and-agent_onunload-are-p.patch | 51 ------------------ ...the-right-constant-from-Agent_OnLoad.patch | 26 --------- ...t-for-multiple-calls-of-Agent_OnLoad.patch | 54 ------------------- abrt-java-connector.spec | 19 ++++--- sources | 2 +- 7 files changed, 13 insertions(+), 191 deletions(-) delete mode 100644 0001-Fix-a-pair-of-defects-uncovered-by-coverity.patch delete mode 100644 0002-Make-sure-that-agent_onload-and-agent_onunload-are-p.patch delete mode 100644 0003-Return-the-right-constant-from-Agent_OnLoad.patch delete mode 100644 0004-Add-a-test-for-multiple-calls-of-Agent_OnLoad.patch diff --git a/.gitignore b/.gitignore index 623832e..5fda6dd 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /abrt-java-connector-1.0.6-befb850.tar.gz /abrt-java-connector-1.0.7-873f82e.tar.gz /abrt-java-connector-1.0.8-39322b0.tar.gz +/abrt-java-connector-1.0.9-c933894.tar.gz diff --git a/0001-Fix-a-pair-of-defects-uncovered-by-coverity.patch b/0001-Fix-a-pair-of-defects-uncovered-by-coverity.patch deleted file mode 100644 index 4294fa1..0000000 --- a/0001-Fix-a-pair-of-defects-uncovered-by-coverity.patch +++ /dev/null @@ -1,51 +0,0 @@ -From 54be469b8b91272e1f9852670a2f49e6bbecd0d8 Mon Sep 17 00:00:00 2001 -From: Jakub Filak -Date: Wed, 22 Jan 2014 15:33:50 +0100 -Subject: [PATCH 1/2] Fix a pair of defects uncovered by coverity - ---- - src/abrt-checker.c | 8 ++++++-- - src/jthread_map.c | 1 + - 2 files changed, 7 insertions(+), 2 deletions(-) - -diff --git a/src/abrt-checker.c b/src/abrt-checker.c -index 91485e0..713053c 100644 ---- a/src/abrt-checker.c -+++ b/src/abrt-checker.c -@@ -2886,7 +2886,11 @@ void parse_commandline_options(char *options) - } - else if (strcmp("executable", key) == 0) - { -- if (strcmp("threadclass", value) == 0) -+ if (NULL == value || '\0' == value[0]) -+ { -+ fprintf(stderr, "A value of '%s' option cannot be empty\n", key); -+ } -+ else if (strcmp("threadclass", value) == 0) - { - VERBOSE_PRINT("Use a thread class for 'executable'\n"); - executableFlags |= ABRT_EXECUTABLE_THREAD; -@@ -2899,7 +2903,7 @@ void parse_commandline_options(char *options) - } - else - { -- fprintf(stderr, "Unknown 'executable' option's value '%s'\n", key); -+ fprintf(stderr, "Unknown '%s' option's value '%s'\n", key, value); - } - } - else -diff --git a/src/jthread_map.c b/src/jthread_map.c -index 4517398..4cb417b 100644 ---- a/src/jthread_map.c -+++ b/src/jthread_map.c -@@ -55,6 +55,7 @@ T_jthreadMap *jthread_map_new() - if (NULL == map) - { - fprintf(stderr, __FILE__ ":" STRINGIZE(__LINE__) ": calloc() error\n"); -+ return NULL; - } - - pthread_mutex_init(&map->mutex, /*use default attributes*/NULL); --- -1.8.3.1 - diff --git a/0002-Make-sure-that-agent_onload-and-agent_onunload-are-p.patch b/0002-Make-sure-that-agent_onload-and-agent_onunload-are-p.patch deleted file mode 100644 index e4c5f66..0000000 --- a/0002-Make-sure-that-agent_onload-and-agent_onunload-are-p.patch +++ /dev/null @@ -1,51 +0,0 @@ -From 71ac5da86488ace3ebb3f3fa4adc747a511634e2 Mon Sep 17 00:00:00 2001 -From: Pavel Tisnovsky -Date: Mon, 3 Feb 2014 18:00:35 +0100 -Subject: [PATCH 2/2] Make sure that agent_onload and agent_onunload are - processed only once. - ---- - src/abrt-checker.c | 16 ++++++++++++++++ - 1 file changed, 16 insertions(+) - -diff --git a/src/abrt-checker.c b/src/abrt-checker.c -index 713053c..f142d7e 100644 ---- a/src/abrt-checker.c -+++ b/src/abrt-checker.c -@@ -2923,10 +2923,17 @@ JNIEXPORT jint JNICALL Agent_OnLoad( - char *options, - void *reserved __UNUSED_VAR) - { -+ static int already_called = 0; - jvmtiEnv *jvmti_env = NULL; - jvmtiError error_code = JVMTI_ERROR_NONE; - jint result; - -+ /* we need to make sure the agent is initialized once */ -+ if (already_called) { -+ return; -+ } -+ -+ already_called = 1; - pthread_mutex_init(&abrt_print_mutex, /*attr*/NULL); - - INFO_PRINT("Agent_OnLoad\n"); -@@ -3001,6 +3008,15 @@ JNIEXPORT jint JNICALL Agent_OnLoad( - */ - JNIEXPORT void JNICALL Agent_OnUnload(JavaVM *vm __UNUSED_VAR) - { -+ static int already_called = 0; -+ -+ /* we need to make sure the agent is initialized once */ -+ if (already_called) { -+ return; -+ } -+ -+ already_called = 1; -+ - pthread_mutex_destroy(&abrt_print_mutex); - - INFO_PRINT("Agent_OnUnLoad\n"); --- -1.8.3.1 - diff --git a/0003-Return-the-right-constant-from-Agent_OnLoad.patch b/0003-Return-the-right-constant-from-Agent_OnLoad.patch deleted file mode 100644 index 874b63a..0000000 --- a/0003-Return-the-right-constant-from-Agent_OnLoad.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 9b09814b2a7b04105f784d7cb79836c057b92830 Mon Sep 17 00:00:00 2001 -From: Jakub Filak -Date: Tue, 4 Feb 2014 16:37:12 +0100 -Subject: [PATCH 3/4] Return the right constant from Agent_OnLoad - -Related to rhbz#1049011 ---- - src/abrt-checker.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/abrt-checker.c b/src/abrt-checker.c -index f142d7e..e9caada 100644 ---- a/src/abrt-checker.c -+++ b/src/abrt-checker.c -@@ -2930,7 +2930,7 @@ JNIEXPORT jint JNICALL Agent_OnLoad( - - /* we need to make sure the agent is initialized once */ - if (already_called) { -- return; -+ return JNI_OK; - } - - already_called = 1; --- -1.8.3.1 - diff --git a/0004-Add-a-test-for-multiple-calls-of-Agent_OnLoad.patch b/0004-Add-a-test-for-multiple-calls-of-Agent_OnLoad.patch deleted file mode 100644 index 0e33925..0000000 --- a/0004-Add-a-test-for-multiple-calls-of-Agent_OnLoad.patch +++ /dev/null @@ -1,54 +0,0 @@ -From 3fdb3cebe489b75d23f1f21672d4aadd10471ad2 Mon Sep 17 00:00:00 2001 -From: Jakub Filak -Date: Tue, 4 Feb 2014 16:38:02 +0100 -Subject: [PATCH 4/4] Add a test for multiple calls of Agent_OnLoad - -Related rhbz#1049011 ---- - test/CMakeLists.txt | 10 ++++++++++ - test/outputs/run_three_times.log.in | 13 +++++++++++++ - 2 files changed, 23 insertions(+) - create mode 100644 test/outputs/run_three_times.log.in - -diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt -index 0439294..5b117a1 100644 ---- a/test/CMakeLists.txt -+++ b/test/CMakeLists.txt -@@ -317,5 +317,15 @@ _add_test(run_remote_thread 0) - _add_analyze_test(not_reportable_1remote_class) - _add_analyze_test(not_reportable_3remote_classes) - -+_add_test_target( -+ run_three_times -+ SimpleTest -+ DEPENDS ${TEST_JAVA_TARGETS} -+ AGENT_OPTIONS caught=java.lang.ArrayIndexOutOfBoundsException:java.lang.NullPointerException -agentlib=${AGENT_NAME}=output=/proc/pid/0/java.log -agentlib=${AGENT_NAME}=output=/proc/pid/1/java.log -+) -+_add_test(run_three_times 2) -+ -+ -+ - get_directory_property(all_run_targets ALL_RUN_TARGETS) - add_custom_target(run_all DEPENDS ${all_run_targets}) -diff --git a/test/outputs/run_three_times.log.in b/test/outputs/run_three_times.log.in -new file mode 100644 -index 0000000..aa8b2c8 ---- /dev/null -+++ b/test/outputs/run_three_times.log.in -@@ -0,0 +1,13 @@ -+Caught exception java.lang.ArrayIndexOutOfBoundsException in method SimpleTest.throwIndexOutOfBoundsException() -+Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 -+ at SimpleTest.throwIndexOutOfBoundsException(SimpleTest.java:24) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] -+ at SimpleTest.catchIndexOutOfBoundsException(SimpleTest.java:47) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] -+ at SimpleTest.throwAndCatchAllExceptions(SimpleTest.java:61) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] -+ at SimpleTest.main(SimpleTest.java:81) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] -+executable: @CMAKE_BINARY_DIR@/test/SimpleTest.class -+Uncaught exception java.lang.NullPointerException in method SimpleTest.throwNullPointerException() -+Exception in thread "main" java.lang.NullPointerException -+ at SimpleTest.throwNullPointerException(SimpleTest.java:36) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] -+ at SimpleTest.throwAndDontCatchException(SimpleTest.java:71) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] -+ at SimpleTest.main(SimpleTest.java:83) [file:@CMAKE_BINARY_DIR@/test/SimpleTest.class] -+executable: @CMAKE_BINARY_DIR@/test/SimpleTest.class --- -1.8.3.1 - diff --git a/abrt-java-connector.spec b/abrt-java-connector.spec index f17d8c3..5a4efe4 100644 --- a/abrt-java-connector.spec +++ b/abrt-java-connector.spec @@ -1,9 +1,9 @@ -%global commit 39322b058d182855559ce0d6679e3ad5de5dc82e +%global commit c933894f160345a685ee2b1664adc1d1c65a4875 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: abrt-java-connector -Version: 1.0.8 -Release: 3%{?dist} +Version: 1.0.9 +Release: 1%{?dist} Summary: JNI Agent library converting Java exceptions to ABRT problems Group: System Environment/Libraries @@ -11,11 +11,6 @@ License: GPLv2+ URL: https://github.com/jfilak/abrt-java-connector Source0: https://github.com/jfilak/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz -Patch0001: 0001-Fix-a-pair-of-defects-uncovered-by-coverity.patch -Patch0002: 0002-Make-sure-that-agent_onload-and-agent_onunload-are-p.patch -Patch0003: 0003-Return-the-right-constant-from-Agent_OnLoad.patch -Patch0004: 0004-Add-a-test-for-multiple-calls-of-Agent_OnLoad.patch - BuildRequires: cmake BuildRequires: satyr-devel BuildRequires: libreport-devel @@ -23,6 +18,7 @@ BuildRequires: abrt-devel BuildRequires: java-1.7.0-openjdk-devel BuildRequires: systemd-devel BuildRequires: gettext +BuildRequires: check-devel BuildRequires: git Requires: abrt @@ -49,11 +45,13 @@ make install DESTDIR=%{buildroot} %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_java.conf %config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup_java.conf %config(noreplace) %{_sysconfdir}/libreport/events.d/java_event.conf +%config(noreplace) %{_sysconfdir}/abrt/plugins/java.conf %{_bindir}/abrt-action-analyze-java %{_mandir}/man1/abrt-action-analyze-java.1* %{_mandir}/man5/java_event.conf.5* %{_mandir}/man5/bugzilla_format_java.conf.5* %{_mandir}/man5/bugzilla_formatdup_java.conf.5* +%{_datadir}/abrt/conf.d/plugins/java.conf # install only unversioned shared object because the package is a Java plugin # and not a system library but unfortunately the library must be placed in ld @@ -73,6 +71,11 @@ make test %changelog +* Tue Mar 18 2014 Jakub Filak - 1.0.9-1 +- Make the agent configurable via a configuration file +- Include custom debug info in bug reports +- Make the detection of 'executable' working with JAR files + * Tue Feb 04 2014 Jakub Filak - 1.0.8-3 - Return the correct value from Agent_OnLoad - Add test for multiple calls of Agent_On* diff --git a/sources b/sources index e0abc6a..3fee8fd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -5dd39a61a4775e3bea30a46968668ede abrt-java-connector-1.0.8-39322b0.tar.gz +0984ec9f3459c142b39b18db229e441e abrt-java-connector-1.0.9-c933894.tar.gz From b8ad1b1d9c9be279dfed846500c495b97e2fda92 Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Fri, 4 Apr 2014 11:18:11 +0200 Subject: [PATCH 7/8] New upstream release 1.0.10 --- .gitignore | 1 + abrt-java-connector.spec | 9 +++++++-- sources | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5fda6dd..6052ad5 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /abrt-java-connector-1.0.7-873f82e.tar.gz /abrt-java-connector-1.0.8-39322b0.tar.gz /abrt-java-connector-1.0.9-c933894.tar.gz +/abrt-java-connector-1.0.10-fdf80c5.tar.gz diff --git a/abrt-java-connector.spec b/abrt-java-connector.spec index 5a4efe4..b05ab70 100644 --- a/abrt-java-connector.spec +++ b/abrt-java-connector.spec @@ -1,8 +1,8 @@ -%global commit c933894f160345a685ee2b1664adc1d1c65a4875 +%global commit fdf80c5de2400437cc2fbe56f14aacbf346274df %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: abrt-java-connector -Version: 1.0.9 +Version: 1.0.10 Release: 1%{?dist} Summary: JNI Agent library converting Java exceptions to ABRT problems @@ -19,6 +19,7 @@ BuildRequires: java-1.7.0-openjdk-devel BuildRequires: systemd-devel BuildRequires: gettext BuildRequires: check-devel +BuildRequires: rpm-devel BuildRequires: git Requires: abrt @@ -71,6 +72,10 @@ make test %changelog +* Fri Apr 4 2014 Jakub Filak - 1.0.10-1 +- Temporarily ignore failures of reporter-ureport until ABRT start using FAF2 +- Prevent users from reporting low quality stack traces + * Tue Mar 18 2014 Jakub Filak - 1.0.9-1 - Make the agent configurable via a configuration file - Include custom debug info in bug reports diff --git a/sources b/sources index 3fee8fd..fa8abdc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0984ec9f3459c142b39b18db229e441e abrt-java-connector-1.0.9-c933894.tar.gz +6f703b5ccecc8373c214d6298e223a13 abrt-java-connector-1.0.10-fdf80c5.tar.gz From 9d1625273d697628c782f88af95523ab6baf937b Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Fri, 9 May 2014 13:12:50 +0200 Subject: [PATCH 8/8] Add test results for Linux-ppc64le Related: #981682 --- 0001-Add-test-results-for-Linux-ppc64le.patch | 187 ++++++++++++++++++ abrt-java-connector.spec | 8 +- 2 files changed, 194 insertions(+), 1 deletion(-) create mode 100644 0001-Add-test-results-for-Linux-ppc64le.patch diff --git a/0001-Add-test-results-for-Linux-ppc64le.patch b/0001-Add-test-results-for-Linux-ppc64le.patch new file mode 100644 index 0000000..2152c14 --- /dev/null +++ b/0001-Add-test-results-for-Linux-ppc64le.patch @@ -0,0 +1,187 @@ +From c3357da4674c947baa9ba8e9137d6fd948781b96 Mon Sep 17 00:00:00 2001 +From: Jakub Filak +Date: Fri, 9 May 2014 12:34:04 +0200 +Subject: [PATCH] Add test results for Linux-ppc64le + +Related to rhbz#981682 +--- + test/outputs/Linux-ppc64le/run_test.log.in | 167 +++++++++++++++++++++++++++++ + 1 file changed, 167 insertions(+) + create mode 100644 test/outputs/Linux-ppc64le/run_test.log.in + +diff --git a/test/outputs/Linux-ppc64le/run_test.log.in b/test/outputs/Linux-ppc64le/run_test.log.in +new file mode 100644 +index 0000000..2a41f50 +--- /dev/null ++++ b/test/outputs/Linux-ppc64le/run_test.log.in +@@ -0,0 +1,167 @@ ++Caught exception java.io.FileNotFoundException in method java.io.FileInputStream.() ++Exception in thread "main" java.io.FileNotFoundException: _wrong_file_ (No such file or directory) ++ at java.io.FileInputStream.open(Native Method) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/io/FileInputStream.class] ++ at java.io.FileInputStream.(FileInputStream.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/io/FileInputStream.class] ++ at Test.readWrongFile(Test.java:89) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.fileRelatedIssues(Test.java:461) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:513) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.io.FileNotFoundException in method java.io.FileInputStream.() ++Exception in thread "main" java.io.FileNotFoundException: /root/.bashrc (Permission denied) ++ at java.io.FileInputStream.open(Native Method) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/io/FileInputStream.class] ++ at java.io.FileInputStream.(FileInputStream.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/io/FileInputStream.class] ++ at Test.readUnreadableFile(Test.java:111) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.fileRelatedIssues(Test.java:462) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:513) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.io.FileNotFoundException in method java.io.FileOutputStream.() ++Exception in thread "main" java.io.FileNotFoundException: /root/.bashrc (Permission denied) ++ at java.io.FileOutputStream.open(Native Method) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/io/FileOutputStream.class] ++ at java.io.FileOutputStream.(FileOutputStream.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/io/FileOutputStream.class] ++ at java.io.FileOutputStream.(FileOutputStream.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/io/FileOutputStream.class] ++ at Test.writeToUnwritableFile(Test.java:134) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.fileRelatedIssues(Test.java:463) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:513) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.lang.NumberFormatException in method java.lang.Integer.parseInt() ++Exception in thread "main" java.lang.NumberFormatException: null ++ at java.lang.Integer.parseInt(Integer.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/lang/Integer.class] ++ at java.lang.Integer.(Integer.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/lang/Integer.class] ++ at sun.net.InetAddressCachePolicy.(InetAddressCachePolicy.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/sun/net/InetAddressCachePolicy.class] ++ at java.net.InetAddress$Cache.getPolicy(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress$Cache.class] ++ at java.net.InetAddress$Cache.put(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress$Cache.class] ++ at java.net.InetAddress.cacheInitIfNeeded(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress.class] ++ at java.net.InetAddress.getCachedAddresses(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress.class] ++ at java.net.InetAddress.getAllByName0(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress.class] ++ at java.net.InetAddress.getAllByName(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress.class] ++ at java.net.InetAddress.getAllByName(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress.class] ++ at java.net.InetAddress.getByName(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress.class] ++ at java.net.InetSocketAddress.(InetSocketAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetSocketAddress.class] ++ at java.net.Socket.(Socket.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/Socket.class] ++ at Test.readFromUnknownHost(Test.java:157) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.networkRelatedIssues(Test.java:473) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.net.UnknownHostException in method java.net.InetAddress$1.lookupAllHostAddr() ++Exception in thread "main" java.net.UnknownHostException: xyzzy: Name or service not known ++ at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/Inet6AddressImpl.class] ++ at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress$1.class] ++ at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress.class] ++ at java.net.InetAddress.getAllByName0(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress.class] ++ at java.net.InetAddress.getAllByName(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress.class] ++ at java.net.InetAddress.getAllByName(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress.class] ++ at java.net.InetAddress.getByName(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress.class] ++ at java.net.InetSocketAddress.(InetSocketAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetSocketAddress.class] ++ at java.net.Socket.(Socket.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/Socket.class] ++ at Test.readFromUnknownHost(Test.java:157) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.networkRelatedIssues(Test.java:473) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.net.UnknownHostException in method java.net.AbstractPlainSocketImpl.connect() ++Exception in thread "main" java.net.UnknownHostException: xyzzy ++ at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/AbstractPlainSocketImpl.class] ++ at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/SocksSocketImpl.class] ++ at java.net.Socket.connect(Socket.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/Socket.class] ++ at java.net.Socket.connect(Socket.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/Socket.class] ++ at java.net.Socket.(Socket.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/Socket.class] ++ at java.net.Socket.(Socket.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/Socket.class] ++ at Test.readFromUnknownHost(Test.java:157) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.networkRelatedIssues(Test.java:473) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.net.ConnectException in method java.net.AbstractPlainSocketImpl.doConnect() ++Exception in thread "main" java.net.ConnectException: Connection refused ++ at java.net.PlainSocketImpl.socketConnect(Native Method) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/PlainSocketImpl.class] ++ at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/AbstractPlainSocketImpl.class] ++ at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/AbstractPlainSocketImpl.class] ++ at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/AbstractPlainSocketImpl.class] ++ at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/SocksSocketImpl.class] ++ at java.net.Socket.connect(Socket.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/Socket.class] ++ at java.net.Socket.connect(Socket.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/Socket.class] ++ at java.net.Socket.(Socket.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/Socket.class] ++ at java.net.Socket.(Socket.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/Socket.class] ++ at Test.readFromSocket(Test.java:177) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.networkRelatedIssues(Test.java:474) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.lang.NumberFormatException in method java.lang.Long.parseLong() ++Exception in thread "main" java.lang.NumberFormatException: null ++ at java.lang.Long.parseLong(Long.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/lang/Long.class] ++ at java.lang.Long.parseLong(Long.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/lang/Long.class] ++ at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/sun/net/www/protocol/http/HttpURLConnection.class] ++ at java.net.URL.openStream(URL.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/URL.class] ++ at Test.readFromURL(Test.java:237) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.networkRelatedIssues(Test.java:475) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.io.FileNotFoundException in method sun.net.www.protocol.http.HttpURLConnection.getInputStream() ++Exception in thread "main" java.io.FileNotFoundException: http://localhost:54321/_this_does_not_exists_ ++ at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/sun/net/www/protocol/http/HttpURLConnection.class] ++ at java.net.URL.openStream(URL.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/URL.class] ++ at Test.readFromURL(Test.java:237) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.networkRelatedIssues(Test.java:475) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.net.MalformedURLException in method java.net.URL.() ++Exception in thread "main" java.net.MalformedURLException: no protocol: @#$%^&malformed URL@#$%^&*() ++ at java.net.URL.(URL.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/URL.class] ++ at java.net.URL.(URL.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/URL.class] ++ at java.net.URL.(URL.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/URL.class] ++ at Test.malformedURL(Test.java:194) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.networkRelatedIssues(Test.java:476) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:514) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.lang.ArrayIndexOutOfBoundsException in method Test.throwIndexOutOfBoundsException() ++Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 42 ++ at Test.throwIndexOutOfBoundsException(Test.java:266) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.catchIndexOutOfBoundsException(Test.java:347) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.throwAndCatchAllExceptions(Test.java:486) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:515) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.lang.StringIndexOutOfBoundsException in method java.lang.String.charAt() ++Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1 ++ at java.lang.String.charAt(String.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/lang/String.class] ++ at Test.throwStringIndexOutOfBoundsException(Test.java:278) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.catchStringIndexOutOfBoundsException(Test.java:362) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.throwAndCatchAllExceptions(Test.java:487) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:515) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.lang.NullPointerException in method Test.throwNullPointerException() ++Exception in thread "main" java.lang.NullPointerException ++ at Test.throwNullPointerException(Test.java:290) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.catchNullPointerException(Test.java:377) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.throwAndCatchAllExceptions(Test.java:488) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:515) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.lang.ClassCastException in method Test.throwClassCastException() ++Exception in thread "main" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String ++ at Test.throwClassCastException(Test.java:302) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.catchClassCastException(Test.java:392) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.throwAndCatchAllExceptions(Test.java:489) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:515) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.lang.UnsatisfiedLinkError in method java.lang.Runtime.load0() ++Exception in thread "main" java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library: xyzzy ++ at java.lang.Runtime.load0(Runtime.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/lang/Runtime.class] ++ at java.lang.System.load(System.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/lang/System.class] ++ at Test.loadLibrary(Test.java:325) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.catchUnsatisfiedLinkErrorUserLibrary(Test.java:422) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.throwAndCatchAllExceptions(Test.java:491) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:515) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Caught exception java.lang.UnsatisfiedLinkError in method java.lang.ClassLoader.loadLibrary() ++Exception in thread "main" java.lang.UnsatisfiedLinkError: no xyzzy in java.library.path ++ at java.lang.ClassLoader.loadLibrary(ClassLoader.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/lang/ClassLoader.class] ++ at java.lang.Runtime.loadLibrary0(Runtime.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/lang/Runtime.class] ++ at java.lang.System.loadLibrary(System.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/lang/System.class] ++ at Test.loadSystemLibrary(Test.java:336) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.catchUnsatisfiedLinkErrorSystemLibrary(Test.java:437) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.throwAndCatchAllExceptions(Test.java:492) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:515) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class ++Uncaught exception java.lang.NullPointerException in method Test.throwNullPointerException() ++Exception in thread "main" java.lang.NullPointerException ++ at Test.throwNullPointerException(Test.java:290) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.throwAndDontCatchException(Test.java:501) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++ at Test.main(Test.java:518) [file:@CMAKE_BINARY_DIR@/test/Test.class] ++executable: @CMAKE_BINARY_DIR@/test/Test.class +-- +1.8.3.1 + diff --git a/abrt-java-connector.spec b/abrt-java-connector.spec index b05ab70..a1ba749 100644 --- a/abrt-java-connector.spec +++ b/abrt-java-connector.spec @@ -3,7 +3,7 @@ Name: abrt-java-connector Version: 1.0.10 -Release: 1%{?dist} +Release: 1.981682.ppc64le%{?dist} Summary: JNI Agent library converting Java exceptions to ABRT problems Group: System Environment/Libraries @@ -11,6 +11,8 @@ License: GPLv2+ URL: https://github.com/jfilak/abrt-java-connector Source0: https://github.com/jfilak/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +Patch01: 0001-Add-test-results-for-Linux-ppc64le.patch + BuildRequires: cmake BuildRequires: satyr-devel BuildRequires: libreport-devel @@ -72,6 +74,10 @@ make test %changelog +* Fri May 9 2014 Jakub Filak - 1.0.10-1.981682.ppc64le +- Add test results for Linux-ppc64le +- Related: #981682 + * Fri Apr 4 2014 Jakub Filak - 1.0.10-1 - Temporarily ignore failures of reporter-ureport until ABRT start using FAF2 - Prevent users from reporting low quality stack traces