Red Hat Bugzilla – Bug 16470
Programs built with gcc no longer run on a remote server
Last modified: 2008-05-01 11:37:57 EDT
I have moved to the very latest Red Hat gcc-2.96-52 along with, cpp and
I have a simple web page renderer written in C. Building this single file
program with this latest gcc results in it NOT executing on the remote
Well to be more accurate I don't know if it is not running or just not
outputing anything ! It is neither writing to stdout nor to a file, that's
It runs locally, not in a server domain, I mean just running it from the
command line and watching the HTML spewing out into the console.
I was running gcc-2.95-9.2mdk, which worked fine. But I have also seen
symptoms with a Mandrake version, I can't however remember which one.
What could have been done to gcc that allows programs to run locally but
when called via a script on a remote Apache server
Any help would be appreciated since it is a real pain having to switch
Without a testcase I cannot do really anything about it.
Please reopen if you have a self-contained testcase which triggers
some miscompilation in gcc.
Try compiling with -O0 to see if it cures it (if it does, then please
track it down to a particular .c file which causes it not to work even
when all other files are compiled with -On n>=1), if not, try compiling
it with some older gcc (like egcs from RH6.2) and similarly mix objects
up to see which one if compiled by egcs and all others are compiled by gcc
makes the bug go away.