Compare commits

...
This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.

2 commits

Author SHA1 Message Date
Jakub Filak
0d9a02aa54 Update the test results for aarch64 2014-11-04 07:29:31 +01:00
Jakub Filak
bb5dd72b57 Support OpenJDK-1.8
Resolves: #1136437
2014-10-30 14:27:23 +01:00
7 changed files with 1616 additions and 43 deletions

1
.gitignore vendored
View file

@ -9,3 +9,4 @@
/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
/abrt-java-connector-1.1.0-230b726.tar.gz

View file

@ -0,0 +1,28 @@
From f6d7c30415898c73a3b1c207d2acb496f53f67ee Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Thu, 30 Oct 2014 09:36:49 +0100
Subject: [PATCH] Decrease the tested memory limits because of failures on arm
Related to #42
---
test/Test.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/Test.java b/test/Test.java
index cd4acf4..cbbc113 100644
--- a/test/Test.java
+++ b/test/Test.java
@@ -71,8 +71,8 @@ public class Test {
{ int[] intArray1D = new int[DIM_SIZE * DIM_SIZE]; }
/* allocated size = 4096*4096*4 bytes */
{ int[][] intArray2D = new int[DIM_SIZE][DIM_SIZE]; }
- { double[] doubleArray1D = new double[DIM_SIZE * DIM_SIZE]; }
- { double[][] doubleArray2D = new double[DIM_SIZE][DIM_SIZE]; }
+ { double[] doubleArray1D = new double[DIM_SIZE * (DIM_SIZE/2)]; }
+ { double[][] doubleArray2D = new double[DIM_SIZE][DIM_SIZE/2]; }
// string could be allocated using some base array
{ String s = new String(new byte[DIM_SIZE * DIM_SIZE]); }
--
2.1.0

View file

@ -1,33 +1,80 @@
From 079ebced0f614c21b0ed7fc15a4039667394e6fd Mon Sep 17 00:00:00 2001
From 0495592c727a624d12e7840ec62d4d60370ed5d3 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Fri, 9 May 2014 12:34:04 +0200
Subject: [PATCH] Add test results for Linux-ppc64le
Date: Thu, 30 Oct 2014 11:41:08 +0100
Subject: [PATCH] Adapt the arm test outputs to java-1.8
Related to rhbz#981682
Related to #42
---
test/CMakeLists.txt | 2 +-
test/outputs/Linux-ppc64le/run_test.log.in | 167 +++++++++++++++++++++++++++++
2 files changed, 168 insertions(+), 1 deletion(-)
create mode 100644 test/outputs/Linux-ppc64le/run_test.log.in
test/outputs/Linux-armv7l/run_test.log.in | 33 +---
test/outputs/Linux-armv7l/run_test.log.in.java-1.7 | 167 +++++++++++++++++++++
2 files changed, 175 insertions(+), 25 deletions(-)
create mode 100644 test/outputs/Linux-armv7l/run_test.log.in.java-1.7
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 5717c10..6cc888b 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -259,7 +259,7 @@ _add_test(run_cut_reason_message 2)
if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^s390x?$")
set(STRESS_TEST_REPEATS 30)
set(STRESS_TEST_THREADS 200)
-elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^ppc\(64\)?$")
+elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^ppc\(64\)?\(le\)?$")
set(STRESS_TEST_REPEATS 20)
set(STRESS_TEST_THREADS 150)
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^armv7l$")
diff --git a/test/outputs/Linux-ppc64le/run_test.log.in b/test/outputs/Linux-ppc64le/run_test.log.in
diff --git a/test/outputs/Linux-armv7l/run_test.log.in b/test/outputs/Linux-armv7l/run_test.log.in
index 2a41f50..3d83a66 100644
--- a/test/outputs/Linux-armv7l/run_test.log.in
+++ b/test/outputs/Linux-armv7l/run_test.log.in
@@ -23,29 +23,10 @@ Exception in thread "main" java.io.FileNotFoundException: /root/.bashrc (Permiss
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.<init>(Integer.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/lang/Integer.class]
- at sun.net.InetAddressCachePolicy.<clinit>(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.<init>(InetSocketAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetSocketAddress.class]
- at java.net.Socket.<init>(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
+Caught exception java.net.UnknownHostException in method java.net.InetAddress$2.lookupAllHostAddr()
+Exception in thread "main" java.net.UnknownHostException: xyzzy: unknown error
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$2.lookupAllHostAddr(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress$2.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]
@@ -88,17 +69,19 @@ Caught exception java.lang.NumberFormatException in method java.lang.Long.parseL
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.getInputStream0(HttpURLConnection.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/sun/net/www/protocol/http/HttpURLConnection.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.readFromURL(Test.java:238) [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()
+Caught exception java.io.FileNotFoundException in method sun.net.www.protocol.http.HttpURLConnection.getInputStream0()
Exception in thread "main" java.io.FileNotFoundException: http://localhost:54321/_this_does_not_exists_
+ at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/sun/net/www/protocol/http/HttpURLConnection.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.readFromURL(Test.java:238) [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
diff --git a/test/outputs/Linux-armv7l/run_test.log.in.java-1.7 b/test/outputs/Linux-armv7l/run_test.log.in.java-1.7
new file mode 100644
index 0000000..2a41f50
--- /dev/null
+++ b/test/outputs/Linux-ppc64le/run_test.log.in
+++ b/test/outputs/Linux-armv7l/run_test.log.in.java-1.7
@@ -0,0 +1,167 @@
+Caught exception java.io.FileNotFoundException in method java.io.FileInputStream.<init>()
+Exception in thread "main" java.io.FileNotFoundException: _wrong_file_ (No such file or directory)
@ -197,5 +244,5 @@ index 0000000..2a41f50
+ at Test.main(Test.java:518) [file:@CMAKE_BINARY_DIR@/test/Test.class]
+executable: @CMAKE_BINARY_DIR@/test/Test.class
--
1.8.3.1
2.1.0

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,59 @@
From 452bfd970a9ed8c90aaabc84de000a44c6406177 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Tue, 4 Nov 2014 07:15:01 +0100
Subject: [PATCH] Update Linux-aarch64 test outputs
Related to #42
---
test/outputs/Linux-aarch64/run_test.log.in | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/test/outputs/Linux-aarch64/run_test.log.in b/test/outputs/Linux-aarch64/run_test.log.in
index 3d83a66..4ec6544 100644
--- a/test/outputs/Linux-aarch64/run_test.log.in
+++ b/test/outputs/Linux-aarch64/run_test.log.in
@@ -1,4 +1,4 @@
-Caught exception java.io.FileNotFoundException in method java.io.FileInputStream.<init>()
+Caught exception java.io.FileNotFoundException in method java.io.FileInputStream.open()
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.<init>(FileInputStream.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/io/FileInputStream.class]
@@ -6,7 +6,7 @@ Exception in thread "main" java.io.FileNotFoundException: _wrong_file_ (No such
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.<init>()
+Caught exception java.io.FileNotFoundException in method java.io.FileInputStream.open()
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.<init>(FileInputStream.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/io/FileInputStream.class]
@@ -14,7 +14,7 @@ Exception in thread "main" java.io.FileNotFoundException: /root/.bashrc (Permiss
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.<init>()
+Caught exception java.io.FileNotFoundException in method java.io.FileOutputStream.open()
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.<init>(FileOutputStream.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/io/FileOutputStream.class]
@@ -23,7 +23,7 @@ Exception in thread "main" java.io.FileNotFoundException: /root/.bashrc (Permiss
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.net.UnknownHostException in method java.net.InetAddress$2.lookupAllHostAddr()
+Caught exception java.net.UnknownHostException in method java.net.Inet6AddressImpl.lookupAllHostAddr()
Exception in thread "main" java.net.UnknownHostException: xyzzy: unknown error
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/Inet6AddressImpl.class]
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:LINENO) [jar:file:JAVA_AND_SYSTEM_SPECIFIC_PATH/rt.jar!/java/net/InetAddress$2.class]
@@ -50,7 +50,7 @@ Exception in thread "main" java.net.UnknownHostException: xyzzy
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()
+Caught exception java.net.ConnectException in method java.net.PlainSocketImpl.socketConnect()
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]
--
2.1.0

View file

@ -1,9 +1,9 @@
%global commit fdf80c5de2400437cc2fbe56f14aacbf346274df
%global commit 230b72697c7c43db747b2644b17cb2685d1539de
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: abrt-java-connector
Version: 1.0.10
Release: 4%{?dist}
Version: 1.1.0
Release: 2%{?dist}
Summary: JNI Agent library converting Java exceptions to ABRT problems
Group: System Environment/Libraries
@ -11,13 +11,11 @@ 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
BuildRequires: abrt-devel
BuildRequires: java-1.7.0-openjdk-devel
BuildRequires: java-devel
BuildRequires: systemd-devel
BuildRequires: gettext
BuildRequires: check-devel
@ -26,6 +24,12 @@ BuildRequires: git
Requires: abrt
# git format-patch 416db946329b043a58acf557f0525361a97e1da1 -N
Patch0001: 0001-Decrease-the-tested-memory-limits-because-of-failure.patch
Patch0002: 0002-Adapt-the-arm-test-outputs-to-java-1.8.patch
Patch0003: 0003-Add-java-1.8-test-outputs-for-aarch-ppc-and-s390.patch
Patch0004: 0004-Update-Linux-aarch64-test-outputs.patch
%description
JNI library providing an agent capable to process both caught and uncaught
exceptions and transform them to ABRT problems
@ -61,24 +65,30 @@ make install DESTDIR=%{buildroot}
%{_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
# library paths
%{_libdir}/lib%{name}.so
# Applications may use a single subdirectory under/usr/lib.
# http://www.pathname.com/fhs/pub/fhs-2.3.html#PURPOSE22
#
# Java does not support multilib.
# https://fedorahosted.org/fesco/ticket/961
%{_prefix}/lib/abrt-java-connector
%check
make test
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
make test || {
cat Testing/Temporary/LastTest.log
exit 1
}
%changelog
* Tue Nov 04 2014 Jakub Filak <jfilak@redhat.com> - 1.1.0-2
- Update the test results for aarch64
* Wed Oct 29 2014 Jakub Filak <jfilak@redhat.com> - 1.1.0-1
- Support java-1.8-openjdk
- Install the library to /usr/lib/abrt-java-connector on all arches
- Resolves: #1136437
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

View file

@ -1 +1 @@
6f703b5ccecc8373c214d6298e223a13 abrt-java-connector-1.0.10-fdf80c5.tar.gz
6bcf0a39c24bb77d6588be3573485d08 abrt-java-connector-1.1.0-230b726.tar.gz