From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11430 invoked by alias); 8 Mar 2008 23:11:41 -0000 Received: (qmail 11422 invoked by uid 22791); 8 Mar 2008 23:11:40 -0000 X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 08 Mar 2008 23:11:19 +0000 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JY8C9-0001tP-VQ for gcc-help@gnu.org; Sat, 08 Mar 2008 18:11:16 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JY8C1-0007p8-Cl for gcc-help@gnu.org; Sat, 08 Mar 2008 18:11:08 -0500 Received: from smtp110.biz.mail.mud.yahoo.com ([68.142.201.179]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JY8C0-0007oG-Q9 for gcc-help@gnu.org; Sat, 08 Mar 2008 18:11:05 -0500 Received: (qmail 67091 invoked from network); 8 Mar 2008 23:11:00 -0000 Received: from unknown (HELO localhost.localdomain) (wilson@tuliptree.org@69.110.11.83 with plain) by smtp110.biz.mail.mud.yahoo.com with SMTP; 8 Mar 2008 23:10:59 -0000 X-YMail-OSG: qORBgFcVM1kN4A.4YRLTHHs3lkc1Rl0vXSAANJzwHjZbu6AhCzRX5RD.GUUcP3WUJ6ASOGYGsA-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <47D31D02.3080700@tuliptree.org> Date: Sat, 08 Mar 2008 23:11:00 -0000 From: Jim Wilson User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: "Desineni, Harikishan" CC: gcc@gnu.org, gcc-help@gnu.org Subject: Re: Seg fault in call_gmon_start References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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: 2008-03/txt/msg00082.txt.bz2 Desineni, Harikishan wrote: > I just compiled an app with GCC. It is segmentation faulting in call_gmon_start (even before reaching main() of my program Gcc usage questions should not be sent to the gcc list. This list is for being doing development work on gcc. This is an appropriate question for the gcc-help list. It will probably do nothing unless you compiled with -pg. The important bit here is that your program is apparently failing on the very first instruction it executes, as call_gmon_start is probably the first function in the init section, which contains initializers run before calling main. So there is apparently something seriously wrong with your setup, e.g. the kernel isn't constructing the process stack correctly, or the process stack is being mapped to non-existent memory, or something else unusual is going wrong. There may not be anything wrong with gcc itself. call_gmon_start comes from glibc by the way. Look there for more info. Jim