Bug 122013 - gcc 3.2.3-24 miscompiles metakit libraries
Summary: gcc 3.2.3-24 miscompiles metakit libraries
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: gcc
Version: 3.0
Hardware: ia64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-04-29 18:38 UTC by Murat Berk
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-03 20:40:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Murat Berk 2004-04-29 18:38:48 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; .NET 
CLR 1.0.3705)

Description of problem:
During the porting our application to IA64 running on RH AS 3.0 
series, we catched the problem. I do not know what the cause is, but 
our application crashes. I run unit tests on the metakit package, 
(since it was the last one in call stack) and it crashed also. I do 
not know if any other parts of the code effected, but this package 
is. 

the same code works on RH AS 3.0 x86, same compiler.

The miscompilation only happens if we use -g -O2 flag with inlining 
turned on (in the metakit configuration files)

If we turn inlining off, it works. If we use -g it works, -g -0 works.

The source code can be downloaded from www.equi4.com, it has 
anonymous cvs archive.

If you have never compilers in beta, we can test since our release 
data is couple of months ahead.

Version-Release number of selected component (if applicable):
gcc-3.2.3-24

How reproducible:
Always

Steps to Reproduce:
1.download metakit from anon cvs at www.equi4.com
2.compile and run tests in the tests directory
3.
    

Actual Results:  Tests failing and crashing.

Expected Results:  Tests pass

Additional info:

Comment 1 Murat Berk 2004-04-29 19:30:19 UTC
I rerun unit tests, with -g -0, 1 unit test failure remains.
-g runs cleanly. So we cannot even enable -0.

Comment 2 Jakub Jelinek 2004-04-30 13:39:46 UTC
Assuming you mean -O0 instead of -0, if there are no -O* options on
the command line, -O0 is assumed.  So that should make no difference.
The fact that some third party library works on x86 and doesn't work
on IA-64 does not necessarily mean a bug in the compiler.
There are many other possibilities, including 64-bit unclean code
in the library, incorrect use of varargs, strict-aliasing unsafe code,
unitialized variables etc.
As we don't ship the metakit libraries in the distro, if you suspect a bug in the compiler, can you please
distill a small self-contained testcase which shows the bug and attach
it here?
Thanks.

Comment 3 Jakub Jelinek 2004-10-03 20:40:23 UTC
No testcase provided, there is nothing we can do about this.  Closing.


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