<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QT 5.14.2 crashes on Centos 7.9]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I installed QT 5.14.2 with the qt-opensource-linux-x64-5.14.2.run binary. I suppose what this binary file do is mainly extract and copy/paste, so my gcc version does not matter.</p>
<p dir="auto">When I start my app, it crashed right after the login window turns off. The gdb backtrace is the following.</p>
<p dir="auto">(gdb) bt<br />
#0  0x00007f0a01d294bc in malloc_consolidate () from /lib64/libc.so.6<br />
#1  0x00007f0a01d2a20e in _int_free () from /lib64/libc.so.6<br />
#2  0x00007f09ebf690c8 in QXcbBackingStoreImage::destroy(bool) ()<br />
from /opt/yadev/3rdParty/cpp/Nokia/Qt5.14.2/5.14.2/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5<br />
#3  0x00007f09ebf69c89 in QXcbBackingStore::~QXcbBackingStore() ()<br />
from /opt/yadev/3rdParty/cpp/Nokia/Qt5.14.2/5.14.2/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5<br />
#4  0x00007f09ebf69d39 in QXcbBackingStore::~QXcbBackingStore() ()<br />
from /opt/yadev/3rdParty/cpp/Nokia/Qt5.14.2/5.14.2/gcc_64/plugins/platforms/../../lib/libQt5XcbQpa.so.5<br />
#5  0x00007f0a03f2c22b in QBackingStore::~QBackingStore() () from /opt/yadev/3rdParty/cpp/Nokia/Qt5.14.2/5.14.2/gcc_64/lib/libQt5Gui.so.5<br />
#6  0x00007f0a046b7f27 in deleteBackingStore(QWidgetPrivate*) ()<br />
from /opt/yadev/3rdParty/cpp/Nokia/Qt5.14.2/5.14.2/gcc_64/lib/libQt5Widgets.so.5<br />
#7  0x00007f0a046b7fa3 in QWidgetPrivate::deleteTLSysExtra() ()<br />
from /opt/yadev/3rdParty/cpp/Nokia/Qt5.14.2/5.14.2/gcc_64/lib/libQt5Widgets.so.5<br />
#8  0x00007f0a046bd4f8 in QWidget::destroy(bool, bool) () from /opt/yadev/3rdParty/cpp/Nokia/Qt5.14.2/5.14.2/gcc_64/lib/libQt5Widgets.so.5<br />
#9  0x00007f0a046c5203 in QWidget::~QWidget() () from /opt/yadev/3rdParty/cpp/Nokia/Qt5.14.2/5.14.2/gcc_64/lib/libQt5Widgets.so.5<br />
#10 0x000000000044dc50 in main.cold ()<br />
#11 0x00007f0a01ccb555 in __libc_start_main () from /lib64/libc.so.6<br />
#12 0x000000000047a3e4 in _start ()</p>
<p dir="auto">I guess QT calls free in glibc, and the free function crashes. Is the free function called on a nullptr, or the glibc library is not compatible with QT 5.14.2？ The glibc version is 2.17 on Centos 7.9.</p>
<p dir="auto">Anyone could help me out? Thanks a lot.</p>
]]></description><link>https://forum.qt.io/topic/129463/qt-5-14-2-crashes-on-centos-7-9</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 04:57:23 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/129463.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Aug 2021 05:47:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QT 5.14.2 crashes on Centos 7.9 on Fri, 20 Aug 2021 06:15:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qqmj">@<bdi>QQMJ</bdi></a> said in <a href="/post/676351">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> said in <a href="/post/676126">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qqmj">@<bdi>QQMJ</bdi></a> said in <a href="/post/676107">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto">#9  0x00007f0a046c5203 in QWidget::~QWidget() () from /opt/yadev/3rdParty/cpp/Nokia/Qt5.14.2/5.14.2/gcc_64/lib/libQt5Widgets.so.5<br />
#10 0x000000000044dc50 in main.cold ()</p>
</blockquote>
<p dir="auto">It looks like you're deleting a widget? Can you show the code where you delete it?</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a> said in <a href="/post/676325">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qqmj">@<bdi>QQMJ</bdi></a> said in <a href="/post/676107">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto">Is the free function called on a nullptr, or the glibc library is not compatible with QT 5.14.2？ The glibc version is 2.17 on Centos 7.9.</p>
</blockquote>
<p dir="auto">I have run Qt 5.15 on CentOS 7 with GCC 7 (devtoolset-7). Widgets work fine -- no crashes.</p>
</blockquote>
<p dir="auto">I am using GCC 11, considering to try 7.</p>
</blockquote>
<p dir="auto">I have tried GCC 7.3. Everything worked fine. I think the problem could be related to libwrast. When I was using GCC 11, the binary complains could not load libwrast. This warning disappears after I switched to GCC 7.</p>
]]></description><link>https://forum.qt.io/post/676778</link><guid isPermaLink="true">https://forum.qt.io/post/676778</guid><dc:creator><![CDATA[QQMJ]]></dc:creator><pubDate>Fri, 20 Aug 2021 06:15:42 GMT</pubDate></item><item><title><![CDATA[Reply to QT 5.14.2 crashes on Centos 7.9 on Fri, 20 Aug 2021 02:38:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chrisw67">@<bdi>ChrisW67</bdi></a> said in <a href="/post/676352">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qqmj">@<bdi>QQMJ</bdi></a> said in <a href="/post/676107">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto">it crashed right after the login window turns off.</p>
</blockquote>
<p dir="auto">What is the "login window", and how does it related to your dlgMainWin?</p>
</blockquote>
<p dir="auto">They don't have any interaction.</p>
]]></description><link>https://forum.qt.io/post/676745</link><guid isPermaLink="true">https://forum.qt.io/post/676745</guid><dc:creator><![CDATA[QQMJ]]></dc:creator><pubDate>Fri, 20 Aug 2021 02:38:25 GMT</pubDate></item><item><title><![CDATA[Reply to QT 5.14.2 crashes on Centos 7.9 on Wed, 18 Aug 2021 07:23:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qqmj">@<bdi>QQMJ</bdi></a> said in <a href="/post/676107">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto">it crashed right after the login window turns off.</p>
</blockquote>
<p dir="auto">What is the "login window", and how does it related to your dlgMainWin?</p>
]]></description><link>https://forum.qt.io/post/676352</link><guid isPermaLink="true">https://forum.qt.io/post/676352</guid><dc:creator><![CDATA[ChrisW67]]></dc:creator><pubDate>Wed, 18 Aug 2021 07:23:37 GMT</pubDate></item><item><title><![CDATA[Reply to QT 5.14.2 crashes on Centos 7.9 on Wed, 18 Aug 2021 07:12:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a> said in <a href="/post/676126">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qqmj">@<bdi>QQMJ</bdi></a> said in <a href="/post/676107">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto">#9  0x00007f0a046c5203 in QWidget::~QWidget() () from /opt/yadev/3rdParty/cpp/Nokia/Qt5.14.2/5.14.2/gcc_64/lib/libQt5Widgets.so.5<br />
#10 0x000000000044dc50 in main.cold ()</p>
</blockquote>
<p dir="auto">It looks like you're deleting a widget? Can you show the code where you delete it?</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jksh">@<bdi>JKSH</bdi></a> said in <a href="/post/676325">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qqmj">@<bdi>QQMJ</bdi></a> said in <a href="/post/676107">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto">Is the free function called on a nullptr, or the glibc library is not compatible with QT 5.14.2？ The glibc version is 2.17 on Centos 7.9.</p>
</blockquote>
<p dir="auto">I have run Qt 5.15 on CentOS 7 with GCC 7 (devtoolset-7). Widgets work fine -- no crashes.</p>
</blockquote>
<p dir="auto">I am using GCC 11, considering to try 7.</p>
]]></description><link>https://forum.qt.io/post/676351</link><guid isPermaLink="true">https://forum.qt.io/post/676351</guid><dc:creator><![CDATA[QQMJ]]></dc:creator><pubDate>Wed, 18 Aug 2021 07:12:42 GMT</pubDate></item><item><title><![CDATA[Reply to QT 5.14.2 crashes on Centos 7.9 on Wed, 18 Aug 2021 05:21:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qqmj">@<bdi>QQMJ</bdi></a> said in <a href="/post/676107">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto">Is the free function called on a nullptr, or the glibc library is not compatible with QT 5.14.2？ The glibc version is 2.17 on Centos 7.9.</p>
</blockquote>
<p dir="auto">I have run Qt 5.15 on CentOS 7 with GCC 7 (devtoolset-7). Widgets work fine -- no crashes.</p>
]]></description><link>https://forum.qt.io/post/676325</link><guid isPermaLink="true">https://forum.qt.io/post/676325</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Wed, 18 Aug 2021 05:21:39 GMT</pubDate></item><item><title><![CDATA[Reply to QT 5.14.2 crashes on Centos 7.9 on Wed, 18 Aug 2021 03:22:36 GMT]]></title><description><![CDATA[<p dir="auto">I dont think I called delete operator explicitly. I have a class that inherits from QMainWindow, like the following:</p>
<p dir="auto">class dlgMainWin: public QMainWindow<br />
{<br />
Q_OBJECT<br />
public:<br />
explicit dlgMainWin(QWidget* parent = 0);<br />
~dlgMainWin();</p>
<p dir="auto">// other parts .......................<br />
}</p>
<p dir="auto">Constructor:</p>
<p dir="auto">dlgMainWin::dlgMainWin(QWidget* parent)<br />
: QMainWindow(parent)<br />
{<br />
std::cout &lt;&lt; "test constructor..." &lt;&lt; std::endl;</p>
<p dir="auto">// other parts .....................<br />
}</p>
<p dir="auto">The output line that I put on the very first line of constructor never show up, so I suspect the code crashed in the constructor of QMainWindow.</p>
]]></description><link>https://forum.qt.io/post/676321</link><guid isPermaLink="true">https://forum.qt.io/post/676321</guid><dc:creator><![CDATA[QQMJ]]></dc:creator><pubDate>Wed, 18 Aug 2021 03:22:36 GMT</pubDate></item><item><title><![CDATA[Reply to QT 5.14.2 crashes on Centos 7.9 on Tue, 17 Aug 2021 06:50:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qqmj">@<bdi>QQMJ</bdi></a> said in <a href="/post/676107">QT 5.14.2 crashes on Centos 7.9</a>:</p>
<blockquote>
<p dir="auto">#9  0x00007f0a046c5203 in QWidget::~QWidget() () from /opt/yadev/3rdParty/cpp/Nokia/Qt5.14.2/5.14.2/gcc_64/lib/libQt5Widgets.so.5<br />
#10 0x000000000044dc50 in main.cold ()</p>
</blockquote>
<p dir="auto">It looks like you're deleting a widget? Can you show the code where you delete it?</p>
]]></description><link>https://forum.qt.io/post/676126</link><guid isPermaLink="true">https://forum.qt.io/post/676126</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Tue, 17 Aug 2021 06:50:59 GMT</pubDate></item></channel></rss>