[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#916657: marked as done (qtscript-opensource-src: Segmentation fault in libQt5Script.so.5.11.2 building qbs)



Your message dated Wed, 26 Dec 2018 19:49:47 +0000
with message-id <E1gcFBb-000ITM-T1@fasolo.debian.org>
and subject line Bug#916657: fixed in qtscript-opensource-src 5.11.3+dfsg-2
has caused the Debian Bug report #916657,
regarding qtscript-opensource-src: Segmentation fault in libQt5Script.so.5.11.2 building qbs
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
916657: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916657
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: qtscript-opensource-src
Version: 5.11.2+dfsg-2
Severity: normal
Tags: patch

Dear Maintainer,

Please look at analysis for qbs build failure here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916626

The segementation fault occurs because the code in currentThreadStackBase()
incorrectly adds the stack size to the stack address returned by
pthread_attr_getstack().  The stack on hppa grows up.

With the attached patch, I had a successful build of qtscript-opensource-src:
https://buildd.debian.org/status/fetch.php?pkg=qtscript-opensource-src&arch=hppa&ver=5.11.2%2Bdfsg-2%2Bb1&stamp=1545000897&raw=0

The patch probably fixes the bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880034

Regards,
Dave Anglin

-- System Information:
Debian Release: buster/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 4.14.88+ (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Index: qtscript-opensource-src-5.11.2+dfsg/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp
===================================================================
--- qtscript-opensource-src-5.11.2+dfsg.orig/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp
+++ qtscript-opensource-src-5.11.2+dfsg/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.cpp
@@ -672,7 +672,12 @@ static inline void* currentThreadStackBa
         pthread_attr_destroy(&sattr);
         stackThread = thread;
     }
+#if defined(__hppa__)
+    // Stack grows up.
+    return static_cast<char*>(stackBase);
+#else
     return static_cast<char*>(stackBase) + stackSize;
+#endif
 #else
 #error Need a way to get the stack base on this platform
 #endif

--- End Message ---
--- Begin Message ---
Source: qtscript-opensource-src
Source-Version: 5.11.3+dfsg-2

We believe that the bug you reported is fixed in the latest version of
qtscript-opensource-src, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 916657@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org> (supplier of updated qtscript-opensource-src package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 26 Dec 2018 16:25:34 -0300
Source: qtscript-opensource-src
Binary: libqt5script5 libqt5scripttools5 qtscript5-dev qtscript5-examples qtscript5-doc qtscript5-doc-html
Architecture: source
Version: 5.11.3+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Description:
 libqt5script5 - Qt 5 script module
 libqt5scripttools5 - Qt 5 script tools module
 qtscript5-dev - Qt 5 script development files
 qtscript5-doc - Qt 5 script documentation
 qtscript5-doc-html - Qt 5 script HTML documentation
 qtscript5-examples - Qt 5 script examples
Closes: 916657
Changes:
 qtscript-opensource-src (5.11.3+dfsg-2) unstable; urgency=medium
 .
   [ Dmitry Shachnev ]
   * Fix stack base detection on hppa (closes: #916657).
     Thanks John David Anglin for the patch!
 .
   [ Simon Quigley ]
   * Change my email to tsimonq2@debian.org now that I am a Debian Developer.
   * Bump Standards-version to 4.3.0, no changes needed.
 .
   [ Lisandro Damián Nicanor Pérez Meyer ]
   * Upload to unstable.
Checksums-Sha1:
 247ae3bcd413de53b0d0a6e3442ab1ff72fff3ab 2784 qtscript-opensource-src_5.11.3+dfsg-2.dsc
 e8cc6d7cfbf0e240930f01e30dde3f99fecebe3a 16868 qtscript-opensource-src_5.11.3+dfsg-2.debian.tar.xz
 36b9d02c8766f936389077eab19e460deeee4a6d 6122 qtscript-opensource-src_5.11.3+dfsg-2_source.buildinfo
Checksums-Sha256:
 321f8303b2aa540868cb1c0a2d40f7491f09180c08b1841dc61c01b6223ac160 2784 qtscript-opensource-src_5.11.3+dfsg-2.dsc
 d680d2d6bcf92047c014210c617a13860b3532e721bb41eebd65646fdd11945f 16868 qtscript-opensource-src_5.11.3+dfsg-2.debian.tar.xz
 a300712a6275a6e2177e4e65730535c74cda39c2f8833a2f4ba1fcdaef59cdd0 6122 qtscript-opensource-src_5.11.3+dfsg-2_source.buildinfo
Files:
 c50547205f36089e67c10eea9b1a0a2b 2784 libs optional qtscript-opensource-src_5.11.3+dfsg-2.dsc
 09d47d5c7ce24bfdb2fd40a7c82fde5f 16868 libs optional qtscript-opensource-src_5.11.3+dfsg-2.debian.tar.xz
 f4f160ca5d6ebbd70fd8b50998e32640 6122 libs optional qtscript-opensource-src_5.11.3+dfsg-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCAAyFiEEEt36hKwjsrvwSzE8q2RfQGKGp9AFAlwj1dAUHGxpc2FuZHJv
QGRlYmlhbi5vcmcACgkQq2RfQGKGp9Bw1xAArNPlUrWRp8xywjyLBEfhDJR1pIcH
mRM/MkfUrym4E8+HkJ3YQENXwSbqgR+qkEynxNKBOzTaCyoU1zV9k6AMCScY9Zbl
FJXxWcJk1zxgwP/WxIzZqciIYsTkNHQQE0UrSAVmAREzUNe1E80mBq5xJDlv24Fb
zewVlABkWBKeEe/nquzVn5b1q4bptWugRcGZN9wshi5ZVccmLCE7CF5BbaASih0X
Z2sXMLRPQkkOoKo6YHmG71EV0TaHa5cFtkS2CDlFwQMcPBnsAiAHRaOFyjXaRuHh
UKYrFfstlqVZGMye+EgqEgfOZyu1Ow5znhKe91AR1kE5vZ0rdG3JNJ6k35w7+CST
NOuACNTSQKulBlw17o43eBLlCq5ZGP7n/14JiFO+4XIGCXRq9Nqg5BNe7ge8MOCU
AAwG0e+15fGvSqJeIZeEvy5aZe2/4g5KIky0T+dU0OsBhcTVOScNcEYd6ixsdtsY
0Mn3IOS31RXrOX7AXPpgwHSQSp+yXQAJxH5FWgklGmgdaI3ZPil2xZ9yK5a5Y3aZ
PL8hlMBk+Pl7hFytM+dzbCcK/HTthH3pZ4scqBK1BScdf8To/QCcYV98UoSHzQEE
n75YnnqWlQYwv6goZ1bMOIeBqxat5jmkv5ybUW7DBFdllK28qBlHvMkR04axIkQ3
pJ4/9cKZy9HM+ck=
=mzEV
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: