From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14937 invoked by alias); 2 May 2002 21:00:22 -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 14927 invoked from network); 2 May 2002 21:00:20 -0000 Received: from unknown (HELO dibbler.ne.client2.attbi.com) (24.60.166.160) by sources.redhat.com with SMTP; 2 May 2002 21:00:20 -0000 Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.11.0/8.11.0) id g42L0I531258 for gdb@sources.redhat.com; Thu, 2 May 2002 17:00:18 -0400 Date: Thu, 02 May 2002 14:00:00 -0000 From: Craig Rodrigues To: gdb@sources.redhat.com Subject: gdb 5.1.92-1 crash on C++ program Message-ID: <20020502170018.A31253@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-SW-Source: 2002-05/txt/msg00020.txt.bz2 Hi, I downloaded the Source rpm for gdb 5.1.92-1 from rawhide.redhat.com. I compiled a C++ program with: 2.96 20000731 (Red Hat Linux 7.1 2.96-85) When I tried to debug my program, gdb coredumped: ================================================================================== % gdb server GNU gdb Red Hat Linux (5.1.92-1) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (gdb) b 93 Breakpoint 1 at 0x80512b7: file server.cpp, line 93. (gdb) run -o server.ior Starting program: /home/crodrigu/Big_Twoways/server -o server.ior [New Thread 1024 (LWP 2348)] [Switching to Thread 1024 (LWP 2348)] Breakpoint 1, main (argc=3, argv=0xbffff5b4) at server.cpp:96 96 coordinator_impl->_this (ACE_ENV_SINGLE_ARG_PARAMETER); (gdb) p coordinator_impl $1 = (class Coordinator *) 0x80bf0a8 (gdb) p *coordinator_impl Segmentation fault (core dumped) ================================================================================== The static trace for gdb looked like: #0 0x080a77bd in fill_in_vptr_fieldno () #1 0x080a77f2 in fill_in_vptr_fieldno () #2 0x080a77f2 in fill_in_vptr_fieldno () #3 0x080a77f2 in fill_in_vptr_fieldno () #4 0x080a77f2 in fill_in_vptr_fieldno () #5 0x080a77f2 in fill_in_vptr_fieldno () #6 0x080a77f2 in fill_in_vptr_fieldno () #7 0x080a77f2 in fill_in_vptr_fieldno () #8 0x080a77f2 in fill_in_vptr_fieldno () #9 0x080a77f2 in fill_in_vptr_fieldno () #10 0x080a77f2 in fill_in_vptr_fieldno () #11 0x080a77f2 in fill_in_vptr_fieldno () #12 0x080a77f2 in fill_in_vptr_fieldno () #13 0x080a77f2 in fill_in_vptr_fieldno () #14 0x080a77f2 in fill_in_vptr_fieldno () #15 0x080a77f2 in fill_in_vptr_fieldno () #16 0x080a77f2 in fill_in_vptr_fieldno () #17 0x080a77f2 in fill_in_vptr_fieldno () #18 0x080a77f2 in fill_in_vptr_fieldno () #19 0x080a77f2 in fill_in_vptr_fieldno () #20 0x080a77f2 in fill_in_vptr_fieldno () [ etc. ] Just for fun, I tried compiling the same program with gcc 3.1 (prerelease) and I got the same coredump in gdb. Does anyone have any ideas as to what the problem could be? Thanks. -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@attbi.com