Juergen Spitzmueller wrote:
> No, but I wonder why this isn't the case on Linux? Here, endpos is correct
> AFAICS.
With stdlib-debug enabled, I can reproduce it on Linux as well. Below is the
debug output. It crashes exactly here:
paragraph.h (260):
value_type getChar(pos_type pos) const { return text_[pos]; }
Has anyone an idea?
/usr/include/c++/4.1.0/debug/vector:199:error: attempt to subscript
container with out-of-bounds index 9, but container only holds 9
elements.
Objects involved in the operation:
sequence "this" @ 0x0x8dd3a7c {
type = N15__gnu_debug_def6vectorIwSaIwEEE;
}
Program received signal SIGABRT, Aborted.
[Switching to Thread -1223121232 (LWP 9873)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb71b47d0 in raise () from /lib/libc.so.6
#2 0xb71b5ea3 in abort () from /lib/libc.so.6
#3 0xb74438a4 in __gnu_debug::_Error_formatter::_M_error ()
from /usr/lib/libstdc++.so.6
#4 0x083f99c8 in __gnu_debug_def::vector<wchar_t, std::allocator<wchar_t>
>::operator[] (
this=0x8dd3a7c, __n=9) at /usr/include/c++/4.1.0/debug/vector:199
#5 0x084843f7 in lyx::(anonymous namespace)::numberOfHfills ([EMAIL
PROTECTED],
[EMAIL PROTECTED])
at paragraph.h:290
#6 0x0848c9b1 in lyx::LyXText::computeRowMetrics (this=0x8f6ea24,
[EMAIL PROTECTED], pit=0,
[EMAIL PROTECTED]) at text.C:1307
#7 0x0848d47a in lyx::LyXText::cursorX (this=0x8f6ea24, [EMAIL PROTECTED],
[EMAIL PROTECTED],
boundary=false) at text.C:2209
#8 0x0820b949 in lyx::bv_funcs::coordOffset ([EMAIL PROTECTED], [EMAIL
PROTECTED],
boundary=false)
at bufferview_funcs.C:201
#9 0x0820cbed in lyx::bv_funcs::getPos ([EMAIL PROTECTED], [EMAIL PROTECTED],
boundary=false)
at bufferview_funcs.C:221
#10 0x0825a43d in lyx::LCursor::getPos (this=0x8e176e8, [EMAIL PROTECTED],
[EMAIL PROTECTED])
at cursor.C:401
#11 0x0825a47a in lyx::LCursor::setTargetX (this=0x8e176e8) at cursor.C:938
#12 0x0806e11d in lyx::BufferView::mouseSetCursor (this=0x8e17510,
[EMAIL PROTECTED])
at BufferView.C:1231
#13 0x084b9d9e in lyx::LyXText::dispatch (this=0x8f6ea24, [EMAIL PROTECTED],
[EMAIL PROTECTED])
at text3.C:995
#14 0x086851a8 in lyx::InsetText::doDispatch (this=0x8f6e9fc, [EMAIL
PROTECTED],
[EMAIL PROTECTED])
at insettext.C:253
#15 0x085cfca0 in lyx::InsetBase::dispatch (this=0x8f6e9fc, [EMAIL PROTECTED],
[EMAIL PROTECTED])
at insetbase.C:132
#16 0x082615be in lyx::LCursor::dispatch (this=0xbfbd6b4c, [EMAIL PROTECTED])
at cursor.C:304
#17 0x08072bcf in lyx::BufferView::workAreaDispatch (this=0x8e17510,
[EMAIL PROTECTED])
at BufferView.C:1121
Jürgen