Bug 889131 - [abrt] jpackage-utils-1.7.5-18.1.fc17: zipfile.py:781:_RealGetContents:IOError: [Errno 22] Invalid argument
Summary: [abrt] jpackage-utils-1.7.5-18.1.fc17: zipfile.py:781:_RealGetContents:IOErro...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: javapackages-tools
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Srb
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:74fe192f8a5a426c91b914892ed...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-20 10:12 UTC by Mikolaj Izdebski
Modified: 2014-05-14 05:28 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 853759
Environment:
Last Closed: 2014-05-14 05:28:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikolaj Izdebski 2012-12-20 10:12:33 UTC
+++ This bug was initially created as a clone of Bug #853759 +++

Version-Release number of selected component:
jpackage-utils-1.7.5-18.1.fc17

Additional info:
libreport version: 2.0.13
abrt_version:   2.0.12
cmdline:        /usr/bin/python /usr/lib/rpm/osgi.prov
kernel:         3.5.2-3.fc17.x86_64

--- Additional comment from Ilyes Gouta on 2012-09-02 19:45:38 CEST ---

Created attachment 609141 [details]
File: backtrace

--- Additional comment from Ilyes Gouta on 2012-09-02 19:45:40 CEST ---

Created attachment 609142 [details]
File: core_backtrace

--- Additional comment from Przemek Klosowski on 2012-09-05 17:42:24 CEST ---

rebooted after update, logged into standard Gnome session, got black background error announcement 

Package: jpackage-utils-1.7.5-18.1.fc17
OS Release: Fedora release 17 (Beefy Miracle)

--- Additional comment from Mikolaj Izdebski on 2012-12-19 19:01:20 CET ---

For me this looks like a bug in python - _RealGetContents from zipfile.py is calling seek() with invalid argument.

Reassigning to python package.

--- Additional comment from Bohuslav "Slavek" Kabrda on 2012-12-20 09:30:37 CET ---

Notes:
- Although the error is raised in _RealGetContents, the actual problem seems to be in zipfile.is_zipfile, which wrongly returns True for /usr/bin/fastjar (normal binary).
- Reproduce:
-- yum install libgcj, that provides /usr/bin/fastjar
-- # the following line should print False, but prints True
-- python -c "import zipfile; print zipfile.is_zipfile('/usr/bin/fastjar')"
- The core of the problem seems to be in fact, that stringEndArchive ("PK\005\006") is found in the file.

Reported upstream as http://bugs.python.org/issue16735

--- Additional comment from Stanislav Ochotnicky on 2012-12-20 09:38:41 CET ---

Part of the problem is that osgi.prov should have never been called on that binary because it doesn't end with ".jar". Quick look doesn't tell me why it was called because we have this in osgi.attr (rpm auto-requires/provides generator):

%__osgi_provides        %{_rpmconfigdir}/osgi.prov
#%__osgi_requires       %{_rpmconfigdir}/osgi.req
%__osgi_path    ^(.*\.jar|((%{_libdir}|%{_datadir}).*/MANIFEST.MF))

Note that third line has correctly escaped dot before jar

--- Additional comment from Mikolaj Izdebski on 2012-12-20 10:39:24 CET ---

(In reply to comment #7)
> Note that third line has correctly escaped dot before jar

I think there needs to be double escaping - one for rpm and one for glibc.

--- Additional comment from Mikolaj Izdebski on 2012-12-20 10:57:39 CET ---

Created attachment 666574 [details]
Reproducer

Reproduce with: rpmbuild -ba foo.spec

--- Additional comment from Mikolaj Izdebski on 2012-12-20 11:08:07 CET ---

Fixed upstream:

http://git.fedorahosted.org/cgit/javapackages.git/commit/?id=5a855c8b189a46919de1f769ae57d9e21384d55a

Comment 1 Fedora End Of Life 2013-12-21 10:00:43 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. 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 WONTFIX if it remains open with a Fedora 
'version' of '18'.

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 prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 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 to Fedora 18's end of life.

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 2 Mikolaj Izdebski 2014-02-03 14:36:32 UTC
Still not fixed.

Comment 3 Fedora Admin XMLRPC Client 2014-04-24 12:46:42 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Mikolaj Izdebski 2014-05-12 04:16:33 UTC
Some files have names ending with "jar" but are not JAR files.  The problem is that such files may cause build failure. The solution is to try and ignore exceptions indicating invalid file format - just ignore the file and move to the next one.

Comment 5 Michal Srb 2014-05-14 05:28:35 UTC
Fixed upstream in 1ee5890, test case in 1c9232b.


Note You need to log in before you can comment on or make changes to this bug.