public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: VIA C3 and random SIGTRAP or segfault
@ 2003-01-15 14:15 Larry Sendlosky
  2003-01-15 14:47 ` Padraig
  2003-01-20  7:30 ` Alan
  0 siblings, 2 replies; 12+ messages in thread
From: Larry Sendlosky @ 2003-01-15 14:15 UTC (permalink / raw)
  To: Dave Jones, Miklos Szeredi; +Cc: linux-kernel

We're seeing the same thing on a mini-ITX based system.
init is segfaulting :(( .  We've never seen this on our
other non-C3 systems running the same codebase. We've instrumented
the kernel to help catch the initial problem, hopefully it will
trigger soon.

Dave, will the cmov generate a segfault or illegal instr trap (SIGILL?) ?

thanks
larry



-----Original Message-----
From: Dave Jones [mailto:davej@codemonkey.org.uk]
Sent: Wednesday, January 15, 2003 7:23 AM
To: Miklos Szeredi
Cc: linux-kernel@vger.kernel.org
Subject: Re: VIA C3 and random SIGTRAP or segfault


On Wed, Jan 15, 2003 at 10:29:01AM +0100, Miklos Szeredi wrote:
 > 
 > I just bought a VIA C3 866 processor, and under very special
 > circumstances some programs (e.g. mplayer, xmms) randomly crash with
 > trace/breakpoint trap or segmentation fault.  Otherwise the system
 > seems stable even under high load.

Be sure that those programs aren't compiled for 686. The C3 lacks
cmov, so it'll segfault when it hits that opcode. You can confirm
this by running it under gdb, and disassembling where it segv's to.
This is still a common problem thats biting some people. The debian
folks had a broken libssl for months up until recently.

Note to userspace developers: If you're compiling something as
a 686 binary, you *NEED* to check the feature flags (in an i386
compiled program) to see if the CPU has cmov before you load 686
optimised parts of your app.  This is *NOT* a kernel problem,
it is *NOT* a CPU bug. The cmov extension is optional.
VIA chose to save silicon space by not implementing it. 
Gcc unfortunatly always uses cmov when compiling for 686.

		Dave

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


^ permalink raw reply	[flat|nested] 12+ messages in thread
* VIA C3 and random SIGTRAP or segfault
@ 2003-01-15  9:29 Miklos Szeredi
  2003-01-15 12:23 ` Dave Jones
  0 siblings, 1 reply; 12+ messages in thread
From: Miklos Szeredi @ 2003-01-15  9:29 UTC (permalink / raw)
  To: linux-kernel


I just bought a VIA C3 866 processor, and under very special
circumstances some programs (e.g. mplayer, xmms) randomly crash with
trace/breakpoint trap or segmentation fault.  Otherwise the system
seems stable even under high load.  Tested under various kernels
(generic i386 2.2.19, 2.4.19, and 2.4.19 compiled for the C3), with
different memory modules (some known to be good) and various video
cards and X servers, but the result is always the same.

Can this be a software fault or is the CPU faulty?  Can anything other
then a CPU fault cause programs to receive SIGTRAP?

The system config is:

cpu: C3 866MHz
mb: asus cuv4x-c (via vt82c694x chipset)

The BIOS recognises the CPU as "VIA Cyrix III 866A", which is not
exactly right but almost.

Any advice is greatly appreciated!
Miklos

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

end of thread, other threads:[~2003-01-21  8:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-15 14:15 VIA C3 and random SIGTRAP or segfault Larry Sendlosky
2003-01-15 14:47 ` Padraig
2003-01-15 15:56   ` Miklos Szeredi
2003-01-15 16:12     ` Jens Axboe
2003-01-15 16:13     ` Padraig
2003-01-15 16:26       ` Miklos Szeredi
2003-01-20  7:30 ` Alan
  -- strict thread matches above, loose matches on Subject: below --
2003-01-15  9:29 Miklos Szeredi
2003-01-15 12:23 ` Dave Jones
2003-01-15 12:38   ` Miklos Szeredi
2003-01-15 13:23     ` Dave Jones
2003-01-16  5:53   ` Glen Turner

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