* Instability (RH6 ??)
@ 1999-05-31 1:05 Dave Gilbert
1999-05-31 2:10 ` Jay.Estabrook
1999-05-31 4:57 ` Wes Bauske
0 siblings, 2 replies; 6+ messages in thread
From: Dave Gilbert @ 1999-05-31 1:05 UTC (permalink / raw)
To: axp-list
Hi,
I'm experiencing serious instability - apparently random - but mainly
occuring while doing big compiles (perhaps only some cross compiles??) -
this has only come on since I installed RH6, I can't repeat the place it
fails and I'm seeing illegal instructions or seg faults.
I've been thinking perhaps its a hardware fault, but my memory checker
isn't complaining, I'm not seeing any log messages and I've cooled the
machine down quite a bit and its still doing it.
Any ideas??
Dave
P.S. Since installing RH6, ping gives unaligned errors and actually gives
data errors in the ping output - first time I've ever seen that.
--------------------------------------------------------------------
/ Dr. David Alan Gilbert | Running Linux on | Happy \
\ gro.gilbert @ treblig.org | Alpha, x86, ARM and SPARC | In Hex /
____________________________|___ http://www.treblig.demon.co.uk __/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Instability (RH6 ??)
1999-05-31 1:05 Instability (RH6 ??) Dave Gilbert
@ 1999-05-31 2:10 ` Jay.Estabrook
1999-05-31 5:16 ` Michal Jaegermann
1999-05-31 4:57 ` Wes Bauske
1 sibling, 1 reply; 6+ messages in thread
From: Jay.Estabrook @ 1999-05-31 2:10 UTC (permalink / raw)
To: axp-list
>>> Dave Gilbert said:
>
> P.S. Since installing RH6, ping gives unaligned errors and actually gives
> data errors in the ping output - first time I've ever seen that.
Richard Henderson posted this only a few days ago:
-----------------------------------------------------------------------------
Date: Sun, 23 May 1999 09:59:23 -0700
From: Richard Henderson <rth@twiddle.net>
To: axp-list@redhat.com
Subject: Re: RH 6.0 unaligned traps
On Thu, May 20, 1999 at 10:35:46AM -0400, Dan Morrill wrote:
> I've been getting unaligned traps generated from the `ping` and `xpaint`
I was pointed at and found the ping problem this week -- the source
expected struct timeval to be 2 32-bit words, one of the POSIX conformance
changes that happened between glibc 2.0 and 2.1.
I've given RH a patch (not handy at the moment). I expect the same thing
to be the problem with traceroute.
r~
-----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Instability (RH6 ??)
1999-05-31 1:05 Instability (RH6 ??) Dave Gilbert
1999-05-31 2:10 ` Jay.Estabrook
@ 1999-05-31 4:57 ` Wes Bauske
1999-06-01 2:26 ` Brian Kurotsuchi
1999-06-04 6:07 ` Richard Henderson
1 sibling, 2 replies; 6+ messages in thread
From: Wes Bauske @ 1999-05-31 4:57 UTC (permalink / raw)
To: axp-list
Dave Gilbert wrote:
>
> Hi,
> I'm experiencing serious instability - apparently random - but mainly
> occuring while doing big compiles (perhaps only some cross compiles??) -
> this has only come on since I installed RH6, I can't repeat the place it
> fails and I'm seeing illegal instructions or seg faults.
Haven't seen that.
>
> I've been thinking perhaps its a hardware fault, but my memory checker
> isn't complaining, I'm not seeing any log messages and I've cooled the
> machine down quite a bit and its still doing it.
>
I see this too. Richard is supposed to have the patch moving
thru the RH system so hopefully it gets out soon. I thought
maybe I had installed something wrong until I saw this and
had planned on reinstalling to see if it persisted.
Wes
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Instability (RH6 ??)
1999-05-31 2:10 ` Jay.Estabrook
@ 1999-05-31 5:16 ` Michal Jaegermann
0 siblings, 0 replies; 6+ messages in thread
From: Michal Jaegermann @ 1999-05-31 5:16 UTC (permalink / raw)
To: axp-list
Jay.Estabrook@digital.com wrote:
>
>
> >>> Dave Gilbert said:
> >
> > P.S. Since installing RH6, ping gives unaligned errors and actually gives
> > data errors in the ping output - first time I've ever seen that.
>
> Richard Henderson posted this only a few days ago:
>
> I was pointed at and found the ping problem this week -- the source
> expected struct timeval to be 2 32-bit words, one of the POSIX conformance
> changes that happened between glibc 2.0 and 2.1.
>
> I've given RH a patch (not handy at the moment). I expect the same thing
> to be the problem with traceroute.
>
The following showed up in comp.os.linux.alpha some time ago:
Message-ID: <373C443A.4B574A75@ife.ee.ethz.ch>
Date: Fri, 14 May 1999 17:41:46 +0200
From: Alex Rhomberg <rhomberg@ife.ee.ethz.ch>
Organization: Electronics Lab, ETH Zurich, Switzerland
ping in netkit 0.11+ assumes that timeval has a length of eight bytes
and works with 32 bit alignment. This is no longer the case on my Alphas
running Linux 2.2.5 and Redhat 6.0 (might be due to glibc 2.1??)
Ping generated unaligned traps and erroneously reported receiving of
wrong data.
This is fixed by the following patch. Note that I did not read the whole
code but just made some wild guesses. The unaligned traps and the wrong
data errors are gone.
Regards
- Alex
--- ping.unpatched.c Fri May 14 17:30:50 1999
+++ ping.c Fri May 14 17:31:06 1999
@@ -394,7 +394,7 @@
exit(2);
}
if (!(options & F_PINGFILLED))
- for (i = 8; i < datalen; ++i)
+ for (i = sizeof(struct timeval); i < datalen; ++i)
*datap++ = i;
ident = getpid() & 0xFFFF;
@@ -657,11 +657,18 @@
return; /* 'Twas not our ECHO */
++nreceived;
if (timing) {
+ struct timeval temp_tv;
#ifndef icmp_data
tp = (struct timeval *)(icp + 1);
#else
tp = (struct timeval *)icp->icmp_data;
#endif
+ if((long)tp % sizeof(tp->tv_sec))
+ {
+ char *unaligned_pointer = (char *)tp;
+ tp = &temp_tv;
+ memcpy(tp, unaligned_pointer, sizeof(struct timeval));
+ }
tvsub(&tv, tp);
triptime = tv.tv_sec * 10000 + (tv.tv_usec / 100);
tsum += triptime;
@@ -697,9 +704,9 @@
(void)printf(" (DUP!)");
/* check the data */
#ifndef icmp_data
- cp = ((u_char*)(icp + 1) + 8);
+ cp = ((u_char*)(icp + 1) + sizeof(struct timeval));
#else
- cp = (u_char*)icp->icmp_data + 8;
+ cp = (u_char*)icp->icmp_data + sizeof(struct timeval);
#endif
dp = &outpack[8 + sizeof(struct timeval)];
for (i = 8; i < datalen; ++i, ++cp, ++dp) {
--
_________________________________________________________________
/ \
| Alex Rhomberg Tel: +41 1 632 49 18 |
| Institut fuer Elektronik Fax: +41 1 632 12 10 |
| ETH Zuerich Zentrale: +41 1 632 11 11 |
| Gloriastrasse 35 |
| 8092 Zuerich email: rhomberg@ife.ee.ethz.ch |
\_________________________________________________________________/
I strongly suspect that doing an uncoditional copy instead of testing
'tp' every time would be an overal win - but this is only a hunch.
If you do the test then at least do:
if( 0 != ((long)tp & (sizeof(tp->tv_sec) - 1)))
and move a declaration of temp_tv inside of a block, as I suspect that
a compiler will be not smart enough, but basically that is it.
Wait a minute, an alignment on 8 bytes boundary, i.e. " & (sizeof(long) - 1)",
should be good enough. Details, details....
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Instability (RH6 ??)
1999-05-31 4:57 ` Wes Bauske
@ 1999-06-01 2:26 ` Brian Kurotsuchi
1999-06-04 6:07 ` Richard Henderson
1 sibling, 0 replies; 6+ messages in thread
From: Brian Kurotsuchi @ 1999-06-01 2:26 UTC (permalink / raw)
To: axp-list
How about this:
-----------
make[2]: Entering directory `/usr/src/linux-2.2.9/drivers/pci'
make all_targets
make[3]: Entering directory `/usr/src/linux-2.2.9/drivers/pci'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev56 -Wa,-m21164a
-DBWIO_ENABLED -DEXPORT_SYMTAB -c pcisyms.c
make[3]: *** [pcisyms.o] Segmentation fault (core dumped)
make[3]: *** Deleting file `pcisyms.o'
make[3]: Leaving directory `/usr/src/linux-2.2.9/drivers/pci'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.2.9/drivers/pci'
make[1]: *** [_subdir_pci] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.9/drivers'
make: *** [_dir_drivers] Error 2
[bkurotsu@prozac linux]$ gcc -v
Reading specs from /usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
-----------
Seems to be random. I type "make boot" again and it went through and did it
somewhere else. I'm running RH6.0 on a 164SX that I just put together.
BK
Quoting Wes Bauske (wsb@paralleldata.com):
> Dave Gilbert wrote:
> >
> > Hi,
> > I'm experiencing serious instability - apparently random - but mainly
> > occuring while doing big compiles (perhaps only some cross compiles??) -
> > this has only come on since I installed RH6, I can't repeat the place it
> > fails and I'm seeing illegal instructions or seg faults.
>
> Haven't seen that.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Instability (RH6 ??)
1999-05-31 4:57 ` Wes Bauske
1999-06-01 2:26 ` Brian Kurotsuchi
@ 1999-06-04 6:07 ` Richard Henderson
1 sibling, 0 replies; 6+ messages in thread
From: Richard Henderson @ 1999-06-04 6:07 UTC (permalink / raw)
To: axp-list
On Sun, May 30, 1999 at 11:57:25PM -0500, Wes Bauske wrote:
> I see this too. Richard is supposed to have the patch moving
> thru the RH system so hopefully it gets out soon.
FWIW, I make srpms of the ones I fixed for myself. They are
in ftp.twiddle.net:/pub/rth/ if you're impatient.
r~
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-06-04 6:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-31 1:05 Instability (RH6 ??) Dave Gilbert
1999-05-31 2:10 ` Jay.Estabrook
1999-05-31 5:16 ` Michal Jaegermann
1999-05-31 4:57 ` Wes Bauske
1999-06-01 2:26 ` Brian Kurotsuchi
1999-06-04 6:07 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox