🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1160

GDB failure under SPARC Solaris 9

#1160
From: Bob Friesenhahn
Date: Thu, 16 Aug 2007 02:24
34 lines
2942 bytes
Using a program compiled using GCC 4.2.1, I am unable to debug using 
gdb 6.4 or gdb 6.6.  This happens with both versions:

% gdb utilities/gm
GNU gdb 6.4
Copyright 2005 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 "sparc-sun-solaris2.9"...
(gdb) b main
Breakpoint 1 at 0x20380: file /home/bfriesen/src/graphics/GraphicsMagick-head/utilities/gm.c, line 61.
(gdb) r
Starting program: /scratch/bfriesen/build/GraphicsMagick-16-static/utilities/gm
elfread.c:342: internal-error: sect_index_rodata not initialized
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
elfread.c:342: internal-error: sect_index_rodata not initialized
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
zsh: segmentation fault (core dumped)  gdb utilities/gm

I am able to debug a trivial program with gdb 6.4.

Ideas?

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Technical Details
Message-ID: <mailman.4847.1187248146.32220.bug-gdb@gnu.org>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news.isc.org!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f5053,740242dc4cc85a87,start
X-Google-Attributes: gidf5053,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news.isc.org!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Newsgroups: gnu.gdb.bug
Subject: GDB failure under SPARC Solaris 9
Date: Wed, 15 Aug 2007 21:24:51 -0500 (CDT)
Lines: 37
Approved: bug-gdb@gnu.org
Message-ID: <mailman.4847.1187248146.32220.bug-gdb@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Trace: news.Stanford.EDU 1187248147 26861 199.232.76.165 (16 Aug 2007 07:09:07 GMT)
X-Complaints-To: news@news.stanford.edu
To: bug-gdb@gnu.org
Envelope-to: bug-gdb@gnu.org
X-X-Sender: bfriesen@blade.simplesystems.org
X-Detected-Kernel: Solaris 9
X-Mailman-Approved-At: Thu, 16 Aug 2007 03:09:05 -0400
X-BeenThere: bug-gdb@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-gdb>
List-Post: <mailto:bug-gdb@gnu.org>
List-Help: <mailto:bug-gdb-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=subscribe>