public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Fabio Coatti <cova@ferrara.linux.it>
Cc: Andrew Walrond <andrew@walrond.org>, linux-kernel@vger.kernel.org
Subject: Re: Dual opteron various segfaults with 2.6.14.2 and earlier kernels
Date: Thu, 24 Nov 2005 01:03:51 +0100	[thread overview]
Message-ID: <20051124000351.GT18321@opteron.random> (raw)
In-Reply-To: <200511240026.42212.cova@ferrara.linux.it>

Hello Fabio,

On Thu, Nov 24, 2005 at 12:26:41AM +0100, Fabio Coatti wrote:
> yes, uname says  2.6.14.2; on a second identical machine, I've just seen this:
> 
> 
> factorial[2352]: segfault at 0000000000020f31 rip 00000000004035ae rsp 
> 00007fffffbfaf60 error 4
> factorial[2354]: segfault at 0000000000020f31 rip 00000000004035ae rsp 
> 00007fffffe3fc70 error 4
> factorial[2361]: segfault at 0000000000020f31 rip 00000000004035ae rsp 
> 00007fffffb07c50 error 4
> factorial[2358]: segfault at 0000000000020f31 rip 00000000004035ae rsp 
> 00007fffffb07c50 error 4
> factorial[2363]: segfault at 0000000000020f31 rip 00000000004035ae rsp 
> 00007fffffe6d270 error 4
> 
> the kernel and HW are the same.

Error 4 means a read in userland on a not mapped area.

The above isn't necessairly a kernel or hardware problem, it looks like
an userland bug if it segfaults at such a low address (20f31). Nothig is
mapped below "0x400000" exactly to catch these kind of bugs. 

You should debug the program and check what's the code at address
0x4035ae? You can check it with gdb or objdump -d. Probably there's a
64bit bug in the program that doesn't trigger on x86 32bit (or you may
not be noticing the segfault on 32bits because it wouldn't be logged in
the syslog).

Hope this helps ;)

  reply	other threads:[~2005-11-24  0:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-23 14:37 Dual opteron various segfaults with 2.6.14.2 and earlier kernels Fabio Coatti
2005-11-23 14:41 ` Arjan van de Ven
2005-11-23 15:49   ` Fabio Coatti
2005-11-23 22:55 ` Andrew Walrond
2005-11-23 23:26   ` Fabio Coatti
2005-11-24  0:03     ` Andrea Arcangeli [this message]
2005-11-24  8:07       ` Andrew Walrond

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051124000351.GT18321@opteron.random \
    --to=andrea@suse.de \
    --cc=andrew@walrond.org \
    --cc=cova@ferrara.linux.it \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox