Georg Baum wrote:
Am Freitag, 26. Mai 2006 11:33 schrieb Helge Hafting:
When lyx-qt4 ends, I get:
lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting instructions in Help->Introduction and send us a bug report, if necessary. Thanks !
Bye.
Avbrutt (SIGABRT)

And no gmon.out because of this.  Please tell when the SIGSEGV is gone
form lyx-qt4, then I'll try the profiling again.

I get this too (both with qt 4.1.1 and 4.1.2). Backtrace:

[...]
Abdel, do you have any idea why this happens?

I have maybe an idea. Peter Kummel claims the following in his Cmake patch:

-------------------------------------------------------------------
and this fixes the crash on exit under windows, maybe
lyx_gui::unregister_socket_callback(fd_) is broken under windows.
-------------------------------------------------------------------


Index: src/lyxsocket.C
===================================================================
--- src/lyxsocket.C     (Revision 13929)
+++ src/lyxsocket.C     (Arbeitskopie)
@@ -75,7 +75,8 @@
 LyXServerSocket::~LyXServerSocket()
 {
        lyx_gui::unregister_socket_callback(fd_);
-       ::close(fd_);
+       if(fd_>0)
+               ::close(fd_);
        lyx::support::unlink(address_);
        lyxerr[Debug::LYXSERVER] << "lyx: Server socket quitting" << endl;



Reply via email to