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]

c++/1857: gdb-6.1, 6.3 crashes when calling function in xlC-link4ed executables (AIX 5.1)


>Number:         1857
>Category:       c++
>Synopsis:       gdb-6.1, 6.3 crashes when calling function in xlC-link4ed executables (AIX 5.1)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 01 16:48:03 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     Paul Pluzhnikov
>Release:        6.1, 6.3
>Organization:
>Environment:
AIX 5.1.0.0
vacpp.cmp.C 5.0.2.0 VisualAge C++ C Compiler
>Description:
gdb-6.1, 6.3 crashes when 'call foo()' is executed and the exe was linked with xlC. 
If the same object is linked with 'cc', no crash. 
gdb-5.2 also works fine.

>How-To-Repeat:
$ cat junk.c
int foo() { return 0; }
int main() { return 0; }

$ cc -g -c junk.c
$ xlC -g junk.o  ## if 'cc' is used here, gdb works fine

$ gdb-6.3 ./a.out
GNU gdb 6.3
Copyright 2004 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 "powerpc-ibm-aix5.1.0.0"...
(gdb) run

Program exited normally.
(gdb) b main
Breakpoint 1 at 0x10001f98: file junk.c, line 2.
(gdb) run
[Switching to Thread 1]

Breakpoint 1, main () at junk.c:2
2       int main() { return 0; }
(gdb) call foo()
Illegal instruction (core dumped)

>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]