On Nov 16, 2006, at 12:46 PM, Peter Kümmel wrote:
Bennett Helm wrote:
On Nov 16, 2006, at 6:41 AM, Peter Kümmel wrote:
Bennett Helm wrote:
1.5.0 alpha crashes every time on quit on Intel Mac. Here's the
backtrace:
Program received signal SIGABRT, Aborted.
0x9003d1dc in kill ()
(gdb) bt
#0 0x9003d1dc in kill ()
#1 0x9010f2af in raise ()
#2 0x9010de02 in abort ()
#3 0x90b4039c in __gnu_cxx::__verbose_terminate_handler ()
#4 0x90b3e602 in __gxx_personality_v0 ()
#5 0x90b3e640 in std::terminate ()
#6 0x90b3ea93 in __cxa_pure_virtual ()
Maybe it is a variation of this problem:
"You probably already know that this error is caused by calling pure
virtual methods from the constructor or destructor of the base
class.
It must be an indirect call, because GCC will issue an error about
direct calls. "
So, does the attached patch help?
No: it won't compile!
Sorry, the patch was not complete, here a new one
and one with the missing part.
Thanks. The patch had the changes from Application.C twice, but it
compiles. However, I still get a crash on quit. Here's the new
backtrace:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000040
0x000e0b18 in lyx::frontend::Application::unregisterSocketCallback
(this=0xe827c08, fd=11) at Application.C:97
97 unregisterSocketCallback_impl(fd);
(gdb) bt
#0 0x000e0b18 in
lyx::frontend::Application::unregisterSocketCallback (this=0xe827c08,
fd=11) at Application.C:97
#1 0x0008db58 in lyx::LyXServerSocket::~LyXServerSocket
(this=0xe3c1570) at lyxsocket.C:80
#2 0x00663fa6 in boost::checked_delete<lyx::LyXServerSocket>
(x=0xe3c1570) at ../boost/boost/checked_delete.hpp:34
#3 0x00665c3d in lyx::LyX::Singletons::~Singletons (this=0xe319230)
at ../boost/boost/scoped_ptr.hpp:77
#4 0x00665cd6 in boost::checked_delete<lyx::LyX::Singletons>
(x=0xe319230) at ../boost/boost/checked_delete.hpp:34
#5 0x00665d02 in lyx::LyX::~LyX (this=0xe319220) at ../boost/boost/
scoped_ptr.hpp:77
#6 0x00665d46 in boost::checked_delete<lyx::LyX> (x=0xe319220) at ../
boost/boost/checked_delete.hpp:34
#7 0x00002471 in cxa_atexit_wrapper ()
#8 0x9000ff51 in __cxa_finalize ()
#9 0x9000fe58 in exit ()
#10 0x0000205e in _start ()
#11 0x00001f7d in start ()
Bennett