Unix Technical Forum

Seg Faults

This is a discussion on Seg Faults within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hey everyone, I'm running slack 10 with the 2.4.26 kernel. A while back I got america's army running for ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 03:41 PM
sibersmith
 
Posts: n/a
Default Seg Faults

Hey everyone,

I'm running slack 10 with the 2.4.26 kernel.

A while back I got america's army running for linux. The game runs
just as well as it does under windows, but unfortunately segfaults
every so often.

I have a 512 stick of off brand abyte in my pc. My suspicion is that
the ram contains a tiny flaw which only shows itself during intensive
operations. Does anyone know of a ram checker for linux?

Also, given slacks rep for stability, I thought perhaps I should
consult you guys about possible ways to improve my stability under
linux. I should note that in every other case I can think of this
slack install has been rock solid.

I've heard perhaps such options as acpi, hotplug, etc may lead to
instability in certian situations. Does anyone have any suggestions
as to how i might increase stability under high load conditions in
slack?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 03:41 PM
lucas
 
Posts: n/a
Default Re: Seg Faults

sibersmith wrote:

> Hey everyone,
>
> I'm running slack 10 with the 2.4.26 kernel.
>
> A while back I got america's army running for linux. The game runs
> just as well as it does under windows, but unfortunately segfaults
> every so often.
>
> I have a 512 stick of off brand abyte in my pc. My suspicion is that
> the ram contains a tiny flaw which only shows itself during intensive
> operations. Does anyone know of a ram checker for linux?
>
> Also, given slacks rep for stability, I thought perhaps I should
> consult you guys about possible ways to improve my stability under
> linux. I should note that in every other case I can think of this
> slack install has been rock solid.
>
> I've heard perhaps such options as acpi, hotplug, etc may lead to
> instability in certian situations. Does anyone have any suggestions
> as to how i might increase stability under high load conditions in
> slack?


http://linux.maruhn.com/sec/memtest86.html
it's a boot image. if you run lilo, you can configure it to come up in the
list at boot time, and then you boot into the image, and it'll run fast or
extensive ram tests

however, you can always get something for dos, and run it off of a dos boot
disk
--
lucas
-------------------------
Perl Coder since 2001
shift || die;
-------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 03:41 PM
Brian
 
Posts: n/a
Default Re: Seg Faults

lucas wrote:
> http://linux.maruhn.com/sec/memtest86.html
> it's a boot image. if you run lilo, you can configure it to come up in
> the list at boot time, and then you boot into the image, and it'll run
> fast or extensive ram tests


memtest is far from comprehensive - I have a stick of SpekTek 512 DDR going
back because it seg faults after about 5 minutes.

Running memtest overnight revealed absolutely no errors.

Sticking the same stick into an XP box brings on a crash shortly after
booting.

Watching memtest run I assume it isn't checking for page crossover errors -
writing to the edge of a page generates a write to a physically associated
page - the standard readback check wouldn't find such an error but it would
play hell with Linux's caches and buffers.

The best test is to try a different stick of similar type memory, erhaps by
a different manufacturer.

Best,

Brian

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 03:41 PM
Orange Barrel
 
Posts: n/a
Default Memtest86+

On Mon, 20 Sep 2004 17:53:18 +0000, lucas wrote:

> http://linux.maruhn.com/sec/memtest86.html
> it's a boot image. if you run lilo, you can configure it to come up in the
> list at boot time, and then you boot into the image, and it'll run fast or
> extensive ram tests


memtest86 is getting very long of tooth. I've gotten satisfactory results
on newer hardware with memtest86+ (http://www.memtest.org/), which is a
maintained version of memtest86. YAMMV.

OB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 03:41 PM
lucas
 
Posts: n/a
Default Re: Seg Faults

Brian wrote:

> lucas wrote:
>> http://linux.maruhn.com/sec/memtest86.html
>> it's a boot image. if you run lilo, you can configure it to come up in
>> the list at boot time, and then you boot into the image, and it'll run
>> fast or extensive ram tests

>
> memtest is far from comprehensive - I have a stick of SpekTek 512 DDR
> going back because it seg faults after about 5 minutes.
>
> Running memtest overnight revealed absolutely no errors.
>
> Sticking the same stick into an XP box brings on a crash shortly after
> booting.
>
> Watching memtest run I assume it isn't checking for page crossover errors
> - writing to the edge of a page generates a write to a physically
> associated page - the standard readback check wouldn't find such an error
> but it would play hell with Linux's caches and buffers.
>
> The best test is to try a different stick of similar type memory, erhaps
> by a different manufacturer.


Thanks for the tip. Does all mem test software do the same tests? I have a
few different programs for testing memory, and I find it hard to beleive
that they all could miss the same thing.

regards,
--
lucas
-------------------------
Perl Coder since 2001
shift || die;
-------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 03:41 PM
Floyd L. Davidson
 
Posts: n/a
Default Re: Seg Faults

sibersmith@yahoo.com (sibersmith) wrote:
>A while back I got america's army running for linux. The game runs
>just as well as it does under windows, but unfortunately segfaults
>every so often.
>
>I have a 512 stick of off brand abyte in my pc. My suspicion is that
>the ram contains a tiny flaw which only shows itself during intensive
>operations. Does anyone know of a ram checker for linux?


What kind of a segfault are you getting?

I would think that setting ulimits on the size of a core file to
something which allows a core dump (do "help ulimit" from a bash
command line) could potentially be useful (though perhaps not at
all). You would at a minimum be able to determine if it was always
happening at the same point in the program, which would clearly
implicated the program.

The simple fact is that unless you are always using *exactly*
the same set of processes, and never do anything different, it
is very unlikely that only one program would be having problems
if you had a faulty stick of RAM. Much more likely would be
some very random results, _or_ it would bomb during some part of
the initial setup process (booting, logging in, running X). But
once you get past that point, the exact part of RAM that any
given program is assigned is pretty much random, depending on
what else was running just before it. As a result, you'd be
getting segfaults on whatever process just happened to use the
bad RAM.

On the other hand, a large program might appear to "randomly"
segfault, as it does background tasks which are not apparent to
the user, and hence the actual cause of a segfault is not
directly tied to any specific user action. For example,
Netscape and Opera are the two web browsers that I use, and they
both bomb out on an irregular basis. Annoying, but there isn't
much I can do about it.

--
FloydL. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@barrow.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 03:41 PM
Brian
 
Posts: n/a
Default Re: Seg Faults

lucas wrote:
> Brian wrote:
>> The best test is to try a different stick of similar type memory, erhaps
>> by a different manufacturer.


> Thanks for the tip. Does all mem test software do the same tests? I have
> a few different programs for testing memory, and I find it hard to beleive
> that they all could miss the same thing.


Can't speak for them all Lucas - just swapping out a stick of DDR is much
faster than waiting overnight for some memory test to complete.

Best,

Brian

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 03:42 PM
Brian
 
Posts: n/a
Default Re: Seg Faults

Floyd L. Davidson wrote:

<clipped for brevity>

Floyd is 100% right - you are likely experiencing a problem with your game
app.

I on the other hand always experienced problem after a set amount of
activity - memtest revealed nothing but replacing the stick cured the
problem.

Different circumstances.

Best regards,

Brian

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:52 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com