Red Hat Bugzilla – Bug 77062
"jar c xxx" crashes with segmentation fault
Last modified: 2007-04-18 12:48:04 EDT
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
Steps to Reproduce:
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.
Created attachment 82904 [details]
The java code used in the example
Created attachment 85445 [details]
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 (-:
The fix is in gcc-3.2-12 and later (ATM 3.2.1-1).