bug-ddd
[Top][All Lists]
Advanced

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

core dumped


From: mehmet
Subject: core dumped
Date: Fri, 14 Jan 2005 15:49:53 -0800
User-agent: Internet Messaging Program (IMP) 3.2.6

To Whom It May Concern,

I got the following message from DDD:

============================================================
Bus Error (core dumped)

Internal error (Bus Error).

Oops!  You have found a bug in DDD.

If you can reproduce this bug, please send a bug report
to <bug-ddd@gnu.org>, giving a subject like

    DDD 3.2.1 (sparc-sun-solaris2.7) gets `Bus Error' signal

To enable us to fix the bug, you should include the following
information:
* What you were doing to get this message.  Report all the facts.
* The contents of the `~/.ddd/log' file as generated by this session.
Please read also the section "Reporting Bugs" in the DDD manual.

We thank you for your support.

=====================================================================
I was working with two versions of the same small, simple piece of C++
code. The orignial version was meant to open a text file, count some
characters and words between delimiters and report the numbers.

When I gave it an input file with 30 capital letters and about twice
as many letters in total, it reported that I had 798 letters.

I invoked DDD, and put a breakpoint right before infile.open and
stepped through.

Here's what I got:

==================================================================
Starting program: /u/mehmet/MLfiles/a.out
Please enter the name of the possible
spam text file you wish to open: fakespamfile

Breakpoint 2, main () at feats.cpp:55
(gdb) step
std::ostream::operator<< (this=0xc0148, __pf=0x71fcc
<std::basic_ostream<char, std::char_traits<char> >& std::endl<char,
std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&)>) at ostream.tcc:70
70      in ostream.tcc
(gdb)
0x00071fd0 in std::endl<char, std::char_traits<char> > (__os=@0xc0148)
at ostream:519
519     ostream: No such file or directory.
        in ostream
(gdb)
==================================================================

I've tested this much of the program by making a short version that
does nothing more than open the file and print its contents on the
screen. Why does DDD say there is something wrong here when that much
of the program works?

The simpler test file (featest.cpp attached) is the one that caused
the core dump.

Let me know if you need more info.

Regards,

-Mehmet Vurkac
mehmet@cecs.pdx.edu


Attachment: feats.cpp
Description: Binary data

Attachment: featest.cpp
Description: Binary data

Attachment: fakespamfile
Description: Binary data


reply via email to

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