Hi,

I compiled the 1_6_x branch (from today) and lyx does not start (in fact it 
crashes, but hangs later in the segfault handler). The original crash 
backtrace is this:


gdb lyx
GNU gdb (GDB; openSUSE 11.1) 6.8.50.20081120-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.           
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"   
and "show warranty" for details.                                             
This GDB was configured as "x86_64-suse-linux".                              
For bug reporting instructions, please see:                                  
<http://bugs.opensuse.org/>...                                               
(gdb) run
Starting program: /usr/bin/lyx
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00000034f4661780 in __gnu_debug::_Safe_iterator_base::_M_detach_single() () 
from /usr/lib64/libstdc++.so.6
(gdb) bt
#0  0x00000034f4661780 in __gnu_debug::_Safe_iterator_base::_M_detach_single() 
() from /usr/lib64/libstdc++.so.6
#1  0x00000034f4662c5c in __gnu_debug::_Safe_sequence_base::_M_detach_all() () 
from /usr/lib64/libstdc++.so.6
#2  0x000000000050c2c9 in 
boost::detail::sp_counted_impl_p<boost::signals::detail::slot_base::data_t>::dispose
 
(
    this=<value optimized out>) at /usr/include/c++/4.3/debug/safe_base.h:185
#3  0x0000000000948c2b in GuiView (this=0x12a44f0, id=<value optimized out>)
    at /usr/include/boost/detail/sp_counted_base_nt.hpp:79
#4  0x000000000091607d in lyx::frontend::GuiApplication::createView 
(this=0x109a400,
    geometry_arg=<value optimized out>, autoShow=true, view_id=17844104) at 
GuiApplication.cpp:991
#5  0x000000000091d48a in lyx::frontend::GuiApplication::dispatch 
(this=0x109a400, c...@0x7fffffffa080)
    at GuiApplication.cpp:821
#6  0x00000000005b8ea9 in lyx::LyXFunc::dispatch (this=0x109a430, 
c...@0x7fffffffa080) at LyXFunc.cpp:1718
#7  0x000000000059b7bd in lyx::LyX::execCommands (this=0x7fffffffd610) at 
LyX.cpp:515
#8  0x000000000091c2c2 in lyx::frontend::GuiApplication::execBatchCommands 
(this=<value optimized out>)
    at GuiApplication.cpp:1153
#9  0x000000000091c5f0 in lyx::frontend::GuiApplication::qt_metacall 
(this=0x109a400,
    _c=QMetaObject::InvokeMetaMethod, _id=4259840, _a=0x7fffffffa330) at 
GuiApplication_moc.cpp:75
#10 0x00007ffff55476e2 in QMetaObject::activate (sender=0x12b3c40, 
from_signal_index=<value optimized out>,
    to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113
#11 0x00007ffff554d41f in QSingleShotTimer::timerEvent (this=0x12b3c40) at 
kernel/qtimer.cpp:298
#12 0x00007ffff5542533 in QObject::event (this=0x12b3c40, e=0x0) at 
kernel/qobject.cpp:1075
#13 0x00007ffff6f8db0d in QApplicationPrivate::notify_helper (this=0x109d100, 
receiver=0x12b3c40, e=0x7fffffffaad0)
    at kernel/qapplication.cpp:4056
#14 0x00007ffff6f95d9a in QApplication::notify (this=0x109a400, 
receiver=0x12b3c40, e=0x7fffffffaad0)
    at kernel/qapplication.cpp:4021
#15 0x00000000009176f8 in lyx::frontend::GuiApplication::notify 
(this=0x1408020, receiver=0x0, event=0x0)
    at GuiApplication.cpp:1276
#16 0x00007ffff553294c in QCoreApplication::notifyInternal (this=0x109a400, 
receiver=0x12b3c40,
    event=0x7fffffffaad0) at kernel/qcoreapplication.cpp:610
#17 0x00007ffff555fb60 in QTimerInfoList::activateTimers (this=0x10a6710) at 
kernel/qcoreapplication.h:213
#18 0x00007ffff555bddd in timerSourceDispatch (source=<value optimized out>) 
at kernel/qeventdispatcher_glib.cpp:165
#19 0x000000321123a0fb in g_main_context_dispatch () from 
/usr/lib64/libglib-2.0.so.0
#20 0x000000321123d8cd in ?? () from /usr/lib64/libglib-2.0.so.0
#21 0x000000321123da8b in g_main_context_iteration () from 
/usr/lib64/libglib-2.0.so.0
#22 0x00007ffff555bd3f in QEventDispatcherGlib::processEvents (this=0x105a240, 
flags=<value optimized out>)
    at kernel/qeventdispatcher_glib.cpp:327
#23 0x00007ffff7024fff in QGuiEventDispatcherGlib::processEvents 
(this=0x1408020, flags=<value optimized out>)
    at kernel/qguieventdispatcher_glib.cpp:202
#24 0x00007ffff55311d2 in QEventLoop::processEvents (this=<value optimized 
out>, flags={i = -21008})
    at kernel/qeventloop.cpp:149
#25 0x00007ffff55315a4 in QEventLoop::exec (this=0x7fffffffae30, flags={i = 
-20928}) at kernel/qeventloop.cpp:201
#26 0x00007ffff5533894 in QCoreApplication::exec () at 
kernel/qcoreapplication.cpp:888
#27 0x00000000005a2bce in lyx::LyX::exec (this=0x7fffffffd610, argc=<value 
optimized out>,
    argv=<value optimized out>) at LyX.cpp:343
#28 0x00000000004420ff in main (argc=1, argv=0x7fffffffd708) at main.cpp:46


and later hang in

(gdb) cont                                                                      
                                    
Continuing.                                                                     
                                    
^C                                                                              
                                    
Program received signal SIGINT, Interrupt.                                      
                                    
0x00000034efa0d434 in __lll_lock_wait () from /lib64/libpthread.so.0            
                                    
(gdb) bt
#0  0x00000034efa0d434 in __lll_lock_wait () from /lib64/libpthread.so.0
#1  0x00000034efa08cf0 in _L_lock_102 () from /lib64/libpthread.so.0    
#2  0x00000034efa085de in pthread_mutex_lock () from /lib64/libpthread.so.0
#3  0x00000034f466290f in 
__gnu_debug::_Safe_iterator_base::_M_attach(__gnu_debug::_Safe_sequence_base*, 
bool) ()
   from /usr/lib64/libstdc++.so.6                                               
                                 
#4  0x000000000049abf1 in 
__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<lyx::Buffer**, 
std::__norm::vector<lyx::Buffer*, std::allocator<lyx::Buffer*> > >, 
std::__debug::vector<lyx::Buffer*, std::allocator<lyx::Buffer*> > 
>::_Safe_iterator(__gnu_cxx::__normal_iterator<lyx::Buffer**, 
std::__norm::vector<lyx::Buffer*, std::allocator<lyx::Buffer*> > > const&, 
std::__debug::vector<lyx::Buffer*, std::allocator<lyx::Buffer*> > const*) ()
#5  0x00000000004c5ee2 in lyx::BufferList::emergencyWriteAll (this=0x109a568)
    at /usr/include/c++/4.3/debug/vector:164
#6  0x000000000059b277 in lyx::emergencyCleanup () at LyX.cpp:802
#7  0x000000000059b37f in error_handler (err_sig=11) at LyX.cpp:584
#8  <signal handler called>
#9  0x00000034f4661780 in __gnu_debug::_Safe_iterator_base::_M_detach_single() 
() from /usr/lib64/libstdc++.so.6
#10 0x00000034f4662c5c in __gnu_debug::_Safe_sequence_base::_M_detach_all() () 
from /usr/lib64/libstdc++.so.6
#11 0x000000000050c2c9 in 
boost::detail::sp_counted_impl_p<boost::signals::detail::slot_base::data_t>::dispose
 
(
    this=<value optimized out>) at /usr/include/c++/4.3/debug/safe_base.h:185
#12 0x0000000000948c2b in GuiView (this=0x12a44f0, id=<value optimized out>)
    at /usr/include/boost/detail/sp_counted_base_nt.hpp:79
#13 0x000000000091607d in lyx::frontend::GuiApplication::createView 
(this=0x109a400,
    geometry_arg=<value optimized out>, autoShow=true, view_id=17844104) at 
GuiApplication.cpp:991
#14 0x000000000091d48a in lyx::frontend::GuiApplication::dispatch 
(this=0x109a400, c...@0x7fffffffa080)
    at GuiApplication.cpp:821
#15 0x00000000005b8ea9 in lyx::LyXFunc::dispatch (this=0x109a430, 
c...@0x7fffffffa080) at LyXFunc.cpp:1718
#16 0x000000000059b7bd in lyx::LyX::execCommands (this=0x7fffffffd610) at 
LyX.cpp:515
#17 0x000000000091c2c2 in lyx::frontend::GuiApplication::execBatchCommands 
(this=<value optimized out>)
    at GuiApplication.cpp:1153
#18 0x000000000091c5f0 in lyx::frontend::GuiApplication::qt_metacall 
(this=0x109a400,
    _c=QMetaObject::InvokeMetaMethod, _id=4259840, _a=0x7fffffffa330) at 
GuiApplication_moc.cpp:75
#19 0x00007ffff55476e2 in QMetaObject::activate (sender=0x12b3c40, 
from_signal_index=<value optimized out>,
    to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113
#20 0x00007ffff554d41f in QSingleShotTimer::timerEvent (this=0x12b3c40) at 
kernel/qtimer.cpp:298
#21 0x00007ffff5542533 in QObject::event (this=0x12b3c40, e=0x0) at 
kernel/qobject.cpp:1075
#22 0x00007ffff6f8db0d in QApplicationPrivate::notify_helper (this=0x109d100, 
receiver=0x12b3c40, e=0x7fffffffaad0)
    at kernel/qapplication.cpp:4056
#23 0x00007ffff6f95d9a in QApplication::notify (this=0x109a400, 
receiver=0x12b3c40, e=0x7fffffffaad0)
    at kernel/qapplication.cpp:4021
#24 0x00000000009176f8 in lyx::frontend::GuiApplication::notify 
(this=0x1408020, receiver=0x0, event=0x0)
    at GuiApplication.cpp:1276
#25 0x00007ffff553294c in QCoreApplication::notifyInternal (this=0x109a400, 
receiver=0x12b3c40,
    event=0x7fffffffaad0) at kernel/qcoreapplication.cpp:610
#26 0x00007ffff555fb60 in QTimerInfoList::activateTimers (this=0x10a6710) at 
kernel/qcoreapplication.h:213
#27 0x00007ffff555bddd in timerSourceDispatch (source=<value optimized out>) 
at kernel/qeventdispatcher_glib.cpp:165
#28 0x000000321123a0fb in g_main_context_dispatch () from 
/usr/lib64/libglib-2.0.so.0
#29 0x000000321123d8cd in ?? () from /usr/lib64/libglib-2.0.so.0
#30 0x000000321123da8b in g_main_context_iteration () from 
/usr/lib64/libglib-2.0.so.0
#31 0x00007ffff555bd3f in QEventDispatcherGlib::processEvents (this=0x105a240, 
flags=<value optimized out>)
    at kernel/qeventdispatcher_glib.cpp:327
#32 0x00007ffff7024fff in QGuiEventDispatcherGlib::processEvents 
(this=0x1408020, flags=<value optimized out>)
    at kernel/qguieventdispatcher_glib.cpp:202
---Type <return> to continue, or q <return> to quit---
#33 0x00007ffff55311d2 in QEventLoop::processEvents (this=<value optimized 
out>, flags={i = -21008})
    at kernel/qeventloop.cpp:149
#34 0x00007ffff55315a4 in QEventLoop::exec (this=0x7fffffffae30, flags={i = 
-20928}) at kernel/qeventloop.cpp:201
#35 0x00007ffff5533894 in QCoreApplication::exec () at 
kernel/qcoreapplication.cpp:888
#36 0x00000000005a2bce in lyx::LyX::exec (this=0x7fffffffd610, argc=<value 
optimized out>,
    argv=<value optimized out>) at LyX.cpp:343
#37 0x00000000004420ff in main (argc=1, argv=0x7fffffffd708) at main.cpp:46


I'm using Qt4.5.2 (libqt4-4.5.2-57.1 from opensuse KDE repo). 

Any hints?

Thanks

Marc

Reply via email to