From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6364 invoked by alias); 22 Apr 2003 07:47:48 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 6357 invoked from network); 22 Apr 2003 07:47:48 -0000 Received: from unknown (HELO smtp.us.messagingengine.com) (66.111.4.4) by sources.redhat.com with SMTP; 22 Apr 2003 07:47:48 -0000 Received: from www.fastmail.fm (server1.internal [10.202.2.132]) by server3.messagingengine.com (Postfix) with ESMTP id F02BC59E2D; Tue, 22 Apr 2003 03:47:47 -0400 (EDT) Received: from 127.0.0.1 ([127.0.0.1] helo=www.fastmail.fm) by messagingengine.com with SMTP; Tue, 22 Apr 2003 03:47:47 -0400 X-Epoch: 1050997667 X-Sasl-enc: X33Pftp3EfOR2j1barOdgQ Received: from fastmail.fm (x1-6-00-e0-81-03-b8-78.k95.webspeed.dk [80.198.76.164]) by www.fastmail.fm (Postfix) with ESMTP id C0B4323F6; Tue, 22 Apr 2003 03:47:46 -0400 (EDT) Message-ID: <3EA4F3A2.10109@fastmail.fm> Date: Tue, 22 Apr 2003 07:47:00 -0000 From: bjorn rohde jensen Reply-To: bjensen@fastmail.fm User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Bolgheroni Cc: gcc-help@gcc.gnu.org Subject: Re: Segmentation fault Causes References: <20030224045442.GA25932@uol.com.br> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00190.txt.bz2 Hi there, Segmentation faults are signals delivered from the operating system to a process to inform it, that the process has attempted to access memory outside its address space. Common causes are forgetting to initialise a pointer before use or using something, which is not a pointer, as a pointer. You might want to compile with debug info and run the program under a debug'er. It should provide you with the exact line, where the segfault is generated. If you are fairly lucky, the reason will be also be quite apparent. Yours sincerely, Bjorn