Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
[parent not found: <199611051939.NAA13862@atheist.tamu.edu>]
* Re: compiling xli - small program to reproduce problem w. gcc
@ 1996-11-05 21:57 Christian Czezatke
  0 siblings, 0 replies; 9+ messages in thread
From: Christian Czezatke @ 1996-11-05 21:57 UTC (permalink / raw)


Hi!

Richard Henderson wrote:
> 
> > After all these reports of problems compiling xli and other apps due
> > to a problem with gcc/alpha getting signal 6 I sat down and fooled
> > around with "xli.c" trying to produce a source that is as short as
> > possible and is still reproducing the problem. -- I finally got the
> > (rather short) listing included below.
> 
> FWIW, this bug is fixed in the most recent gcc snapshot.
> Not that that does the public much good.

Thanks for your prompt answer on that! -- Am I getting that
right -- The problem is still there in 2.7.2 (as it comes
with RH 4.0) but is fixed in a more recent development release?

BTW: I really do prefer a compiler that crashes on certain input
patterns over one that emits bogus code for certain input patterns...
:-) (Had that twice on non-Linux platforms using non-GNU compilers...
;-) )

	Christian

-- 
+------------------------------------------------------------------+
| Christian Czezatke, student of Computer Science at the           |
| Vienna University of Technology (Vienna, Austria, EUROPE)        |
| email: e9025461@student.tuwien.ac.at                             |
+------------------------------------------------------------------+
| PostODBC, a tool to talk to Postgres95 from Windows clients      |
| is freely available (LGPL) from:                                 |
| http://stud1.tuwien.ac.at/~e9025461/                             |
| If you are interested in receiving regular information on        |
| the state of PostODBC, please let me know                        |
+------------------------------------------------------------------+

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <327FB857.58CC43CF@student.tuwien.ac.at>]
[parent not found: <m0vKVJD-0003BUC@clifton.hobby.nl>]
* Re: compiling xli - small program to reproduce problem w. gcc
@ 1996-11-05  6:43 David Mosberger-Tang
  0 siblings, 0 replies; 9+ messages in thread
From: David Mosberger-Tang @ 1996-11-05  6:43 UTC (permalink / raw)


>>>>> On Mon, 4 Nov 1996 22:05:19 -0600 (CST), Richard Henderson <richard@atheist.tamu.edu> said:

  >> After all these reports of problems compiling xli and other apps
  >> due to a problem with gcc/alpha getting signal 6 I sat down and
  >> fooled around with "xli.c" trying to produce a source that is as
  >> short as possible and is still reproducing the problem. -- I
  >> finally got the (rather short) listing included below.

  Richard> FWIW, this bug is fixed in the most recent gcc snapshot.
  Richard> Not that that does the public much good.

Good!  Almost exactly the same bug showed in a game of some sorts
(Erik discovered it as part of building RH3.0.3, I believe, and I
remember submitting a bug report, but don't recall whether it was ever
reported fixed).  If memory serves, the simplest work around was to
add an explicit cast to (long) or some such.  That might work in this
case, too.

	--david

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <327DFE8B.7DE02AA2@student.tuwien.ac.at>]
* Re: compiling xli - small program to reproduce problem w. gcc
@ 1996-11-04 14:32 Christian Czezatke
  0 siblings, 0 replies; 9+ messages in thread
From: Christian Czezatke @ 1996-11-04 14:32 UTC (permalink / raw)


Hi!

After all these reports of problems compiling xli and other apps due
to a problem with gcc/alpha getting signal 6 I sat down and fooled 
around with "xli.c" trying to produce a source that is as short as
possible and is still reproducing the problem. -- I finally got the
(rather short) listing included below.

When I compile that with gcc 2.7.1 as it comes with Redhat 3.0.3 I 
get the following messages:

[ceci@udb xli-1.15]$ gcc -Wall -O2 crashcc.c
crashcc.c: In function `main':
crashcc.c:10: warning: unused variable `longarray'
crashcc.c:14: warning: `hlp' might be used uninitialized in this
function
crashcc.c:15: warning: `newimage' might be used uninitialized in this
function
gcc: Internal compiler error: program cc1 got fatal signal 6
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Could someone please give that a try with an up-to-date version of gcc
on Linux/Alpha and report whether you still get a "fatal signal 6" when
you try to compile that piece of code with it.

(Anyway, please note that the program's semantic is of course nonsense.
It is just here to show a bug in gcc 2.7.1 -- Just try to compile it, 
don't execute it, it will crash immediately.. ;-) )

If the problem is still existant in gcc 2.7.2 I think we should send
that piece of code to the maintainers of gcc/alpha. (BTW: does anyone
know who they are? -- I'm quite new to Linux/Alpha .)

	Christian   

-----------------cut here for crashcc.c---------------------------------
/*
 This code was generated from "xli.c" from xli, version 1.15
 Compiling this file with optimisation enabled on Linux/Alpha with
 gcc 2.7.1 (as shipped with Redhat 3.0.3) causes an internal compiler
 error.
*/

void main()
{
  char longarray[32745];
  /* CC: if you remove the line above, or make the array smaller (just 1
byte is enough),
         gcc will _not_crash -- any number greater than 32745 also seems
to crash gcc
  */
  int *hlp;    /* CC: it does _not_ crash if you use "int hlp" and do a
"hlp=" */ 
  float newimage; 

   *hlp =  newimage; 
}
-----------------end of crashcc.c---------------------------------

-- 
+------------------------------------------------------------------+
| Christian Czezatke, student of Computer Science at the           |
| Vienna University of Technology (Vienna, Austria, EUROPE)        |
| email: e9025461@student.tuwien.ac.at                             |
+------------------------------------------------------------------+
| PostODBC, a tool to talk to Postgres95 from Windows clients      |
| is freely available (LGPL) from:                                 |
| http://stud1.tuwien.ac.at/~e9025461/                             |
| If you are interested in receiving regular information on        |
| the state of PostODBC, please let me know                        |
+------------------------------------------------------------------+

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1996-11-07 18:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <m0vLG0x-0003BUC@clifton.hobby.nl>
1996-11-07 18:54 ` compiling xli - small program to reproduce problem w. gcc Richard Henderson
     [not found] <199611051939.NAA13862@atheist.tamu.edu>
1996-11-06 22:00 ` Wim van Dorst
1996-11-05 21:57 Christian Czezatke
     [not found] <327FB857.58CC43CF@student.tuwien.ac.at>
1996-11-05 21:05 ` Richard Henderson
     [not found] <m0vKVJD-0003BUC@clifton.hobby.nl>
1996-11-05 19:39 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1996-11-05  6:43 David Mosberger-Tang
     [not found] <327DFE8B.7DE02AA2@student.tuwien.ac.at>
1996-11-04 20:07 ` Wim van Dorst
1996-11-05  4:05 ` Richard Henderson
1996-11-04 14:32 Christian Czezatke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox