Bug 77062 - "jar c xxx" crashes with segmentation fault
"jar c xxx" crashes with segmentation fault
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2002-10-31 12:17 EST by Göran Uddeborg
Modified: 2007-04-18 12:48 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-11-18 10:42:12 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
The java code used in the example (100 bytes, text/plain)
2002-10-31 12:18 EST, Göran Uddeborg
no flags Details
revised patch (1.51 KB, patch)
2002-11-18 10:40 EST, David Juran
no flags Details | Diff

  None (edit)
Description Göran Uddeborg 2002-10-31 12:17:27 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827

Description of problem:
Running "jar c <something>" seems to always crash.  I've included a sample file
which triggers it, but it seems to happen for most any file.

Version-Release number of selected component (if applicable): libgcj-3.2-7

How reproducible:

Steps to Reproduce:
1.javac PlainException.java
2.jar c PlainException.class > a.jar


Actual Results:  The second step crashes and creates a broken jarfile.

Expected Results:  a.jar should have been the same as with

  jar cf a.jar PlainException.class

which works fine.

Additional info:
Comment 1 Göran Uddeborg 2002-10-31 12:18:44 EST
Created attachment 82904 [details]
The java code used in the example
Comment 3 David Juran 2002-11-18 10:40:52 EST
Created attachment 85445 [details]
revised patch
Comment 4 David Juran 2002-11-18 10:42:05 EST
I had to make som minor adjustments to the patch to make it apply to gcc-3.2-7
but other than that, it seems to work fine (-:
Comment 5 Jakub Jelinek 2002-12-04 11:49:10 EST
The fix is in gcc-3.2-12 and later (ATM 3.2.1-1).

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