* Re: compiling xli - small program to reproduce problem w. gcc
@ 1996-11-04 14:32 Christian Czezatke
0 siblings, 0 replies; 10+ 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] 10+ messages in thread
* Re: compiling xli - small program to reproduce problem w. gcc
[not found] <327DFE8B.7DE02AA2@student.tuwien.ac.at>
@ 1996-11-04 20:07 ` Wim van Dorst
1996-11-05 4:05 ` Richard Henderson
1 sibling, 0 replies; 10+ messages in thread
From: Wim van Dorst @ 1996-11-04 20:07 UTC (permalink / raw)
Hello,
You wrote:
} After all these reports of problems compiling xli and other apps due
} to a problem with gcc/alpha getting signal 6
Yes, I had the same problem with the kernel 2.1.7. I don't know
what causes it, but I certainly didn't have it in previous
kernels.
} Could someone please give that a try ...
You have hit the nail fully on the head: this indeed is
a problem that causes the error message. And even altering
a minute detail results in not causing this problem any
more. I'd guess it is a GCC bug.
I thought I'd just let you know my results: fully as yours.
Met vriendelijke groeten, Wim van Dorst
--------------------------------------------------------------------
Blue Baron = Wim van Dorst, Voice (+31) 33 4676365, (+31) 35 5242319
(-: baron@clifton.hobby.nl WvD@Chem.AkzoNobel.nl :-)
--------------------------------------------------------------------
--
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] 10+ messages in thread
* Re: compiling xli - small program to reproduce problem w. gcc
[not found] <327DFE8B.7DE02AA2@student.tuwien.ac.at>
1996-11-04 20:07 ` Wim van Dorst
@ 1996-11-05 4:05 ` Richard Henderson
1 sibling, 0 replies; 10+ messages in thread
From: Richard Henderson @ 1996-11-05 4:05 UTC (permalink / raw)
> 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.
r~
--
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] 10+ messages in thread
* Re: compiling xli - small program to reproduce problem w. gcc
@ 1996-11-05 6:43 David Mosberger-Tang
0 siblings, 0 replies; 10+ 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] 10+ messages in thread
* netscape problems
[not found] <m0vKVJD-0003BUC@clifton.hobby.nl>
@ 1996-11-05 17:35 ` RHS Linux User
1996-11-05 19:39 ` compiling xli - small program to reproduce problem w. gcc Richard Henderson
1 sibling, 0 replies; 10+ messages in thread
From: RHS Linux User @ 1996-11-05 17:35 UTC (permalink / raw)
hello
I have a multia with Redhat linux -4.0 kernel 2.0.18...
the thing is running ok. I installed netscape 3.0 for alphas in the
/usr/local/lib/netscape
made a link from /usr/local/bin/nmetscape to
/usr/local/lib/netscape/netscape
and when I run netscape I get
bash: /usr/local/bin/netscape: No such file or directory
Actually the /usr/local/bin/netscape exists so what does this means?
anybody help me please
miguel
--
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] 10+ messages in thread
* Re: compiling xli - small program to reproduce problem w. gcc
[not found] <m0vKVJD-0003BUC@clifton.hobby.nl>
1996-11-05 17:35 ` netscape problems RHS Linux User
@ 1996-11-05 19:39 ` Richard Henderson
1 sibling, 0 replies; 10+ messages in thread
From: Richard Henderson @ 1996-11-05 19:39 UTC (permalink / raw)
> Yes, I had the same problem with the kernel 2.1.7. I don't know
> what causes it, but I certainly didn't have it in previous
> kernels.
You saw a signal 6 error compiling 2.1.7? In what file? What options?
r~
--
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] 10+ messages in thread
* Re: compiling xli - small program to reproduce problem w. gcc
[not found] <327FB857.58CC43CF@student.tuwien.ac.at>
@ 1996-11-05 21:05 ` Richard Henderson
0 siblings, 0 replies; 10+ messages in thread
From: Richard Henderson @ 1996-11-05 21:05 UTC (permalink / raw)
> 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?
That is correct. I hadn't been planning on backporting the patch,
but if it turns out that this recently reported 2.1.7 slip.c bug
is the same...
It is occasionally unfortunate that some of the the kernel's macros
are written such that disabling optimization isn't an option.
> BTW: I really do prefer a compiler that crashes on certain input
> patterns over one that emits bogus code for certain input patterns...
As do I.
r~
--
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] 10+ messages in thread
* Re: compiling xli - small program to reproduce problem w. gcc
@ 1996-11-05 21:57 Christian Czezatke
0 siblings, 0 replies; 10+ 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] 10+ messages in thread
* Re: compiling xli - small program to reproduce problem w. gcc
[not found] <199611051939.NAA13862@atheist.tamu.edu>
@ 1996-11-06 22:00 ` Wim van Dorst
0 siblings, 0 replies; 10+ messages in thread
From: Wim van Dorst @ 1996-11-06 22:00 UTC (permalink / raw)
Hello *,
I wrote:
} > Yes, I had the same problem with the kernel 2.1.7. I don't know
} > what causes it, but I certainly didn't have it in previous
} > kernels.
And then Richard Henderson wrote:
} You saw a signal 6 error compiling 2.1.7? In what file? What options?
It was the net/slip.c file with all standard compile options.
I didn't change anything, just config'ed for the SLIP and CSLIP.
Since you ask so decidedly, I re-tried compilation of 2.1.7, and
found that it didn't compiler because of an unknown pseudo-op
.section in kernel/printk.c. Re-thinking I now think it was 2.1.6
that had several compile error including this signal 6 error.
Met vriendelijke groeten, Wim van Dorst
--------------------------------------------------------------------
Blue Baron = Wim van Dorst, Voice (+31) 33 4676365, (+31) 35 5242319
(-: baron@clifton.hobby.nl WvD@Chem.AkzoNobel.nl :-)
--------------------------------------------------------------------
--
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] 10+ messages in thread
* Re: compiling xli - small program to reproduce problem w. gcc
[not found] <m0vLG0x-0003BUC@clifton.hobby.nl>
@ 1996-11-07 18:54 ` Richard Henderson
0 siblings, 0 replies; 10+ messages in thread
From: Richard Henderson @ 1996-11-07 18:54 UTC (permalink / raw)
> Since you ask so decidedly, I re-tried compilation of 2.1.7, and
> found that it didn't compiler because of an unknown pseudo-op
> .section in kernel/printk.c.
Ah, well this would be because beginning with 2.1.0 the kernel
requires ELF to compile.
> Re-thinking I now think it was 2.1.6
> that had several compile error including this signal 6 error.
Ok, that's two reports for slip.c. I'll have a look at it
this weekend.
r~
--
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] 10+ messages in thread
end of thread, other threads:[~1996-11-07 18:54 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <m0vKVJD-0003BUC@clifton.hobby.nl>
1996-11-05 17:35 ` netscape problems RHS Linux User
1996-11-05 19:39 ` compiling xli - small program to reproduce problem w. gcc Richard Henderson
[not found] <m0vLG0x-0003BUC@clifton.hobby.nl>
1996-11-07 18:54 ` 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
-- 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