Lars Gullik Bjønnes wrote:
Helge Hafting <[EMAIL PROTECTED]> writes:
Hmm... have you compiled without debugging info?
I tried again, with debugging info on amd64 and i386.
The i386 version have no problem. The amd64 version is even worse now:
create document, press a key, SIGABRT
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/local/bin/lyx
[Thread debugging using libthread_db enabled]
[New Thread 47087251059792 (LWP 12008)]
Qt: gdb: -nograb added to command-line options.
Use the -dograb option to enforce grabbing.
Menu warning: menu entry "Ren tekst som linjer..." does not contain
shortcut `a'.
Menu warning: menu entries "Avslutt|v" and "Versjonskontroll|V" share
the same shortcut.
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../include/c++/4.0.3/debug/safe_iterator.h:127:
error: attempt to copy-construct an iterator from a singular iterator.
Objects involved in the operation:
iterator "this" @ 0x0xef2330 {
type =
N11__gnu_debug14_Safe_iteratorIN10__gnu_norm14_List_iteratorI9ParagraphEEN15__gnu_debug_def4listIS3_SaIS3_EEEEE
(mutable iterator);
state = singular;
}
iterator "other" @ 0x0xef2300 {
type =
N11__gnu_debug14_Safe_iteratorIN10__gnu_norm14_List_iteratorI9ParagraphEEN15__gnu_debug_def4listIS3_SaIS3_EEEEE
(mutable iterator);
state = singular;
}
Program received signal SIGABRT, Aborted.
[Switching to Thread 47087251059792 (LWP 12008)]
0x00002ad35a9b6e20 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00002ad35a9b6e20 in raise () from /lib/libc.so.6
#1 0x00002ad35a9b82d0 in abort () from /lib/libc.so.6
#2 0x00002ad35a656a70 in __gnu_debug::_Error_formatter::_M_error ()
from /usr/lib/libstdc++.so.6
#3 0x0000000000446197 in _Safe_iterator (this=0xef2330, [EMAIL PROTECTED])
at safe_iterator.h:124
#4 0x000000000044626c in
std::__uninitialized_copy_aux<__gnu_cxx::__normal_iterator<__gnu_debug::_Safe_iterator<__gnu_norm::_List_iterator<Paragraph>,
__gnu_debug_def::list<Paragraph, std::allocator<Paragraph> > > const*,
__gnu_norm::vector<__gnu_debug::_Safe_iterator<__gnu_norm::_List_iterator<Paragraph>,
__gnu_debug_def::list<Paragraph, std::allocator<Paragraph> > >,
std::allocator<__gnu_debug::_Safe_iterator<__gnu_norm::_List_iterator<Paragraph>,
__gnu_debug_def::list<Paragraph, std::allocator<Paragraph> > > > > >,
__gnu_debug::_Safe_iterator<__gnu_norm::_List_iterator<Paragraph>,
__gnu_debug_def::list<Paragraph, std::allocator<Paragraph> > >*>
(__first={_M_current = 0xef2300}, __last=
{_M_current = 0xef2328}, __result=<value optimized out>)
at stl_uninitialized.h:86
#5 0x0000000000ef2300 in ?? ()
#6 0x00007ffffff4b01f in ?? ()
#7 0x0000000000446294 in
std::uninitialized_copy<__gnu_cxx::__normal_iterator<__gnu_debug::_Safe_iterator<__gnu_norm::_List_iterator<Paragraph>,
__gnu_debug_def::list<Paragraph, std::allocator<Paragraph> > > const*,
__gnu_norm::vector<__gnu_debug::_Safe_iterator<__gnu_norm::_List_iterator<Paragraph>,
__gnu_debug_def::list<Paragraph, std::allocator<Paragraph> > >,
std::allocator<__gnu_debug::_Safe_iterator<__gnu_norm::_List_iterator<Paragraph>,
__gnu_debug_def::list<Paragraph, std::allocator<Paragraph> > > > > >,
__gnu_debug::_Safe_iterator<__gnu_norm::_List_iterator<Paragraph>,
__gnu_debug_def::list<Paragraph, std::allocator<Paragraph> > >*>
(__first={_M_current = 0x2ee8}, __last={_M_current = 0x2ee8},
__result=0x6) at stl_uninitialized.h:113
#8 0x0000000000446ff9 in vector (this=0x7ffffff4b140, [EMAIL PROTECTED])
at stl_vector.h:235
#9 0x0000000000447023 in vector (this=0x2ee8, [EMAIL PROTECTED]) at vector:89
#10 0x000000000057e14e in Undo (this=0x7ffffff4b090) at undo.h:54
#11 0x000000000057e7ef in __gnu_norm::deque<Undo, std::allocator<Undo>
>::_M_push_front_aux (this=0xed9e20, [EMAIL PROTECTED]) at deque.tcc:370
#12 0x000000000057e889 in __gnu_debug_def::deque<Undo,
std::allocator<Undo> >::push_front (this=0x2ee8, [EMAIL PROTECTED]) at deque:217
#13 0x000000000057e89b in limited_stack<Undo>::push (this=0x2ee8, [EMAIL
PROTECTED])
at limited_stack.h:59
#14 0x000000000057cd89 in (anonymous namespace)::doRecordUndo (
kind=Undo::INSERT, [EMAIL PROTECTED], first_pit=0, last_pit=0,
[EMAIL PROTECTED], [EMAIL PROTECTED], isFullBuffer=false,
[EMAIL PROTECTED]) at undo.C:115
#15 0x000000000057d314 in (anonymous namespace)::recordUndo (
kind=Undo::INSERT, [EMAIL PROTECTED], first_pit=0, last_pit=0,
[EMAIL PROTECTED])
at undo.C:130
#16 0x000000000057d364 in recordUndo (kind=Undo::INSERT, [EMAIL PROTECTED],
first=0, last=0) at undo.C:237
#17 0x000000000056ac55 in LyXText::insertChar (this=0xeda120,
[EMAIL PROTECTED],
c=97 'a') at text.C:1107
#18 0x000000000057aed7 in TransManager::insertVerbatim (
this=<value optimized out>, [EMAIL PROTECTED], text=0xeda120)
at trans_mgr.C:270
#19 0x000000000057aff0 in TransManager::insert (this=0xd9f028,
[EMAIL PROTECTED], text=0xeda120) at trans_mgr.C:293
#20 0x000000000057b0bb in TransManager::TranslateAndInsert (this=0xd9f028,
c=<value optimized out>, text=0xeda120) at trans_mgr.C:262
#21 0x00000000005735e5 in LyXText::dispatch (this=0xeda120, [EMAIL PROTECTED],
[EMAIL PROTECTED]) at text3.C:1121
#22 0x00000000004c4d12 in LCursor::dispatch (this=0xd41708,
[EMAIL PROTECTED]) at cursor.C:280
#23 0x0000000000509932 in LyXFunc::dispatch (this=0xd702b0,
[EMAIL PROTECTED]) at lyxfunc.C:1579
#24 0x000000000050a148 in LyXFunc::processKeySym (this=0xd702b0,
[EMAIL PROTECTED], state=key_modifier::none) at lyxfunc.C:323
#25 0x000000000042965a in BufferView::Pimpl::workAreaKeyPress
(this=0xd414e0,
key=<value optimized out>, state=key_modifier::none)
at BufferView_pimpl.C:568
#26 0x000000000042fd3d in boost::_mfi::mf2<void, BufferView::Pimpl,
boost::shared_ptr<LyXKeySym>, key_modifier::state>::operator()
(this=0xdc24d0, p=0xd414e0,
a1=<value optimized out>, a2=key_modifier::none) at
mem_fn_template.hpp:252
#27 0x0000000000431cde in
boost::_bi::list3<boost::_bi::value<BufferView::Pimpl*>, boost::arg<1>,
boost::arg<2> >::operator()<boost::_mfi::mf2<void, BufferView::Pimpl,
boost::shared_ptr<LyXKeySym>, key_modifier::state>,
boost::_bi::list2<boost::shared_ptr<LyXKeySym>&, key_modifier::state&> >
(this=0xdc24e0,
[EMAIL PROTECTED], [EMAIL PROTECTED]) at bind.hpp:346
#28 0x0000000000431d17 in boost::_bi::bind_t<void,
boost::_mfi::mf2<void, BufferView::Pimpl, boost::shared_ptr<LyXKeySym>,
key_modifier::state>,
boost::_bi::list3<boost::_bi::value<BufferView::Pimpl*>, boost::arg<1>,
boost::arg<2> > >::operator()<boost::shared_ptr<LyXKeySym>,
key_modifier::state> (this=0x0,
a1=<value optimized out>, a2=<value optimized out>) at
bind_template.hpp:44
#29 0x0000000000431d2f in
boost::detail::function::void_function_obj_invoker2<boost::_bi::bind_t<void,
boost::_mfi::mf2<void, BufferView::Pimpl, boost::shared_ptr<LyXKeySym>,
key_modifier::state>,
boost::_bi::list3<boost::_bi::value<BufferView::Pimpl*>, boost::arg<1>,
boost::arg<2> > >, void, boost::shared_ptr<LyXKeySym>,
key_modifier::state>::invoke (function_obj_ptr=
{obj_ptr = 0x2ee8, const_obj_ptr = 0x2ee8, func_ptr = 0x2ee8, data
= "�}, [EMAIL PROTECTED], a1=key_modifier::none) at function_template.hpp:128
#30 0x00000000006d96c5 in boost::function2<void,
boost::shared_ptr<LyXKeySym>, key_modifier::state, std::allocator<void>
>::operator() (this=0xdc24a8,
[EMAIL PROTECTED], a1=key_modifier::none) at function_template.hpp:581
#31 0x00000000006d9d23 in
boost::signals::detail::call_bound2<void>::caller<boost::shared_ptr<LyXKeySym>,
key_modifier::state, boost::function<void
()(boost::shared_ptr<LyXKeySym>, key_modifier::state),
std::allocator<void> >
>::operator()<boost::signals::detail::connection_slot_pair>
(this=0x7ffffff4e610,
slot=<value optimized out>) at signal_template.hpp:119
#32 0x00000000006d9db6 in
boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound2<void>::caller<boost::shared_ptr<LyXKeySym>,
key_modifier::state, boost::function<void
()(boost::shared_ptr<LyXKeySym>, key_modifier::state),
std::allocator<void> > >,
boost::signals::detail::named_slot_map_iterator>::dereference
(this=0x7ffffff4e600) at slot_call_iterator.hpp:68
#33 0x00000000006d9ded in postfix_increment_proxy (this=<value optimized
out>,
[EMAIL PROTECTED]) at iterator_facade.hpp:143
#34 0x00000000006dacb3 in
boost::operator++<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound2<void>::caller<boost::shared_ptr<LyXKeySym>,
key_modifier::state, boost::function<void
()(boost::shared_ptr<LyXKeySym>, key_modifier::state),
std::allocator<void> > >,
boost::signals::detail::named_slot_map_iterator>,
boost::signals::detail::unusable, boost::single_pass_traversal_tag,
boost::signals::detail::unusable const&, long> ([EMAIL PROTECTED])
at iterator_facade.hpp:732
#35 0x00000000006dacdb in
boost::last_value<void>::operator()<boost::signals::detail::slot_call_iterator<boost::signals::detail::call_bound2<void>::caller<boost::shared_ptr<LyXKeySym>,
key_modifier::state, boost::function<void
()(boost::shared_ptr<LyXKeySym>, key_modifier::state),
std::allocator<void> > >,
boost::signals::detail::named_slot_map_iterator> > (this=<value
optimized out>,
[EMAIL PROTECTED], [EMAIL PROTECTED]) at last_value.hpp:43
#36 0x0000000000dc4b28 in ?? ()
#37 0x00000000006dae02 in boost::signal2<void,
boost::shared_ptr<LyXKeySym>, key_modifier::state,
boost::last_value<void>, int, std::less<int>, boost::function<void
()(boost::shared_ptr<LyXKeySym>, key_modifier::state),
std::allocator<void> > >::operator() (this=0x7ffffff4e600, a1=<value
optimized out>,
a2=<value optimized out>) at signal_template.hpp:350
#38 0x00000000006d8504 in QContentPane::keyeventTimeout (this=0xdccae0)
at QContentPane.C:288
#39 0x00000000006e27b4 in QContentPane::qt_invoke (this=0xdccae0, _id=47,
_o=0x7ffffff4e860) at QContentPane_moc.C:91
#40 0x00002ad35873f3a2 in QObject::activate_signal ()
from /usr/lib/libqt-mt.so.3
#41 0x00002ad35873ff32 in QObject::activate_signal ()
from /usr/lib/libqt-mt.so.3
#42 0x00002ad358aa904c in QTimer::timeout () from /usr/lib/libqt-mt.so.3
#43 0x00002ad358762c0d in QTimer::event () from /usr/lib/libqt-mt.so.3
#44 0x00002ad3586d9000 in QApplication::internalNotify ()
from /usr/lib/libqt-mt.so.3
#45 0x00002ad3586d9264 in QApplication::notify () from
/usr/lib/libqt-mt.so.3
#46 0x00002ad358669c6a in QApplication::sendEvent ()
from /usr/lib/libqt-mt.so.3
#47 0x00002ad3586cb5ce in QEventLoop::activateTimers ()
from /usr/lib/libqt-mt.so.3
#48 0x00002ad35867d489 in QEventLoop::processEvents ()
from /usr/lib/libqt-mt.so.3
#49 0x00002ad3586f0cde in QEventLoop::enterLoop () from
/usr/lib/libqt-mt.so.3
#50 0x00002ad3586f0be7 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#51 0x00002ad3586d7de6 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#52 0x000000000064fcb7 in lyx_gui::start ([EMAIL PROTECTED],
[EMAIL PROTECTED]) at lyx_gui.C:248
#53 0x00000000004fb7e8 in LyX::priv_exec (this=0xb1a3e0,
[EMAIL PROTECTED],
argv=0x7ffffff4f4f8) at lyx_main.C:280
#54 0x0000000000424df4 in main (argc=1, argv=0x7ffffff4f4f8) at main.C:47
My configure command:
./configure --prefix=/usr/local --with-frontend=qt --with-gnu-ld
--with-qt-includes=/usr/include/qt3 --enable-optimization=-Os
Helge Hafting