Bennett Helm wrote: > On Nov 29, 2006, at 3:22 PM, Peter Kümmel wrote: > >> Does it also work when you remove the patch before the last one? > > Crash this time. Here's the backtrace:
OK, I've checked in both patches. But it's not a perfect solution, I've also added this comment: Index: lyx_main.C =================================================================== --- lyx_main.C (Revision 16108) +++ lyx_main.C (Arbeitskopie) @@ -396,9 +396,14 @@ support::os::internal_path(package().temp_dir() + "/lyxsocket"))); exit_status = pimpl_->application_->exec(); + + // FIXME: Do we still need this reset? + // I assume it is the reason for strange Mac crashs + // Test by reverting rev 16110 (Peter) // Kill the application object before exiting. This avoid crash // on exit on Linux. pimpl_->application_.reset(); + > > LyX::quit() called: 1 > LyX::quit() 1 > LyX::quit() 2 > LyX::quit() 3 > LyX::quit() 4 > LyX::quit() 5 > > Program received signal EXC_BAD_ACCESS, Could not access memory. > Reason: KERN_PROTECTION_FAILURE at address: 0x00000040 > 0x00091b65 in lyx::LyXServerSocket::~LyXServerSocket (this=0x1a31a900) > at lyxsocket.C:82 > 82 theApp->unregisterSocketCallback(fd_); > (gdb) bt > #0 0x00091b65 in lyx::LyXServerSocket::~LyXServerSocket > (this=0x1a31a900) at lyxsocket.C:82 > #1 0x0066c47a in boost::checked_delete<lyx::LyXServerSocket> > (x=0x1a31a900) at ../boost/boost/checked_delete.hpp:34 > #2 0x000691ed in lyx::LyX::quit (this=0xbffff954) at lyx_main.C:467 > #3 0x000692fe in lyx::LyX::~LyX (this=0xbffff954) at lyx_main.C:179 > #4 0x00002e95 in main (argc=1, argv=0xbffff9e4) at main.C:48 > > Bennett > > -- Peter Kümmel