bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ & gdb core dumped !! Please help !!


From: Krishna Murthy Gudipati
Subject: g++ & gdb core dumped !! Please help !!
Date: Mon, 4 Feb 2002 19:10:53 +0530

Hello Friends,
 
I HAVE DOWNLOADED 'binutils' & 'gcc-3.0.3' BINARIES FOR SOLARIS 7 AND
SUCCESSFULLY INSTALLED THEM. TO TEST THE COMPILER I HAVE WRITTEN A SMALL PROGRAM :
 
********----------------------------Begin--------------------------------------
 
#include <iostream.h>
 
int main (){
 
cout << " This is test program" << endl;
return 0;
 
}
 
********------------------------------End--------------------------------------
 
WHEN COMPILED IT IS 'OK' (compiled) BUT WHEN I RUN THE PROGRAM IT CORE DUMPED :
 
********---------------------------Begin---------------------------------------
 
student4%>g++ -o testrun test.cpp
student4%>./ testrun
Segmentation Fault (core dumped)
 
********----------------------------End----------------------------------------
 
THEN I HAVE DOWNLOADED 'gdb' AND INSTALLED SUCCESSFULLY. AND WHEN TRIED TO TRACE
THE PROGRAM EVEN 'gdb' ALSO CORE DUMPED WHILE USING COMMANDS 'bt', 'where' :
 
********---------------------------Begin---------------------------------------
 
student4%> g++ -o testrun -g t.cpp
student4%> testrun
Segmentation Fault (core dumped)
student4%> gdb testrun core
GNU gdb 4.18
Copyright 1998 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.7"...
Core was generated by `testrun'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/local/lib/libstdc++.so.3...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
#0  0x72ea20 in ?? ()
(gdb) bt
#0  0x72ea20 in ?? ()
Segmentation Fault (core dumped)
 
********-----------------------------End---------------------------------------
 
I COULD NOT UNDERSTAND WHAT IS THE PROBLEM AND HOW & WHERE TO START WITH TO
SOLVE IT. PLEASE SUGGEST ME IN THIS REGARD.
 
tHaNkS IN ADVANCE !!
 
regards,
Krishna

reply via email to

[Prev in Thread] Current Thread [Next in Thread]