Bug 1201871

Summary: presence of abrt-java-connector.x86_64 breaks 32-bit processes
Product: [Fedora] Fedora Reporter: Stephan Bergmann <sbergman>
Component: abrt-java-connectorAssignee: Jakub Filak <jakub>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: jberan, mhabrnal, mizdebsk, ptisnovs
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-31 13:55:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephan Bergmann 2015-03-13 17:17:41 UTC
On F21 x86_64, with (among others) the following packets installed

> java-1.8.0-openjdk-headless-1.8.0.31-5.b13.fc21.x86_64
> java-1.8.0-openjdk-headless-1.8.0.31-5.b13.fc21.i686
> ant-1.9.4-3.fc21.noarch
> abrt-java-connector.x86_64 0:1.1.0-2.fc21

executing 32-bit processes requiring a JVM fails:

> $ linux32 env JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.31-5.b13.fc21.i386 ant -version
> Error occurred during initialization of VM
> Could not find agent library /usr/lib/abrt-java-connector/libabrt-java-connector.so in absolute path, with error: /usr/lib/abrt-java-connector/libabrt-java-connector.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)

but succeeds after uninstalling abrt-java-connector.x86_64 0:1.1.0-2.fc21:

> $ linux32 env JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.31-5.b13.fc21.i386 ant -version
> Apache Ant(TM) version 1.9.4 compiled on June 7 2014

Comment 1 Jakub Filak 2015-03-16 07:45:17 UTC
Thank you for the report!

Unfortunately, there isn't much we can do about this. How often users run 32bit Java on 64bit machines? Don't you need to install 32bit Java version manually?

But perhaps we could add a run time check to javapackages-tools.

Mikolaj, I need your expertise, what do you think about this?

Comment 2 Mikolaj Izdebski 2015-03-16 08:09:49 UTC
Java is exempt from multilib - installing 32-bit Java on 64-bit system is not supported. This was approved by FESCo, see https://fedorahosted.org/fesco/ticket/961

Comment 3 Fedora End Of Life 2015-11-04 13:10:00 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2016-07-19 13:01:57 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 5 Jakub Filak 2016-07-27 07:46:36 UTC
Mikolaj, is there anything I can do to fix the issue in abrt-java-connector?

Comment 6 Mikolaj Izdebski 2016-07-27 08:26:03 UTC
As noted in comment #2, the whole Java environment in Fedora (including JVM and Java libraries) does not support multilib. This is a result of a long discussion within Java SIG, which was approved by Fedora Engineering Steering Committee. You shouldn't expect 32-bit JVM to work with system applications on 64-bit system. Also, as a result of this, Java generally doesn't use lib64 directory - all architecture-specific libraries are installed in /usr/lib/.

Users shouldn't be installing 32-bit Java on 64-bit systems. The fact that 32-bit Java is even available in 64-bit repos is a bug in release engineering process - Java was supposed to be multilib-excluded per maintainer request: https://fedorahosted.org/rel-eng/ticket/5762

Moreover, in most cases there should be no reason to run 32-bit JVM on 64-bit systems. If for some reason it's necessary, then virtualization technology can be used.

Due to above reasons I think that this bug should be closed as WONTFIX.

(In reply to Jakub Filak from comment #5)
> Mikolaj, is there anything I can do to fix the issue in abrt-java-connector?

If you *really* want this, you sohuld restart discussion about Java multilib status.

Comment 7 Jan Kurik 2018-05-31 09:01:24 UTC
This bug is currently reported against a Fedora version which is already unsuported.
I am changing the version to '27', the latest supported release.

Please check whether this bug is still an issue on the '27' release.
If you find this bug not being applicable on this release, please close it.

Comment 8 Stephan Bergmann 2018-05-31 13:13:06 UTC
I assume that this issue is completely moot by now as on F28 x86_64, `dnf install java-1.8.0-openjdk-headless.i686` fails with "No match for argument: java-1.8.0-openjdk-headless.i686" for me, and I was told on #fedora IRC that that's probably intentional.

Comment 9 Stephan Bergmann 2018-05-31 13:55:21 UTC
...so lets close it