Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 2003 11:01:35 +0900
From:      Rob Lahaye <lahaye@snu.ac.kr>
To:        kde@FreeBSD.org, freebsd-questions@FreeBSD.org, flynn@energyhq.es.eu.org
Subject:   Re: [kde-freebsd] 
Message-ID:  <3F4427FF.1020904@snu.ac.kr>
In-Reply-To: <20030820152737.GA18746@huckfinn.arved.de>
References:  <3F439043.6090801@snu.ac.kr> <20030820152737.GA18746@huckfinn.arved.de>

next in thread | previous in thread | raw e-mail | index | archive | help

Tilman Linneweh wrote:
> 
> Well there is a seperate list for qt, see 
> http://freebsd.kde.org/resources.php#mail for details.

What news-server is this on?
I use news.gmane.org and news.easysw.com, but qt-freebsd is on neither.
Freebsd-questions and kde-freebsd are both on gmane!

>>I have FreeBSD 4.8 and Qt 3.1.2 installed "as is" from the portscollection.
>>
>>I built the document processor LyX against Qt, which comes by default as threaded
>>library on FreeBSD. So what I needed was:
>>
>>	$ setenv LDFLAGS "-pthread"
>>	$ configure
>>	$ make
> 
> 
> Why didn't you use the port? ( /usr/ports/print/lyx ). It usually takes care
> of these problems.

No it doesn't; the lyx port has the same problem!
I compiled LyX 1.3.2 from ports as "make WITH_QT=yes", to build LyX/Qt.
I get exactly the same error as described earlier:

>> When I start LyX, all works well, but when I exit LyX, the whole exit
>> goes fine, but at the very end I get in a console:message:
>>
>>	Mutex destroy failure: Device busy
>>
>>and a coredump on SIGSEGV.

See below for the actual gdb & backtrace and ldd output.

Is this a conflict between /usr/lib/libc.so.4 and /usr/lib/libc_r.so.4;
at least these two libs are the #0 and #1 backtraces in gdb.
Or what else is it?
	1. Have I misconfigured anything? Someone else seeing this?
	2. Is it a FreeBSD bug/problem?
	3. Is it a Qt bug/problem?
	4. Is it a LyX bug/problem?

I'm at a total loss here.
Any ideas?

Regards,
Rob.


$ gdb /usr/local/bin/lyx
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
(no debugging symbols found)...
(gdb) run
Starting program: /usr/local/bin/lyx
(no debugging symbols found)...(no debugging symbols found)...
[...]
Mutex destroy failure: Device busy
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x28fa0aac in .cerror () from /usr/lib/libc.so.4
(gdb) bt
#0  0x28fa0aac in .cerror () from /usr/lib/libc.so.4
#1  0x2901892b in _exit () from /usr/lib/libc_r.so.4
#2  0x28fa09ab in exit () from /usr/lib/libc.so.4
#3  0x84e529e in lyx_gui::exit ()
#4  0x825bd38 in QuitLyX ()
#5  0x82819ad in LyXFunc::dispatch ()
#6  0x827f62f in LyXFunc::dispatch ()
#7  0x84de2ec in QtView::activated ()
#8  0x855c96c in QtView::qt_invoke ()
#9  0x2890c395 in QObject::activate_signal () from /usr/X11R6/lib/libqt-mt.so.3
#10 0x2890c53e in QObject::activate_signal () from /usr/X11R6/lib/libqt-mt.so.3
#11 0x28ba5bbb in QPopupMenu::activated () from /usr/X11R6/lib/libqt-mt.so.3
#12 0x289d4e9b in QPopupMenu::actSig () from /usr/X11R6/lib/libqt-mt.so.3
#13 0x289d8c3f in QPopupMenu::mouseReleaseEvent ()
   from /usr/X11R6/lib/libqt-mt.so.3
#14 0x289378b9 in QWidget::event () from /usr/X11R6/lib/libqt-mt.so.3
#15 0x288b8bd6 in QApplication::internalNotify ()
   from /usr/X11R6/lib/libqt-mt.so.3
#16 0x288b8508 in QApplication::notify () from /usr/X11R6/lib/libqt-mt.so.3
#17 0x2886cedb in QETWidget::translateMouseEvent ()
   from /usr/X11R6/lib/libqt-mt.so.3
#18 0x2886b405 in QApplication::x11ProcessEvent ()
   from /usr/X11R6/lib/libqt-mt.so.3
#19 0x2887ccdf in QEventLoop::processEvents ()
   from /usr/X11R6/lib/libqt-mt.so.3
#20 0x288ca712 in QEventLoop::enterLoop () from /usr/X11R6/lib/libqt-mt.so.3
#21 0x288ca667 in QEventLoop::exec () from /usr/X11R6/lib/libqt-mt.so.3
#22 0x288b8d46 in QApplication::exec () from /usr/X11R6/lib/libqt-mt.so.3
#23 0x84e51a1 in lyx_gui::start ()
#24 0x8261e93 in LyX::LyX ()
#25 0x82c1afe in main ()
#26 0x816cfea in _start ()


$ ldd /usr/local/bin/lyx
/usr/local/bin/lyx:
        libqt-mt.so.3 => /usr/X11R6/lib/libqt-mt.so.3 (0x286f9000)
        libintl.so.4 => /usr/local/lib/libintl.so.4 (0x28cd8000)
        libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28ce0000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x28dce000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x28dd7000)
        libjpeg.so.9 => /usr/local/lib/libjpeg.so.9 (0x28ded000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x28e0b000)
        libstdc++.so.3 => /usr/lib/libstdc++.so.3 (0x28ec7000)
        libm.so.2 => /usr/lib/libm.so.2 (0x28f0c000)
        libc.so.4 => /usr/lib/libc.so.4 (0x28f27000)
        libc_r.so.4 => /usr/lib/libc_r.so.4 (0x28fc0000)
        libmng.so.1 => /usr/local/lib/libmng.so.1 (0x29075000)
        libpng.so.5 => /usr/local/lib/libpng.so.5 (0x290c8000)
        libz.so.2 => /usr/lib/libz.so.2 (0x290eb000)
        libGL.so.1 => /usr/X11R6/lib/libGL.so.1 (0x290f8000)
        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x29156000)
        libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x2916b000)
        libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x29173000)
        libfreetype.so.9 => /usr/local/lib/libfreetype.so.9 (0x29184000)
        libfontconfig.so.1 => /usr/X11R6/lib/libfontconfig.so.1 (0x291d4000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x291fa000)
        libXThrStub.so.6 => /usr/X11R6/lib/libXThrStub.so.6 (0x29208000)
        liblcms.so.1 => /usr/local/lib/liblcms.so.1 (0x2920a000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x29224000)
        libexpat.so.4 => /usr/local/lib/libexpat.so.4 (0x2926e000)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F4427FF.1020904>