Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* unaligned traps
@ 1996-03-11  0:11 J.K. Perquin
  0 siblings, 0 replies; 9+ messages in thread
From: J.K. Perquin @ 1996-03-11  0:11 UTC (permalink / raw)


hello

Whenever I use fdisk I got these errors:

fdisk(4): unaligned trap at 0000000120007a6c: 0000000140003906 28 1
fdisk(4): unaligned trap at 0000000120007b00: 0000000140003906 28 24
fdisk(4): unaligned trap at 0000000120007b28: 0000000140003906 28 1
fdisk(4): unaligned trap at 0000000120007b30: 0000000140003906 28 3

and at boottime after the partition check

: kernel: unaligned trap at fffffc00003b1a80: fffffc000001e1ca 28 1
kernel: unaligned trap at fffffc000003b1a88: fffffc000001e1c6 28 18
kernel: unaligned trap at fffffc000003b1a9c: fffffc000001e1ca 28 19

I als still got the error when typing in 'show' in Milo:

hda: IRQ probe failed (-4)

What can I do about them?
Thanx in advance.
Greetings koos...

J.K.Perquin,  WalkInternet

Tel.Prive: 0598327182
Tel. Zaak: 0505781426

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

* Re: unaligned traps
       [not found] <1.5.4b11.32.19960311001147.00685764@mail.bnc.nl>
@ 1996-03-11  1:19 ` Erik Troan
  0 siblings, 0 replies; 9+ messages in thread
From: Erik Troan @ 1996-03-11  1:19 UTC (permalink / raw)


On Mon, 11 Mar 1996, J.K. Perquin wrote:

> and at boottime after the partition check
> 
> : kernel: unaligned trap at fffffc00003b1a80: fffffc000001e1ca 28 1
> kernel: unaligned trap at fffffc000003b1a88: fffffc000001e1c6 28 18
> kernel: unaligned trap at fffffc000003b1a9c: fffffc000001e1ca 28 19

Ignore these. The FAT table is unaligned, and Linus doesn't like the
ugly kernel code that's required to fix it. Likewise, the fdisk code
isn't worth the hassle.

> hda: IRQ probe failed (-4)

Durned it I know this one.

Erik
-------------------------------------------------------------------------------
   Always hoped that I'd be an apostle. Knew that I would make it if I tried.
     Then when we retire we can write the gospels so they'll all talk about
         us when we die. - "The Last Supper" from Jesus Christ Superstar
|   Erik Troan   =   http://sunsite.unc.edu/ewt/   =   ewt@sunsite.unc.edu    |

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

* Re: unaligned traps
@ 1996-03-11  9:37 Nigel Metheringham
  0 siblings, 0 replies; 9+ messages in thread
From: Nigel Metheringham @ 1996-03-11  9:37 UTC (permalink / raw)


[replies to several messages in one handy package here...]

koosp@atlas.bnc.nl said:
} I als still got the error when typing in 'show' in Milo:

} hda: IRQ probe failed (-4) 

I get this on at least some (and I think all) of our Noname boards - 
using latest precompiled MILO from gatekeeper on some boxes and one 
built here from the devel sources of around 1.3.68.  Seems 
harmless... (then again I have got this IDE problem :-) ).

matthew@sleeper.apana.org.au said:
}  There is a patch mentioned in the doco about OSF/1 that needs to 
} applied, or it cant resolve the names in the access control files to 
} addresses. Its a 32/64bit int problem ( again...). Some one decided 
} that IP addresses are the same size as int's. 

IP addresses *are* the same size as ints on all the systems I use at 
present - its people making assumptions that they are the same size 
as longs that causes trouble.   Use one of the bittypes definitions 
(uint32), or the defs in the network include files.

Erik - does your inn include the unoff4 changes.  The entire source 
is available at
	ftp://ftp.math.psu.edu/pub/INN/inn1.4unoff4.tar.gz
no patches available unfortunately.

-- 
[ Nigel.Metheringham@theplanet.net   - Unix Applications Engineer ]
[ *Views expressed here are personal and not supported by PLAnet* ]
[ PLAnet Online : The White House     Tel : +44 113 2345566 x 612 ]
[ Melbourne Street, Leeds LS2 7PS UK. Fax : +44 113 2345656       ]

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

* Re: unaligned traps
       [not found] <m0tw42h-0007dpC@dingo.theplanet.co.uk>
@ 1996-03-11 15:17 ` Erik Troan
  0 siblings, 0 replies; 9+ messages in thread
From: Erik Troan @ 1996-03-11 15:17 UTC (permalink / raw)


On Mon, 11 Mar 1996, Nigel Metheringham wrote:

> Erik - does your inn include the unoff4 changes.  The entire source 
> is available at
> 	ftp://ftp.math.psu.edu/pub/INN/inn1.4unoff4.tar.gz
> no patches available unfortunately.

No. I know *nothing* about inn, so I can't build this with any confidence. 
Making a package of it using our unoff3 version as a template should
be child's play though.

My "port" of inn consisted of getting rid of the -m486 it used to use
during the build.

Erik

-------------------------------------------------------------------------------
   Always hoped that I'd be an apostle. Knew that I would make it if I tried.
     Then when we retire we can write the gospels so they'll all talk about
         us when we die. - "The Last Supper" from Jesus Christ Superstar
|   Erik Troan   =   http://sunsite.unc.edu/ewt/   =   ewt@sunsite.unc.edu    |

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

* Re: unaligned traps
       [not found] <Pine.LNX.3.91.960311101611.26110E-100000@redhat.com>
@ 1996-03-11 20:33 ` Matthew Geier
  0 siblings, 0 replies; 9+ messages in thread
From: Matthew Geier @ 1996-03-11 20:33 UTC (permalink / raw)


> Making a package of it using our unoff3 version as a template should
> be child's play though.
> 
> My "port" of inn consisted of getting rid of the -m486 it used to use
> during the build.
> 
 Unless the patches mentioned in the doco are made ( look in the doc
directory in the unoff3/4 tree, inn and its support ultities cant resolve
names. This breaks every thing that tries to use a sybolic name for
an address. The name resolver is broken without the patch. You have to
specify every thing with dotted quad addresses to get it to work !

 inn works well with the patch however.

-- 
Matthew Geier,                 | Australian Public Access Network Association
matthew@sleeper.apana.org.au   | (+61) 2 588 4615 (Data) 587 9773   (voice)
matthew@law.usyd.edu.au        | An APANA Sydney hub.    018 977356 (mobile)

    'There are worlds out there where the sky is burning, the seas
sleep, and the rivers dream; people made of smoke, and cities made of
song.  Somewhere there's danger, somewhere there's injustice, and somewhere
else the tea is getting cold.  Come on Ace, we've got work to do!'
                (Last words of the last Dr Who)

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

* Re: unaligned traps
@ 1996-03-11 21:29 J.K. Perquin
  0 siblings, 0 replies; 9+ messages in thread
From: J.K. Perquin @ 1996-03-11 21:29 UTC (permalink / raw)


Hello 

After the problems with milo I now can boot the boot and root disks
'without' problems. Only a message:

#lca: machine check (la=0xfffffc00002084d0,pc=0xfffffc0000257f54)
  reason: access to non-existent memory (long frame):
  reason: 100000084   exc_addr: fffffc0000257f54   dc_stat: 7
  car:60705241
  A write error to b-cache occured at address 15010d0
  Attempted to access non-existent meemory.

and it seems to give no problems at all. But when I try to install
the disk sets I see the message 'warning, bdflush not running'.
after two or three disks the disk drive freezes, no 
led ativity and when pressing ctrl-c the prompt 'sometimes' returns.

Greetings Koos.

JK.Perquin.

B&C I.S.P. Groningen The Netherlands.
Tel:050-5381426.

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

* Unaligned traps...
@ 1997-10-16 21:48 David Goldstein
  1997-10-17 11:24 ` Christoph Zens
  0 siblings, 1 reply; 9+ messages in thread
From: David Goldstein @ 1997-10-16 21:48 UTC (permalink / raw)


Ok, I am sorry if this is a question that has been asked before but I am
gonna ask again...

I have been using my Alpha PC164 500mhz for quite a while. Despite any
suggestions to the contrary, this is a fast machine and the performance is
awesome for the price (5000 with SCSI III ultrawide and 128 megs of ram)...
It has taken over as the primary server on my T1 and is doing a smashup
job...
I ran it for a few months before letting it take over so I don't have any
real concern...

Question:
When I type netstat I get an appropriate list of open network ports and so
on. Very typical..

However I also get
Oct 16 05:43:30 where kernel: netstat(15228): unaligned trap at
0000000000000029
: 000000011ffff87c 2d 10
Oct 16 05:43:30 where kernel: netstat(15228): unaligned trap at
0000000000000029
: 000000011ffff88c 2d 10
Oct 16 05:43:30 where kernel: netstat(15228): unaligned trap at
0000000000000029
: 000000011ffff87c 2d 10
Oct 16 05:43:30 where kernel: netstat(15228): unaligned trap at
0000000000000029
: 000000011ffff88c 2d 10

Now I recompiled it so I have the source and suspect that given a little
guidance I could clean this problem out. However I have never gone through
that process and don't see any guidance. My own source code doesn't give
these errors so I assume it is someone doing something that I don't do. I
have heard said that it is the sort of thing where one assumes 32 bit based
variable sizes but I don't really understand any of these error messages
and don't know where docs are for it.

If anyone could point me in the right direction I would appreciate it.
Perhaps show a before and after of the kind of error (like is there a
sample program that will cause these errors and then the solution program?)

I have been holding off on fixing this as it wasn't causing my system any
damage but there is an aesthetic to this that I dislike..

David Lorin Goldstein

--
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

* Re: Unaligned traps...
  1997-10-16 21:48 Unaligned traps David Goldstein
@ 1997-10-17 11:24 ` Christoph Zens
  0 siblings, 0 replies; 9+ messages in thread
From: Christoph Zens @ 1997-10-17 11:24 UTC (permalink / raw)


>However I also get
>Oct 16 05:43:30 where kernel: netstat(15228): unaligned trap at
>0000000000000029: 000000011ffff88c 2d 10

>Perhaps show a before and after of the kind of error (like is there a
>sample program that will cause these errors and then the solution program?)

If your program defines something like:

long *foo;
char bar[32];

and then attempts to do this:

foo = (long *)&bar[3];
*foo = 1234;

then you will get an unaligned trap at runtime. In a nutshell:
You should not try to do longword accesses at an odd memory address.
The best (and safest) way is to align every access on a byte-address
that is an integral multiple of the byte-size that you deal with.
For the above example, this leads to:

foo = (long *)&bar[4];
*foo = 1234;

on x86-based machines ("long" is four bytes in length), BUT:

foo = (long *)&bar[8];
*foo = 1234;

for alpha-based maschines, where "long" consists of eight bytes.

Perhaps you want to change some variable declarations within your code
from "long" to "int", as "int" on the alpha is four bytes long and
thus, could eventually remove your unaligned trap.

Another frequently seen thing at compile time is:
"warning: casting pointer to integer of different size"

Every program, that makes the assumption that an "integer" is the same size
as a pointer, runs into such problems on an alpha. Things to watch out for:

int foo;
something *bar;

foo = (int)bar;

To correct this, you will have to use "long" to declare "foo" and cast the
pointer to long which has the same size as the pointer itself (eight bytes).

hope that helps.

--
    _
 _ //
 \X/  Christoph Zens <e9126506@student.tuwien.ac.at>

Hofstaeter's law: It takes always longer than you think,
                  even if you take into account Hofstaeter's law.

--
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

* unaligned traps
@ 1999-11-17  7:34 Jamesvi
  0 siblings, 0 replies; 9+ messages in thread
From: Jamesvi @ 1999-11-17  7:34 UTC (permalink / raw)
  To: axp-list

I tried patching a 2.2.11 kernel to get rid of the unaligned traps error from
my decnetwork card.  This is on a PWS433  (miata).  Does anyone knowhere I can
find the patch to fix this. I think that this is what needs to happen if I
remeber correctly.  Sorry about the spelling .
Thanks,
James
------------------------------------------------------------------------------
James Fowler
Graduate Student Political Science & Latin America
Arizona State University
jamesvi@asu.edu        					ICQ: 22088266
-----------------------------------------------------------------------------



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

end of thread, other threads:[~1999-11-17  7:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-11  9:37 unaligned traps Nigel Metheringham
  -- strict thread matches above, loose matches on Subject: below --
1999-11-17  7:34 Jamesvi
1997-10-16 21:48 Unaligned traps David Goldstein
1997-10-17 11:24 ` Christoph Zens
1996-03-11 21:29 unaligned traps J.K. Perquin
     [not found] <Pine.LNX.3.91.960311101611.26110E-100000@redhat.com>
1996-03-11 20:33 ` Matthew Geier
     [not found] <m0tw42h-0007dpC@dingo.theplanet.co.uk>
1996-03-11 15:17 ` Erik Troan
     [not found] <1.5.4b11.32.19960311001147.00685764@mail.bnc.nl>
1996-03-11  1:19 ` Erik Troan
1996-03-11  0:11 J.K. Perquin

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