This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/1466: Core dump when debugging binaries produced by sun cc


>Number:         1466
>Category:       gdb
>Synopsis:       Core dump when debugging binaries produced by sun cc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 26 18:48:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     rrenaud@nbcs.rutgers.edu
>Release:        gdb-6.0
>Organization:
>Environment:
Solaris 9
>Description:
GDB segfaults upon trying to debug even trivial programs created by sun cc.  It fails for both 32 and 64 bit binaries.  Binaries produced by gcc are fine, however.
>How-To-Repeat:
solaris9-sparc64:~/gdb_tests$ cat boring.c
#include <stdio.h>

int main() { 
  int i = 0;
  for (; i < 10; ++i) {
    printf("%d\n", i);
  }

  return 5; }
solaris9-sparc64:~/gdb_tests$ /opt/SUNWspro/bin/
Display all 106 possibilities? (y or n)
solaris9-sparc64:~/gdb_tests$ /opt/SUNWspro/bin/cc -g -xs boring.c -o boring_cc_
32 
solaris9-sparc64:~/gdb_tests$ gdb boring_cc_32 
GNU gdb 6.0
Copyright 2003 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"...Illegal Instruction (core du
mped)
solaris9-sparc64:~/gdb_tests$ /opt/SUNWspro/bin/cc -g -xs -xarch=v9 boring.c -o 
boring_cc_64 
solaris9-sparc64:~/gdb_tests$ /usr/local/bin/sparcv9/gdb boring_cc_64 
GNU gdb 6.0
Copyright 2003 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"...Segmentation Fault (core dum
ped)
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]