Andreas Vox wrote:
> For me it's more a kind of bug aid ;-) It's like having lots of
> "Quit without saving" buttons in the document.

Nonsense. lyxbreaker calls BOOST_ASSERT which calls assertion_failed 
(src/boost.C) which calls emergencyCleanup which saves your data.

> When is it supposed to trigger? Only when I click on a preview image
> or also on other occasions?
> Isn't there a way to disable it?

Yes. Fix the underlying bug which is whatever lead to the assert in the 
first place.

Ie, André is saying that the execution path looks like:

CoordCacheBase::check(some stuff) {
    if (some stuff is invalid)
        lyxbreaker(some stuff);
}

Which means that it's dead easy to set a break point in gdb. Any entry 
into lyxbreaker is automatically invalid, so stop there and have a look at 
the execution path to that point.

Try it yourself:
gdb ./lyx
(gdb) break lyxbreaker
Breakpoint 1 at 0x120132a34: file ostream, line 193.
(gdb) run

Make it crash and now type
(gdb) where
(gdb) backtrace

-- 
Angus

Reply via email to