Public bug reported:

Binary package hint: kdbg


Hello,
I don't know if this is a kdbg related bug, or there is something related with 
my program. Please bear with me. It seems that when I open a file it goes all 
well and nice on the actual execution, while an inspection of the code throws a 
failure.
To help you replicate this problem, I appended to this report the content of 
the c++ source code and I attached the text file.
Thank you for your time,

version: kdbg 2.2.0 3.5.10, Kubuntu (karmic) 4:3.5.10.dfsg.1-2ubuntu7.2
(this is not the package from ubuntu repositories, 
but the one form kdbg website .deb package thanks to Ana Beatriz Guerrero Lopez)
OS: Linux (x86_64) release 2.6.31-19-generic (Kubuntu Karmic 9.10)
Compiler: Target: x86_64-linux-gnu

--asdf.cpp(the source file)-------------
#include <fstream>
#include <iostream>
#include <string>
using namespace std;

int main (){
                string data="input test";
                ifstream infile;
                cout << "Reading from the file" << endl;
infile.open(data.c_str());
if(!infile.is_open())
                throw ios_base::failure::failure("");
getline(infile, data);
while(!infile.eof()){
                getline(infile, data);
                cout << data << endl;}
infile.close();
return 0;}
----------------------------------------------------------------------
I compiled this file using the following command:
g++ -Wall -Wextra -pedantic -g -o run asdf.cpp
(version information g++ (Ubuntu 4.4.1-4ubuntu9) 4.4.1)
----------------------------------------------------------------------
----------------------------------------------------------------------
Thank you again, hope to hear from you soon.

** Affects: kdbg (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: 2.2.0 kdbg

-- 
step-by-step degugging goes on different path than a normal execution
https://bugs.launchpad.net/bugs/529289
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to