Lars Gullik Bjønnes wrote:

> Alfredo Braunstein <[EMAIL PROTECTED]> writes:
> 
> | It wasn't, but it doesn't make a difference. I got the same bt. Then
> | retrying under gdb, I got also this one:
> 
> Actaully it makes a huge difference, no the line numbers and files
> match up.

Of course. I meant the same crash.

> And no signal raised...

This difference is for running under gdb. I get the same as before if I
don't:

#0  0xffffe002 in ?? ()
(gdb) bt
#0  0xffffe002 in ?? ()
#1  0x42028a73 in abort () from /lib/tls/libc.so.6
#2  0x08340783 in lyx::abort() () at /home/ab/lyx-cvs/src/support/abort.C:19
#3  0x080f460a in error_handler (err_sig=11)
    at /home/ab/lyx-cvs/src/lyx_main.C:208
#4  <signal handler called>
#5  0x0812c1a2 in Paragraph::getPositionOfInset(Inset const*) const (
    this=0x869dcc8, inset=0x86252f0) at /home/ab/lyx-cvs/src/paragraph.C:742
#6  0x0814d821 in LyXText::workWidth(Inset const*) const (this=0x869dcc8,
    inset=0x86252f0) at /home/ab/lyx-cvs/src/text.C:155

> 
> what is "it" here?


// returns -1 if inset not found
int Paragraph::getPositionOfInset(Inset const * inset) const
{
        // Find the entry.
        InsetList::const_iterator it = insetlist.begin();
        InsetList::const_iterator end = insetlist.end();
        for (; it != end; ++it)
                if (it->inset == inset)
                        return it->pos;
        return -1;
}

(gdb) p it
$1 =
{<iterator<std::random_access_iterator_tag,InsetList::InsetTable,int,const
InsetList::InsetTable*,const InsetList::InsetTable&>> = {<No data fields>},
  _M_current = 0x6e65704f}
(gdb) p *it
$3 = (const InsetTable &) @0x6e65704f: Cannot access memory at address
0x6e65704f


Regards, Alfredo



Reply via email to