From owner-freebsd-questions Tue May 5 01:07:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA18832 for freebsd-questions-outgoing; Tue, 5 May 1998 01:07:47 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA18809 for ; Tue, 5 May 1998 01:07:40 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id BAA02713; Tue, 5 May 1998 01:04:12 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd002711; Tue May 5 08:04:08 1998 Date: Tue, 5 May 1998 01:04:06 -0700 (PDT) From: Julian Elischer To: Doug Lo cc: freebsd-questions@FreeBSD.ORG Subject: Re: What does 'segment fault' mean? In-Reply-To: <354EA035.75EE752@ms11.hinet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The program tried to access a page (segment) for which it has not yet asked the kernel to make a valid mapping. Usually it's page 0 which is deliberatly left unmapped specifically to force programs with bugs to crash earlier, rather than run with bad data. julian On Tue, 5 May 1998, Doug Lo wrote: > Hi, > > I'd be glad if anyone could explain one aspect of unix is puzzling me: > When I run some programs, it got an error: "Segment fault". > I don't know how/why it happened, would anyone tell me the 'Segment > fault' mean? > > Thanks in advance, > Doug. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message