bug-ddd
[Top][All Lists]
Advanced

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

Re: DDD 3.3.11 (i686-apple-darwin9.1.0) gets `Bus error' signal


From: Roger Mc Murtrie
Subject: Re: DDD 3.3.11 (i686-apple-darwin9.1.0) gets `Bus error' signal
Date: Fri, 28 Dec 2007 15:52:26 +1100

Abandoned debugging and leaving it to the experts.
I am 90% sure that the problem lies with Apple.
I am impatiently awaiting upgrades to both Leopard and Xcode!
No reason why GetFileDatabase shouldn't be called with a filename for a non-existent file?
std::ifstream is(filename.chars()); is probably capable of handling this situation.

Roger

On 27/12/2007, at 11:32 AM, Roger Mc Murtrie wrote:

Problem appears to be caused by GetFileDatabase of file ddd.C being called with the filename of a non-existent file.
filename of non-existant file: /Users/Roger/.ddd/init
(/Users/Roger/.ddd contains init#, log, sessions and themes all dated three days ago)
Result is null for the GetFileDatabase instruction: 
std::ifstream is(filename.chars());

When attempt is made to access is, crash  occurs (particularly for is.close).
I suggest that GetFileDatabase should check for filename of a non-existent file and take appropriate action.

I will now try and find out why GetFileDatabase is being called for a non-existent file, or why /Users/Roger/.ddd/init doesn't exist.

Roger



reply via email to

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