From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1041 invoked by alias); 8 Jun 2011 12:03:05 -0000 Received: (qmail 1028 invoked by uid 22791); 8 Jun 2011 12:03:04 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-px0-f176.google.com (HELO mail-px0-f176.google.com) (209.85.212.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Jun 2011 12:02:51 +0000 Received: by pxi11 with SMTP id 11so237482pxi.21 for ; Wed, 08 Jun 2011 05:02:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.177.14 with SMTP id z14mr308478wfe.208.1307534570630; Wed, 08 Jun 2011 05:02:50 -0700 (PDT) Received: by 10.143.168.18 with HTTP; Wed, 8 Jun 2011 05:02:50 -0700 (PDT) In-Reply-To: References: Date: Wed, 08 Jun 2011 13:31:00 -0000 Message-ID: Subject: Re: compilation error From: Jonathan Wakely To: Rony Paul Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00190.txt.bz2 On 8 June 2011 12:09, Rony Paul wrote: > > could you please tell me what type of error is the following code returning? It looks as though you're dereferencing a null pointer. Find out which line it segfaults on and add checks to ensure the relevant tree variable is not null before using it.