From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22757 invoked by alias); 19 Jun 2007 15:46:35 -0000 Received: (qmail 22750 invoked by uid 22791); 19 Jun 2007 15:46:35 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 19 Jun 2007 15:46:32 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l5JFkPxt006568 for ; Tue, 19 Jun 2007 11:46:25 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l5JFkO2P012149 for ; Tue, 19 Jun 2007 11:46:24 -0400 Received: from [172.16.14.55] (toner.toronto.redhat.com [172.16.14.55]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l5JFkJGR031135; Tue, 19 Jun 2007 11:46:19 -0400 Message-ID: <4677FA4B.8000600@redhat.com> Date: Tue, 19 Jun 2007 18:28:00 -0000 From: Sami Wagiaalla User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Sami Wagiaalla CC: frysk Subject: Re: Dwarf expertise needed References: <4677F3AA.2070904@redhat.com> <4677F4BF.4050107@redhat.com> In-Reply-To: <4677F4BF.4050107@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q2/txt/msg00334.txt.bz2 By the way the only difference between the is that in one main calls first calls secon calls crash. And in the working one main calls second calls crash. Sami Wagiaalla wrote: > Now the are attached > ------------------------------------------------------------------------ > > #include > > void crash(int param1){ > int* a = 0; > a[0] = param1; > } > > inline void second(int w){ > crash(0); > } > > int main(){ > > second(0); > > return 0; > } > > > ------------------------------------------------------------------------ > > #include > > void crash(int param1){ > int* a = 0; > a[0] = param1; > } > > inline void second(int w){ > crash(0); > } > > void first(){ > second(0); > } > > int main(){ > > first(0); > > return 0; > } > >