From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22260 invoked by alias); 14 Jun 2005 03:33:02 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 22249 invoked by uid 22791); 14 Jun 2005 03:32:59 -0000 Received: from camomile.cloud9.net (HELO camomile.cloud9.net) (168.100.1.3) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 14 Jun 2005 03:32:59 +0000 Received: from camomile.cloud9.net (localhost.cloud9.net [127.0.0.1]) by camomile.cloud9.net (Postfix) with SMTP id 8E18457F8 for ; Mon, 13 Jun 2005 23:32:57 -0400 (EDT) Received: from keyslapper.net (250-119.customer.cloud9.net [168.100.250.119]) by camomile.cloud9.net (Postfix) with ESMTP id 50F74578B for ; Mon, 13 Jun 2005 23:32:57 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by keyslapper.net (Postfix) with ESMTP id E3BDF11585 for ; Mon, 13 Jun 2005 23:32:56 -0400 (EDT) Received: from keyslapper.net ([127.0.0.1]) by localhost (keyslapper.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 47364-06 for ; Mon, 13 Jun 2005 23:32:56 -0400 (EDT) Received: by keyslapper.net (Postfix, from userid 1001) id BDEC5114FD; Mon, 13 Jun 2005 23:32:56 -0400 (EDT) Date: Tue, 14 Jun 2005 03:33:00 -0000 From: Louis LeBlanc To: gdb@sources.redhat.com Subject: Re: stack corruption? Message-ID: <20050614033256.GB48802@keyslapper.net> Reply-To: Louis LeBlanc Mail-Followup-To: gdb@sources.redhat.com References: <20050614014520.GG24814@keyslapper.net> <20050614020138.GA19453@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20050614020138.GA19453@nevyn.them.org> User-Agent: Mutt/1.5.9i Content-Transfer-Encoding: quoted-printable X-AntiVirus: Checked by Vexira Antivirus v1.5 X-SW-Source: 2005-06/txt/msg00126.txt.bz2 On 06/13/05 10:01 PM, Daniel Jacobowitz sat at the `puter and typed: > On Mon, Jun 13, 2005 at 09:45:20PM -0400, Louis LeBlanc wrote: > > This might be a bit of a trivial question, but I am having trouble > > with stack corruption. > >=20 > > I started seeing this after I began using gcc 3.3 with the -ggdb -g3 > > flags to try to provide more detailed info for gdb. Can anyone tell > > me how these flags change the executable? > >=20 > > Without the -ggdb switch, I don't get any debugging symbols at all. > >=20 > > Anyone have any ideas what else I should be looking at? >=20 > Stack corruption in your program, or in GDB? Neither should change the > generated code at all. -g3 adds macro debugging information. Stack corruption shows up anytime I open the program in gdb. I get an occasional core dump (SEGV and BUS) from my program, but when I can make heads or tails of it, it appears to be deep in a host lookup (system libs, Solaris 9) or Oracle 8.1.7 database calls (which could also be a host lookup). Thanks. Lou --=20 Louis LeBlanc dev@keyslapper.net Fully Funded Hobbyist, KeySlapper Extrordinaire :=FE http://www.keyslapper.net =D4=BF=D4=AC Key fingerprint =3D C5E7 4762 F071 CE3B ED51 4FB8 AF85 A2FE 80C8 D9A2 Arbitrary systems, pl.n.: Systems about which nothing general can be said, save "nothing general can be said."