Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* GCC problems.(may relate to raid problems also)
@ 2002-10-09  1:14 Alvin Starr
  2002-10-09  3:01 ` Alvin Starr
  0 siblings, 1 reply; 4+ messages in thread
From: Alvin Starr @ 2002-10-09  1:14 UTC (permalink / raw)
  To: axp-list

I got gcc 3.2 up and running on my system and have been able to rebuild 
a kernel with it but have not yet had a chance to test it.

Although I have been seeing ifconfig crash on a couple of our systems. 
it occured to me that the problem may be related to the kernel problem 
so I did a simple compile with the "-O2" removed(no optimization) and 
amazingly the ifconfig crash went away. This was with the old 2.96.xxx 
compiler. I then tried to build ifconfig with my new gcc 3.2 and -O2. No 
luck ifconfig still crashes. I then tried to build it again with my 
2.96.xxx and using "-O2 -fno-strength-reduce" and low and behold. Things 
work again.


I believe that there is still an optimizer bug in 3.2.


-- 
Alvin Starr                   ||   voice: (416)585-9971
Interlink Connectivity        ||   fax:   (416)585-9974
alvin@iplink.net              ||




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

* Re: GCC problems.(may relate to raid problems also)
  2002-10-09  1:14 GCC problems.(may relate to raid problems also) Alvin Starr
@ 2002-10-09  3:01 ` Alvin Starr
  2002-10-09 14:46   ` George France
  0 siblings, 1 reply; 4+ messages in thread
From: Alvin Starr @ 2002-10-09  3:01 UTC (permalink / raw)
  To: axp-list

Alvin Starr wrote:
> 
> I got gcc 3.2 up and running on my system and have been able to rebuild 
> a kernel with it but have not yet had a chance to test it.
> 
> Although I have been seeing ifconfig crash on a couple of our systems. 
> it occured to me that the problem may be related to the kernel problem 
> so I did a simple compile with the "-O2" removed(no optimization) and 
> amazingly the ifconfig crash went away. This was with the old 2.96.xxx 
> compiler. I then tried to build ifconfig with my new gcc 3.2 and -O2. No 
> luck ifconfig still crashes. I then tried to build it again with my 
> 2.96.xxx and using "-O2 -fno-strength-reduce" and low and behold. Things
> work again.

Oops. the -fno-strength-reduce did not actually make the problem go away 
  but the  removing of the -O2 did.




-- 
Alvin Starr                   ||   voice: (416)585-9971
Interlink Connectivity        ||   fax:   (416)585-9974
alvin@iplink.net              ||




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

* Re: GCC problems.(may relate to raid problems also)
  2002-10-09  3:01 ` Alvin Starr
@ 2002-10-09 14:46   ` George France
  2002-10-09 20:18     ` alvin
  0 siblings, 1 reply; 4+ messages in thread
From: George France @ 2002-10-09 14:46 UTC (permalink / raw)
  To: axp-list, Alvin Starr

On Tuesday 08 October 2002 23:01, Alvin Starr wrote:
> Alvin Starr wrote:
> > I got gcc 3.2 up and running on my system and have been able to rebuild
> > a kernel with it but have not yet had a chance to test it.
> >
> > Although I have been seeing ifconfig crash on a couple of our systems.
> > it occured to me that the problem may be related to the kernel problem
> > so I did a simple compile with the "-O2" removed(no optimization) and
> > amazingly the ifconfig crash went away. This was with the old 2.96.xxx
> > compiler. I then tried to build ifconfig with my new gcc 3.2 and -O2. No
> > luck ifconfig still crashes. I then tried to build it again with my
> > 2.96.xxx and using "-O2 -fno-strength-reduce" and low and behold. Things
> > work again.
>
> Oops. the -fno-strength-reduce did not actually make the problem go away
>   but the  removing of the -O2 did.

try, -fno-sched-interblock

--George




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

* Re: GCC problems.(may relate to raid problems also)
  2002-10-09 14:46   ` George France
@ 2002-10-09 20:18     ` alvin
  0 siblings, 0 replies; 4+ messages in thread
From: alvin @ 2002-10-09 20:18 UTC (permalink / raw)
  To: George France; +Cc: axp-list

George France wrote:
> On Tuesday 08 October 2002 23:01, Alvin Starr wrote:
> 
>>Alvin Starr wrote:
>>
>>>I got gcc 3.2 up and running on my system and have been able to rebuild
>>>a kernel with it but have not yet had a chance to test it.
>>>
>>>Although I have been seeing ifconfig crash on a couple of our systems.
>>>it occured to me that the problem may be related to the kernel problem
>>>so I did a simple compile with the "-O2" removed(no optimization) and
>>>amazingly the ifconfig crash went away. This was with the old 2.96.xxx
>>>compiler. I then tried to build ifconfig with my new gcc 3.2 and -O2. No
>>>luck ifconfig still crashes. I then tried to build it again with my
>>>2.96.xxx and using "-O2 -fno-strength-reduce" and low and behold. Things
>>>work again.
>>
>>Oops. the -fno-strength-reduce did not actually make the problem go away
>>  but the  removing of the -O2 did.
> 
> 
> try, -fno-sched-interblock

still segfaults. With both 2.96 and 3.2.

trying to work with gdb on a optimized program can be a bit of a pain.
My best guess now is that the stack is getting clobbered by a buffer 
overflow that not caught by an unoptimized program because ther are some 
dead variables that are left hanging around.




-- 
Alvin Starr                   ||   voice: (416)785-4051
Interlink Connectivity        ||   fax:   (416)785-3668
alvin@iplink.net              ||




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

end of thread, other threads:[~2002-10-09 20:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-09  1:14 GCC problems.(may relate to raid problems also) Alvin Starr
2002-10-09  3:01 ` Alvin Starr
2002-10-09 14:46   ` George France
2002-10-09 20:18     ` alvin

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