lmi
[Top][All Lists]
Advanced

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

[lmi] Re: A useless diagnostic, and a crash [resolved]


From: Greg Chicares
Subject: [lmi] Re: A useless diagnostic, and a crash [resolved]
Date: Thu, 06 May 2010 03:46:39 +0000
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

On 2010-05-06 03:29Z, Greg Chicares wrote:
[...]
>   $./input_test -a
> and it crashes.

False alarm. The problem was an out-of-bounds access:

    dict_map const& d = DBDictionary::instance().GetDictionary();
    dict_map::const_iterator i = d.find(k);
    if(i == d.end())
        {
        fatal_error()
            << "Key "
            << GetDBNames()[k].ShortName
SEGFAULT HERE:              ^

The reason why it successfully printed stuff from later lines is
that the fatal_error ostream isn't flushed until much later.




reply via email to

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