Bug 853759 - [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 NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: jpackage-utils
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:74fe192f8a5a426c91b914892ed...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-02 17:45 UTC by Ilyes Gouta
Modified: 2013-01-24 16:06 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
: 889131 (view as bug list)
Environment:
Last Closed: 2013-01-24 16:06:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (70.78 KB, text/plain)
2012-09-02 17:45 UTC, Ilyes Gouta
no flags Details
File: core_backtrace (530 bytes, text/plain)
2012-09-02 17:45 UTC, Ilyes Gouta
no flags Details
Reproducer (357 bytes, text/plain)
2012-12-20 09:57 UTC, Mikolaj Izdebski
no flags Details

Description Ilyes Gouta 2012-09-02 17:45:34 UTC
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

Comment 1 Ilyes Gouta 2012-09-02 17:45:38 UTC
Created attachment 609141 [details]
File: backtrace

Comment 2 Ilyes Gouta 2012-09-02 17:45:40 UTC
Created attachment 609142 [details]
File: core_backtrace

Comment 3 Przemek Klosowski 2012-09-05 15:42:24 UTC
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)

Comment 5 Mikolaj Izdebski 2012-12-19 18:01:20 UTC
For me this looks like a bug in python - _RealGetContents from zipfile.py is calling seek() with invalid argument.

Reassigning to python package.

Comment 6 Bohuslav "Slavek" Kabrda 2012-12-20 08:30:37 UTC
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

Comment 7 Stanislav Ochotnicky 2012-12-20 08:38:41 UTC
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

Comment 8 Mikolaj Izdebski 2012-12-20 09:39:24 UTC
(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.

Comment 9 Mikolaj Izdebski 2012-12-20 09:57:39 UTC
Created attachment 666574 [details]
Reproducer

Reproduce with: rpmbuild -ba foo.spec

Comment 11 Mikolaj Izdebski 2013-01-24 16:06:05 UTC
This bug is fixed in Fedora 18 and later.
For now there are no plans to make this fix in Fedora 17.


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