🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Krishna Murthy Gudipati Mon, 04 Feb 2002 13:40
g++ & gdb core dumped !! Please help !!
#2767
Author: Krishna Murthy Gudipati
Date: Mon, 04 Feb 2002 13:40
191 lines
7792 bytes
This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C1ADAF.AA8576C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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

------=_NextPart_000_0009_01C1ADAF.AA8576C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello Friends,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I HAVE DOWNLOADED 'binutils' &amp; =
'gcc-3.0.3'=20
BINARIES FOR SOLARIS 7 AND<BR>SUCCESSFULLY INSTALLED THEM. TO TEST THE =
COMPILER=20
I HAVE WRITTEN A SMALL PROGRAM :</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>********----------------------------Begin-----------------------=
---------------</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>#include =
&lt;iostream.h&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>int main (){</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>cout &lt;&lt; " This is test program" =
&lt;&lt;=20
endl;<BR>return 0;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>********------------------------------End-----------------------=
---------------</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>WHEN COMPILED IT IS 'OK' (compiled) BUT =
WHEN I RUN=20
THE PROGRAM IT CORE DUMPED :</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>********---------------------------Begin------------------------=
---------------</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>student4%&gt;g++ -o testrun=20
test.cpp<BR>student4%&gt;./ testrun<BR>Segmentation Fault (core=20
dumped)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>********----------------------------End-------------------------=
---------------</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>THEN I HAVE DOWNLOADED 'gdb' AND =
INSTALLED=20
SUCCESSFULLY. AND WHEN TRIED TO TRACE<BR>THE PROGRAM EVEN 'gdb' ALSO =
CORE DUMPED=20
WHILE USING COMMANDS 'bt', 'where' :</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>********---------------------------Begin------------------------=
---------------</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>student4%&gt; g++ -o testrun -g=20
t.cpp<BR>student4%&gt; testrun<BR>Segmentation Fault (core=20
dumped)<BR>student4%&gt; gdb testrun core<BR>GNU gdb 4.18<BR>Copyright =
1998 Free=20
Software Foundation, Inc.<BR>GDB is free software, covered by the GNU =
General=20
Public License, and you are<BR>welcome to change it and/or distribute =
copies of=20
it under certain conditions.<BR>Type "show copying" to see the=20
conditions.<BR>There is absolutely no warranty for GDB.&nbsp; Type "show =

warranty" for details.<BR>This GDB was configured as=20
"sparc-sun-solaris2.7"...<BR>Core was generated by `testrun'.<BR>Program =

terminated with signal 11, Segmentation Fault.<BR>Reading symbols from=20
/usr/local/lib/libstdc++.so.3...done.<BR>Reading symbols from=20
/usr/lib/libm.so.1...done.<BR>Reading symbols from=20
/usr/local/lib/libgcc_s.so.1...done.<BR>Reading symbols from=20
/usr/lib/libc.so.1...done.<BR>Reading symbols from=20
/usr/lib/libdl.so.1...done.<BR>#0&nbsp; 0x72ea20 in ?? ()<BR>(gdb)=20
bt<BR>#0&nbsp; 0x72ea20 in ?? ()<BR>Segmentation Fault (core=20
dumped)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>********-----------------------------End------------------------=
---------------</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I COULD NOT UNDERSTAND WHAT IS THE =
PROBLEM AND HOW=20
&amp; WHERE TO START WITH TO<BR>SOLVE IT. PLEASE SUGGEST ME IN THIS=20
REGARD.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>tHaNkS IN ADVANCE !!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>regards,<BR>Krishna</FONT></DIV></BODY></HTML>

------=_NextPart_000_0009_01C1ADAF.AA8576C0--
Re: g++ & gdb core dumped !! Please help !!
#2601
Author: Andrew Cagney
Date: Thu, 07 Mar 2002 18:37
74 lines
3688 bytes
Hello,

A more current GDB is going to work better with GCC 3.0.3 
(http://sources.redhat.com/gdb/current/).  Can I sugges trying that and 
then, if things still fail, fileing a bug report 
(http://sources.redhat.com/gdb/bugs/).

Andrew

> 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads