Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Unaligned traps et al
@ 1999-08-18 13:47 Sean Hunter
  1999-08-18 15:29 ` gnome install under RH5.2 on AS200 Peter Howell Jr
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sean Hunter @ 1999-08-18 13:47 UTC (permalink / raw)
  To: axp-list

OK, I've had an Alpha for about six months or so, and I'd like to do a
bit more development on it (instead of my intel boxes).  

I've submitted a few kernel patches (some of which have been accepted
8^) ), but I actually think the user-space tools are in a worse state
than the kernel, and would like to help.  I have a few questions for
the alpha gurus:

1)A lot of programs (eg rh6 ping) cause the occasional "unaligned
trap".  I understand that these are caused by instructions that are
not aligned correctly in memory, and that that means the processor has
to do some special magic to run them, which slows stuff down.  How do
I find and eliminate the error?

2)I can't get xemacs to build.  Any hints?

3)Mozilla seems pretty shaky.  Is there a "healthy" milestone build
that works OK on alpha?  I don't use the mail components, but just
want a browser for the odd times when "lynx" doesn't tell all.

4)Any joy with emm-x86 on the 2.2.x series kernels?

5)Is milo still under active development?  I can't get it to build
against new kernels, which is a pain, because the version I use
doesn't have the best driver for my scsi card.

Thanks for any/all replies.

Sean


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

* gnome install under RH5.2 on AS200
  1999-08-18 13:47 Unaligned traps et al Sean Hunter
@ 1999-08-18 15:29 ` Peter Howell Jr
  1999-08-18 22:23   ` Sean Hunter
  1999-08-25 17:45   ` Adam C. Powell, IV
  1999-08-18 16:26 ` Unaligned traps et al Dan Morrill
       [not found] ` <199908181556.JAA28448@ellpspace.math.ualberta.ca>
  2 siblings, 2 replies; 7+ messages in thread
From: Peter Howell Jr @ 1999-08-18 15:29 UTC (permalink / raw)
  To: axp-list; +Cc: Peter Howell Jr


        Ok.  I have a couple really basic questions.  I've already been to
the livux-newbie list, but they weren't abel to help me, which raises the
posibility that my problem is alpha specific.  I still suspect it's a user
problem, but I don't know who else to ask.  

 Here's the situation. I downloaded all the packages from gnome.org.  I
then ran :

 rpm -ivh *

and get :

failed dependencies:
        libc.so.6.1(GLIBC_2.1) is needed by umb-scheme-3.2-9
        libc.so.6.1(GLIBC_2.0) is needed by umb-scheme-3.2-9
        libm.so.6.1(GLIBC_2.1) is needed by umb-scheme-3.2-9
        libm.so.6.1(GLIBC_2.0) is needed by umb-scheme-3.2-9

Ok.  Not to confusing.  It looks like I need to update glibc.  I ran:

rpm -ivh glibc-2.0.7-29.alpha.rpm

and get :

package glibc-2.0.7-29 is already installed
error: glibc-2.0.7-29.alpha.rpm cannot be installed


        I then tried the -U, instead of the -i switch, in the vain hope it
was that simple, but I got the same response.  There must be something
that I'm missing here.  I seem to be getting conflicting messages
here.

Am I looking in the wrong place for GLIBC_2.1 and GLIBC_2.0?

How do I figure out what files glibc-2.0.7-29.alpha.rpm provides?  I think
I'm having trouble getting the syntax right.


Thanks.

Peter Howell


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

* Re: Unaligned traps et al
  1999-08-18 13:47 Unaligned traps et al Sean Hunter
  1999-08-18 15:29 ` gnome install under RH5.2 on AS200 Peter Howell Jr
@ 1999-08-18 16:26 ` Dan Morrill
       [not found] ` <199908181556.JAA28448@ellpspace.math.ualberta.ca>
  2 siblings, 0 replies; 7+ messages in thread
From: Dan Morrill @ 1999-08-18 16:26 UTC (permalink / raw)
  To: axp-list

On Wed, 18 Aug 1999, Sean Hunter wrote:

> I've submitted a few kernel patches (some of which have been accepted

Heh... you're doing better than I am. :)


> 1)A lot of programs (eg rh6 ping) cause the occasional "unaligned
> trap".

The net-tools package (which includes ping, traceroute, etc.) has already been
fixed.  Check updates.redhat.com.

The other big offender, as near as I can tell, is X, but it seems much better
in RH 6.0 than in 5.x.


> 3)Mozilla seems pretty shaky.

Mozilla is pretty shaky on every platform.  The xptcall port has been finished
for the Alpha, so at this point it again has parity with all the other Linuces.
Mozilla on the Alpha will come together when Mozilla in general does,
or at least not far behind.

I built a CVS snapshot last week, and it's getting there.  It was mostly
usable as a browser.  I don't know how stable the milestones are since I don't
pay attention to them and build from CVS when I want to.



I can't help you with the other topics. :)

Dan Morrill
Computer Scientist, Physicist


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

* Re: Unaligned traps et al
       [not found] ` <199908181556.JAA28448@ellpspace.math.ualberta.ca>
@ 1999-08-18 21:23   ` Sean Hunter
  1999-08-18 23:11     ` Richard Henderson
  0 siblings, 1 reply; 7+ messages in thread
From: Sean Hunter @ 1999-08-18 21:23 UTC (permalink / raw)
  To: Michal Jaegermann; +Cc: axp-list

Thanks for your rousing call to "go buy a clue".  Results follow.

On Wed, Aug 18, 1999 at 09:56:48AM -0600, Michal Jaegermann wrote:
> > 
> > 1)A lot of programs (eg rh6 ping)

[stuff incl useful snippet of code re unaligned snipped]

I had a feeling that this was a FAQ, but searching the FAQ didn't
uncover it.  Perhaps I should submit this to the FAQ...

Anyway, you've got me thing about a possibly useful kernel patch.  I'm
going to send this to the list first to get people's opinions.  I'm
going to have a go at writing this iover the next couple of weeks if
people think it would be a good idea.  (I have done a few similar
things in the past).

For those who don't know, its possible (as Michal told me, and rth's
code snippet demonstrated) to exercise a small degree of control over
what the kernel does when an app encounters an unaligned access.  In
particular, you can turn off the message, tell the kernel not to fix
the access (this sounds like a bad idea), or (more usefully) get the
kernel to send the app a SIGBUS, causing it to dump core.  You can
then plug the coredump into your favourite debugger and fix the
access.

The trouble is, you need to use setsysinfo to get your program to do
this, which is fine for stuff you're writing, but a pain for other
programs.  What I propose is to set up a sysctl so that it will
automatically set this behaviour as desired.  This means that normally 
you just leave this as is, bit if you feel like doing a spot o'
debugging you can echo "some_magic" >> /proc/sys/kernel/uac_control,
and all newly-started process will automatically have the correct
behaviour set in the tss, and will SIGBUS and coredump on encountering 
the unaligned trap.  Similarly, if you attempting to show a prototype
port to your boss, and don't what to be embarrassed by the unaligned
traps you haven't fixed yet, you echo some magic to the same place to
turn the messages off.

Thoughts?

Sean


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

* Re: gnome install under RH5.2 on AS200
  1999-08-18 15:29 ` gnome install under RH5.2 on AS200 Peter Howell Jr
@ 1999-08-18 22:23   ` Sean Hunter
  1999-08-25 17:45   ` Adam C. Powell, IV
  1 sibling, 0 replies; 7+ messages in thread
From: Sean Hunter @ 1999-08-18 22:23 UTC (permalink / raw)
  To: axp-list

On Wed, Aug 18, 1999 at 11:29:12AM -0400, Peter Howell Jr wrote:
> 
>         libm.so.6.1(GLIBC_2.0) is needed by umb-scheme-3.2-9
> 
> Ok.  Not to confusing.  It looks like I need to update glibc.  I ran:
> 
> rpm -ivh glibc-2.0.7-29.alpha.rpm

 
> and get :
> 
> package glibc-2.0.7-29 is already installed
> error: glibc-2.0.7-29.alpha.rpm cannot be installed

This is because this is the package you already have.  You need a
newer one for the upgrade to do anything.
 
> 
>         I then tried the -U, instead of the -i switch, in the vain hope it
> was that simple, but I got the same response.  

Well, I always use U, because that installs if the package isn't
there, and upgades if an earlier version is.

> 
> Am I looking in the wrong place for GLIBC_2.1 and GLIBC_2.0?
> 
> How do I figure out what files glibc-2.0.7-29.alpha.rpm provides?  I think
> I'm having trouble getting the syntax right.

You do rpm -qpl glibc-2.0.7-29.alpha.rpm
you would do rpm -ql glibc to get the same info for a package that has 
been installed already.  Do rpm -qi glibc to get general info about
the glibc package (or rpm -qpi for the one you haven't installed yet)

Having said that, a note of caution.  Upgrading your libc is somewhat
tricky and not for the faint of heart.  SImply upgrading the package
could break all finds of things.  If you need glibc 2.1, you may be
better off upgrading your box to a distro that uses it (eg RH 6.0).
This would also include all the gnome packages too.

Otherwise, find versions of the packages that were built for glibc 2.0.

Sean
 


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

* Re: Unaligned traps et al
  1999-08-18 21:23   ` Sean Hunter
@ 1999-08-18 23:11     ` Richard Henderson
  0 siblings, 0 replies; 7+ messages in thread
From: Richard Henderson @ 1999-08-18 23:11 UTC (permalink / raw)
  To: Michal Jaegermann, axp-list

On Wed, Aug 18, 1999 at 10:23:49PM +0100, Sean Hunter wrote:
> The trouble is, you need to use setsysinfo to get your program to do
> this, which is fine for stuff you're writing, but a pain for other
> programs.  What I propose is to set up a sysctl so that it will
> automatically set this behaviour as desired.  This means that normally 
> you just leave this as is, bit if you feel like doing a spot o'
> debugging you can echo "some_magic" >> /proc/sys/kernel/uac_control...

The DU syscall allows to set the system default too --

#define SSIN_UACSYS     4       /* set system printing on/off */
#define SSIN_UACPARNT   5       /* set parent proc on/off */
#define SSIN_UACPROC    6       /* set current proc on/off */

I only implemented the SSIN_UACPROC case.  If you'd like to
implement the rest, be my guest.  ;-)

I don't remember at the moment, but I believe that the value is
(or should be) inherited across exec.  (Guessed from SSIN_UACPARNT --
you run a program which changes your shell's default, then run
another program which inherits the value.)


r~


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

* Re: gnome install under RH5.2 on AS200
  1999-08-18 15:29 ` gnome install under RH5.2 on AS200 Peter Howell Jr
  1999-08-18 22:23   ` Sean Hunter
@ 1999-08-25 17:45   ` Adam C. Powell, IV
  1 sibling, 0 replies; 7+ messages in thread
From: Adam C. Powell, IV @ 1999-08-25 17:45 UTC (permalink / raw)
  To: axp-list

The simple answer is that the RPMs are made for RedHat 6.0, and depend
on some of the upgraded libraries.  If you want RPMs for 5.2, you'll
have to roll your own.  It's not hard though, just download the source
tarballs and do, e.g.,

rpm -tb gnome-libs-1.0.14.tar.gz

and it will build an RPM and put it in /usr/src/redhat/RPMS.

If that runs into trouble, e.g. a version problem in the spec file, you
can extract it with

tar tzf gnome-libs-1.0.14.tar.gz | grep spec

to make sure you get the right spec file name, then

tar xzf gnome-libs-1.0.14.tar.gz gnome-libs.spec

Then put the tarball in /usr/src/redhat/SOURCES and do

rpm -bb gnome-libs.spec

and it will build the RPM.

Hope this helps,

-Adam `Cold Fusion' Powell, IV http://www.ctcms.nist.gov/~powell/ ____
USDoC, National Institute of Standards & Technology (NIST)  |\ ||<  |
Center for Theoretical and Computational Materials Science  | \||_> |




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

end of thread, other threads:[~1999-08-25 17:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-18 13:47 Unaligned traps et al Sean Hunter
1999-08-18 15:29 ` gnome install under RH5.2 on AS200 Peter Howell Jr
1999-08-18 22:23   ` Sean Hunter
1999-08-25 17:45   ` Adam C. Powell, IV
1999-08-18 16:26 ` Unaligned traps et al Dan Morrill
     [not found] ` <199908181556.JAA28448@ellpspace.math.ualberta.ca>
1999-08-18 21:23   ` Sean Hunter
1999-08-18 23: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