Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* A couple of alpha troubles
@ 1998-03-01 20:59 Chris Evans
  1998-03-01 22:14 ` A couple of alpha troublesy Michal Jaegermann
  1998-03-02 10:32 ` A couple of alpha troubles David Alan Gilbert
  0 siblings, 2 replies; 10+ messages in thread
From: Chris Evans @ 1998-03-01 20:59 UTC (permalink / raw)
  To: axp-list


Hi,

I'm currently suffering a rude awakening to Linux on alpha. We have 3 new
533Mhz beasts to be dedicated to running Linux. They came preinstalled
with RH5.0, quite well done it seems.

Since getting them I have so far solved some instabilities by making my
own kernel (the originals were non-RH and based on 2.0.31, hence suffering
the "inode still has mappings" etc). I've even managed to get to grips
with MILO :) All updates are applied of course.

Only two serious problems seem to remain;

1) X instability. The machines have Matrox cards (spit), and the SVGA X
server looks ok (bit of gfx corruption sometimes), but alas will sometimes
hang the entire machine upon "startx".

I'm thinking the dedicated XSuSE Matrox server has much more stable
support. Does anyone have an alpha RPM for this? If not, some pointers to
the source and a bit of assistance and I could try and knock one up for
the benefit of the alpha Linux community.


2) g++ instability. This one is _nasty_. Could someone please get an alpha
Linux RH5.0 machine and verify if this crashes or not:

compile with "g++ -o test test.cc"

==== cut, begin test.cc ==

#include <stdio.h>
int main(void) {
  FILE* pFile;
  pFile = fopen("a file", "w");
  if (pFile != NULL) {
    fclose(pFile);
  }
}

==========================

Note!! The exact same program runs fine (no segfault) if compiled with
"gcc" rather than "g++". Also!! If I build egcs-1.0.1, "egcs-g++" will
build the little program fine. Unfortunately, egcs-1.0.1 on the alpha
appears to have other problems that causes some of our academic research
software to crash in other places (that 2.7.2.3 gets right).

So we need a hybrid of egcs and 2.7.2.3!! Seriously though, stdio in a c++
program appears to not work too well on alpha RHL5.0. Personally I suspect
libg++, and I would _love_ to try libg++-2.8.0b6(?), but I can't get it to
build :(

Does anyone have any pointers, or perhaps an rpm for a recent libg++?


Cheers for any help,
Chris


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: A couple of alpha troubles
@ 1998-03-01 21:43 Chris Evans
  1998-03-01 22:17 ` Michal Jaegermann
  1998-03-02  6:22 ` Richard Henderson
  0 siblings, 2 replies; 10+ messages in thread
From: Chris Evans @ 1998-03-01 21:43 UTC (permalink / raw)
  To: axp-list


On Mon, 2 Mar 1998 jma24@cam.ac.uk wrote:

> > 1) X instability. The machines have Matrox cards (spit), and the SVGA X
>                                       ^^^^^^
>                                       NONONO

I know, I know... I didn't have anything to do with the spec. of the
machines, alas. At least they arrived with respectable makes of ethernet
and SCSI card.

> > server looks ok (bit of gfx corruption sometimes), but alas will sometimes
> > hang the entire machine upon "startx".
> 
> Yeah that's a known bug. Fixed in XFree 3.3.2

Good, gfx corruption I can cope with. Hard hangs are a bit of a sod when
people have long-running jobs on the go :) Do you know how "imminent"
"imminent" is in this case?

> > 2) g++ instability. This one is _nasty_. Could someone please get an alpha
> > Linux RH5.0 machine and verify if this crashes or not:
> > 
> > compile with "g++ -o test test.cc"
> 
> LOL
> 
> jma24 /home/jma24 $ g++ -o test test.cc
> jma24 /home/jma24 $ ./test

Yeah yeah I know it works on your machine. Your mate David has been
assisting me too :)

> Upgrade the kernel. Upgrade to egcs (latest snapshot is dead fast, 70%
> faster code than gcc 2.7.2). I had this problem too, but I can't put my
> finger on exactly what fixed it.

I think I'll leave the kernel at 2.0.33 cheers :)
I _did_ try egcs, this fixed the "silly" trivial piece of code above,
however egcs then mis-compiled a different section of my code, resulting
in an eventual crash in malloc() deep inside an STL memory allocator
routine. STL is used extensively.

Incidentally, the latest egcs snapshot fails to build out of the box on
our machine. I seem to remember thinking "hmm, new binutils required
maybe", but can't remember why. libg++-2.8.0b6 doesn't build out of the
box either. I can post errors if you want.

I've built up my project using the egcs on jma24 -- again, handles stdio
within c++ fine but crashes out elsewhere.

> Just in case, you DIDN'T do the alpha glibc update did you?

Er, it came with something less recent than 2.0.6-9. I've upgraded to
2.0.6-9, this hasn't caused troubles with existing binaries/software. In
fact the machine is rock-solid apart from "startx" and generating dud c++
code. I'm still suspecting libg++ with a vengeance :)

Cheers
Chris


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

end of thread, other threads:[~1998-03-02 18:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-01 20:59 A couple of alpha troubles Chris Evans
1998-03-01 22:14 ` A couple of alpha troublesy Michal Jaegermann
1998-03-01 23:35   ` Chris Evans
1998-03-02 10:32 ` A couple of alpha troubles David Alan Gilbert
  -- strict thread matches above, loose matches on Subject: below --
1998-03-01 21:43 Chris Evans
1998-03-01 22:17 ` Michal Jaegermann
1998-03-02  6:22 ` Richard Henderson
1998-03-02 11:30   ` Andreas Johansson
1998-03-02 15:31     ` Michal Jaegermann
1998-03-02 18:11     ` Richard Henderson

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