[kde-freebsd] area51 some problems

Raphael Kubo da Costa rakuco at FreeBSD.org
Mon Dec 9 22:27:02 UTC 2013


Schaich Alonso <alonsoschaich at fastmail.fm> writes:

> Am I right to assume you are using FreeBSD-10? lumiwa at gmail.com reported this
> about a month ago and I was able reproduce crashes running
> # nepomukctl status
> on 10 but not on 9. IIRC this was related to C++ global instance destruction
> order or something like that.

Interesting, I'm also able to reproduce the crash on my 11-CURRENT
system with KDE from git master. It really looks related to libcxxrt
being used instead of libstdc++ (which explains why it works on anything
< 10).

The backtrace looks like this:

#0  0x00000008023c6a2a in thr_kill () from /lib/libc.so.7
#1  0x000000080248d359 in abort () from /lib/libc.so.7
#2  0x0000000801d158e9 in __cxa_pure_virtual () from /lib/libcxxrt.so.1
#3  0x000000080095b898 in QTextCodec::fromUnicode (this=0x8044181f0, in=0x8044a099a, length=27, state=0x8044a2160) at /s/kde/src/build/qt4/src/corelib/../../include/QtCore/../../../../qt4/src/corelib/codecs/qtextcodec.h:118
#4  0x00000008009ca468 in QTextStreamPrivate::flushWriteBuffer (this=0x8044a2100) at /s/kde/src/qt4/src/corelib/io/qtextstream.cpp:674
#5  0x00000008009cb716 in QTextStream::~QTextStream (this=0x60b5e0 <out>) at /s/kde/src/qt4/src/corelib/io/qtextstream.cpp:1149
#6  0x0000000802469b4b in __cxa_finalize () from /lib/libc.so.7
#7  0x000000080241133c in exit () from /lib/libc.so.7
#8  0x00000000004028c6 in _start ()

Some quick investigation shows that QIconvCodec ends up being destroyed
before all the objects that use it, and at the point of the crash
there's a call to a pointer that used to be a QIconvCodec and is now
just a QTextCodec, and the method call goes to a pure virtual method.

To be honest, I'm not sure if this is related to the lots of iconv
changes that went into HEAD during the past few months or if it's just
libcxxrt-related (or even if it's a bug on FreeBSD at all, for that
matter).

Alonso, do you have a link to the thread you mentioned?


More information about the kde-freebsd mailing list