473,671 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GDB debugger problem

hello everyone,
i was debugging a simple program using gdb debugger and when in
function display
on the simple line
cout<<"this is the out put";
.........
........
......
there was no output from the program and the gdb promp(gdb>)
also disappered from here on and after sometime it showed something
like
"the program recived signal SIGINT" or something like that
and also while running the program this few lines were not displayed
(im using fedora core 8 and was on g++ on command line)
can anyone please tell what was wrong with that.

mohan
Apr 1 '08 #1
4 1400
mohi wrote:
i was debugging a simple program using gdb debugger and when in
function display
on the simple line
cout<<"this is the out put";
........
.......
.....
there was no output from the program and the gdb promp(gdb>)
also disappered from here on and after sometime it showed something
like
"the program recived signal SIGINT" or something like that
and also while running the program this few lines were not displayed
(im using fedora core 8 and was on g++ on command line)
can anyone please tell what was wrong with that.
Whatever is wrong with that, it has nothing to do with C++ language.
Consider asking in an appropriate gnu.* newsgroup or the newsgroup
for your platform.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Apr 1 '08 #2
On Apr 1, 9:45 am, mohi <mohangupt...@g mail.comwrote:
hello everyone,
i was debugging a simple program using gdb debugger and when in
function display
on the simple line
cout<<"this is the out put";
........
.......
.....
there was no output from the program and the gdb promp(gdb>)
also disappered from here on and after sometime it showed something
like
"the program recived signal SIGINT" or something like that
and also while running the program this few lines were not displayed
(im using fedora core 8 and was on g++ on command line)
can anyone please tell what was wrong with that.

mohan
Show more source. You have a segmentation fault in your code.
Apr 1 '08 #3
On Apr 1, 4:55 pm, "Victor Bazarov" <v.Abaza...@com Acast.netwrote:
mohi wrote:
i was debugging a simple program using gdb debugger and when in
function display
on the simple line
cout<<"this is the out put";
........
.......
.....
there was no output from the program and the gdb promp(gdb>)
also disappered from here on and after sometime it showed
something like
"the program recived signal SIGINT" or something like that
and also while running the program this few lines were not displayed
(im using fedora core 8 and was on g++ on command line)
can anyone please tell what was wrong with that.
Whatever is wrong with that, it has nothing to do with C++ language.
The fact that nothing was displayed probably does. At the very
least, his output isn't significant without a flush.
Consider asking in an appropriate gnu.* newsgroup or the
newsgroup for your platform.
While that's true too, I doubt that he'll get much help anywhere
with such a vague description.

FWIW: under Unix, SIGINT is normally what the program gets when
you enter control-C. Program errors more often result in
SIGSEGV or SIGBUS, or maybe SIGILL, SIGFPE or SIGSYS. But of
course, given an error wierd enough, just about anything can
happen.

--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Apr 2 '08 #4
On Apr 1, 4:57 pm, Christopher <cp...@austin.r r.comwrote:
On Apr 1, 9:45 am, mohi <mohangupt...@g mail.comwrote:
hello everyone,
i was debugging a simple program using gdb debugger and when in
function display
on the simple line
cout<<"this is the out put";
........
.......
.....
there was no output from the program and the gdb promp(gdb>)
also disappered from here on and after sometime it showed something
like
"the program recived signal SIGINT" or something like that
and also while running the program this few lines were not displayed
(im using fedora core 8 and was on g++ on command line)
can anyone please tell what was wrong with that.
Show more source. You have a segmentation fault in your code.
That would be SIGSEGV. Normally, SIGINT is generated by
control-C on the keyboard.

Since the poster didn't indicate what gdb commands he'd used
(not that that would be on topic here), it's impossible to say
what might be happening. One thing is clear, however: he didn't
ask for any output from the program, so it's not surprising that
he didn't get any. And of course, the gdb prompt only appears
when the program has stopped for some reason; if the program is
executing, gdb doesn't output a prompt.

--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Apr 2 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2370
by: Chuck Ritzke | last post by:
Hi, I've been using VS for a number of projects and the debugger has worked as advertised until now. I have a desktop solution with three projects, two of which are class modules. For some reason, in only one of them, the JIT debugger doesn't seem to be working. (At least I asssume this is a JIT debugger issue.) Anyways, in all my other projects an error causes the pop-up window with the break button option that breaks at the line...
25
4298
by: Jeff | last post by:
Use the MS Script Editor included free with MS Office 2002 and above, for debugging Internet Explorer (IE). This subject is of great interest to many JS developers, as there is no obvious, low cost way to do sophisticated debugging in IE6 other than to use the debugger described below, which is horribly documented otherwise. I feel debugging is an important aspect of projecting the useability of the language and needs to be made more...
7
1645
by: Piet Van Vlierberghe | last post by:
We are a software firm developing in C++ and we recently made the step from Microsoft Visual Studio 6 to Microsoft Visual Studio .NET 2003. We are really excited about the quality of the compiler; however there seem to be some issues with the debugger or the combination of our code with the debugger that makes debugging very slow and inconvenient. Since our efficiency in software development seriously decreased, we are looking for possible...
5
1490
by: Tom Edelbrok | last post by:
I have narrowed down a previous problem to the following more specific items: 1) I have my startup object in VB.NET (VS 2003) set to Sub Main(). 2) Inside of Sub Main() I do a "Application.Run(MyMainForm)" 3) Inside of MyMainForm_Load I create an object, ie: "poMyObj=new clsMyObj" 4) Within poMyObj I create a new System.Threading.Timer instance. I use a
2
2885
by: Chris Stiefeling | last post by:
Hi, I am experiencing a strange problem. I am reading and writing xml files via XmlDocument and XmlTextWriter. In the debugger everything works fine but outside the debugger (debug or release) I receive the following error: "The type initializer for "System.Xml.Schema.Validator" threw an exception." I wrote a small console app that contains the problem -- I've just attached the default class which gets run. Output outside the...
1
2858
by: Chris Stiefeling | last post by:
Hi, I am experiencing a strange problem. I am reading and writing xml files via XmlDocument and XmlTextWriter. In the debugger everything works fine but outside the debugger I receive the following error: "The type initializer for "System.Xml.Schema.Validator" threw an exception.". When running from the debugger (debug or release) no exception is thrown. I wrote a small console app that replicates the problem -- I've just attached...
3
2289
by: Doug | last post by:
I'm having problems w/ the VS2005 debugger with C#. It blows past any breakpoints in even the simplest "Hello World" console application. I can't do any step-by-step debugging. I've provided the code and debugging output later in this post. I've seen a number of threads with similar problems that I'll address below. The one that's the largest concern is this one, which talks about the same problem trying to use the debugger with SQL...
4
5935
by: aramsey | last post by:
I have a javascript program that works fine under Firefox and on IE when running XP, but is having a problem with IE running under Windows 2000 Pro. On my personal XP development machine I have the Microsoft Script Editor and I can set a breakpoint, step through code, inspect variables, etc... with no problem. On a machine where I am trying to debug this problem I am running Windows 2000 Pro with IE 6. I installed the Microsoft...
13
1498
by: Rainer Queck | last post by:
Hi NG, It looks like I have a problem with the debugger. Running the current project every thing "looks" fine, but if I set a breakpoint at a certain position in my code it takes the debugger very long to stop there. Then, if I try to step forward in my code I get the following error message (translated from German): "There are no symbols for the call list frame. The source code can not be displayed"
12
1598
by: colin | last post by:
Hi, Ive got a difference in results depending on wether I run my app in the debugger, or run it seperatly (or with <ctrl-f5>) the results in the debugger seem to be more correct, although the app isnt finished and theres still a lot of things it gets wrong. the processing is so complex its hard to determine where the difference can be occuring, its a visual display of 3d models, and theres a couple of surfaces
0
8472
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8390
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8909
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8596
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8667
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4399
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2048
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.