Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756358AbYHWURp (ORCPT ); Sat, 23 Aug 2008 16:17:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754320AbYHWURh (ORCPT ); Sat, 23 Aug 2008 16:17:37 -0400 Received: from mail-in-07.arcor-online.net ([151.189.21.47]:56008 "EHLO mail-in-07.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753394AbYHWURf (ORCPT ); Sat, 23 Aug 2008 16:17:35 -0400 From: Bodo Eggert <7eggert@gmx.de> Subject: Re: Segmentation fault details? To: Wang Yi , linux-kernel@vger.kernel.org Reply-To: 7eggert@gmx.de Date: Sat, 23 Aug 2008 22:23:55 +0200 References: User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-Id: X-be10.7eggert.dyndns.org-MailScanner-Information: See www.mailscanner.info for information X-be10.7eggert.dyndns.org-MailScanner: Found to be clean X-be10.7eggert.dyndns.org-MailScanner-From: 7eggert@gmx.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1034 Lines: 18 Wang Yi wrote: > I'd like to know some details about segmentation fault. > What I mean is when a program accesses invalid memory area, it will > get a SIGSEGV signal from kernel, and a message "Segmentation fault". > > I also find that dmesg can show we something like this: > ProgramName[Pid]: segfault at xxxx eip xxxx esp xxxx error x > It is useful and provides the first-step information for further > debug/analysis. > > My question is how dmesg gets the information, and if there are any > "decent" way to get this and maybe more information(An "indecent" way > I came to is grep dmesg) > so that I can perform some basic auto analysis. I'm wondering if the default handler might print this information isntead of the plain segmentation violation. -- 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/