<?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[TsLib *** stack smashing detected *** Qt  6.10.2&#x2F;6.11]]></title><description><![CDATA[<p dir="auto">I have a BeagleBone Black  with the 2026-02-12 13.3 which has gcc 14.3 and glibc enabled -fstack-protector and when I cross-compile Qt6.10.2 or Qt6.11 and I want to use LinuxFB with tslib after the first touch I have a crash with 'stack smashing detected' segfault.<br />
I have found out that the problem is with the linker linking with a different version of tslib. But I can not prove that because my sysroot is up to date I am sure of that.<br />
But after some investigation I have found out that in qtbase/src/platformsupport/input/tslib/qtslib.cpp:61 ther is a ts_sample sample; variable which causes the problem.<br />
And after I moved this variable outside the function as:<br />
static ts_sample sample; before the function declaration,<br />
and stops being a stack variable.<br />
The problem goes away.</p>
<p dir="auto">How can I determine that the compiled <a href="http://libtslibplugin.so" target="_blank" rel="noopener noreferrer nofollow ugc">libtslibplugin.so</a> is compiled with which libts library ?<br />
If there is a way at all...</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://forum.qt.io/topic/164484/tslib-stack-smashing-detected-qt-6.10.2-6.11</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 07:41:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164484.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Mar 2026 08:44:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TsLib *** stack smashing detected *** Qt  6.10.2&#x2F;6.11 on Fri, 27 Mar 2026 09:07:18 GMT]]></title><description><![CDATA[<p dir="auto">I made some more digging and I found that it helps<br />
<em>qtbase/src/platformsupport/input/tslib/qtslib.cpp:58</em></p>
<pre><code>void QTsLibMouseHandler::readMouseData()
{
    static ts_sample sample;
    while (get_sample(m_dev, &amp;sample, m_rawMode)) {
</code></pre>
<p dir="auto">and also works this:</p>
<pre><code>void QTsLibMouseHandler::readMouseData()
{
    ts_sample sample;
    qCDebug(qLcTsLib) &lt;&lt; "hello";
    while (get_sample(m_dev, &amp;sample, m_rawMode)) {
</code></pre>
<p dir="auto">but why !?</p>
]]></description><link>https://forum.qt.io/post/837357</link><guid isPermaLink="true">https://forum.qt.io/post/837357</guid><dc:creator><![CDATA[sbela]]></dc:creator><pubDate>Fri, 27 Mar 2026 09:07:18 GMT</pubDate></item><item><title><![CDATA[Reply to TsLib *** stack smashing detected *** Qt  6.10.2&#x2F;6.11 on Thu, 26 Mar 2026 08:27:24 GMT]]></title><description><![CDATA[<p dir="auto">If I understand correctly you say that I have made a mistake with rsync from target to the sysroot which is on the host ?<br />
Or libts-bin/libts-dev which comes with the distribution have a mismatch ?</p>
]]></description><link>https://forum.qt.io/post/837338</link><guid isPermaLink="true">https://forum.qt.io/post/837338</guid><dc:creator><![CDATA[sbela]]></dc:creator><pubDate>Thu, 26 Mar 2026 08:27:24 GMT</pubDate></item><item><title><![CDATA[Reply to TsLib *** stack smashing detected *** Qt  6.10.2&#x2F;6.11 on Wed, 25 Mar 2026 12:28:05 GMT]]></title><description><![CDATA[<p dir="auto">It's for sure a <code>tslib</code>mismatch between host and target.</p>
<p dir="auto">This should work to show the current version.</p>
<pre><code>ts_print_raw --version
dpkg -l libts*
</code></pre>
]]></description><link>https://forum.qt.io/post/837320</link><guid isPermaLink="true">https://forum.qt.io/post/837320</guid><dc:creator><![CDATA[Axel Spoerl]]></dc:creator><pubDate>Wed, 25 Mar 2026 12:28:05 GMT</pubDate></item></channel></rss>