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

Bug#917066: marked as done (libqbscore1.12: log-level debug causes segfault)



Your message dated Sat, 22 Dec 2018 21:51:15 +0000
with message-id <E1gapAx-000HJN-Al@fasolo.debian.org>
and subject line Bug#917066: fixed in qbs 1.12.2+dfsg-2
has caused the Debian Bug report #917066,
regarding libqbscore1.12: log-level debug causes segfault
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.)


-- 
917066: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917066
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libqbscore1.12
Version: 1.12.1
Severity: normal
Tags: patch upstream


Enabling --log-level debug (or using --more-verbose) (in the build of
dewalls) causes the build to fail with a segfault.

This has been discussed upstream and a fix for the null pointer
dereference produced. Please apply the attached patch to the package until the next
release when you should be able to drop this patch. 

Details are in this thread:
https://lists.qt-project.org/pipermail/qbs/2018-December/002290.html
(some of it was not copied to the list)

You can reproduce/test it as follows: 

Install the debug version of libqbscore1.12. Get the dewalls package,
unpack it, cd into it and run dpkg-buildpackage so the 'deb' profile is set up.
then run
qbs build --settings-dir /tmp --log-level debug  --command-echo-mode command-line --no-install       
profile:deb modules.qbs.installRoot:/home/wookey/packages/cavewhere/dewalls/debian/dewalls-1.0.0/debian/tmp
project.libDir:lib/x86_64-linux-gnu config:qbs-build

You'll need to adjust the installRoot path.
         
it fails with:
qbs.moduleloader:
Resolving Probe at "/usr/share/qbs/modules/bundle/BundleModule.qbs:46:5"
qbs.moduleloader: Probe disabled; skipping
qbs.moduleloader: reset instance scope of module "Qt.core" in property "cxxFlags" of module ("cpp")
                                           
Thread 3 "QThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff72e89700 (LWP 16286)]
0x00007ffff78ca457 in QStringRef::toString() const () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
Description: Fix for segfault with --log-level debug
 A segfault can occur when the debug logging level is enabled if the 'sourceCode' value is null.

Origin: upstream https://lists.qt-project.org/pipermail/qbs/2018-December/002292.html
Bug-Debian: https://bugs.debian.org/
Reviewed-By: wookey@debian.org
Last-Update: 2018-12-21

--- qbs-1.12.2+dfsg.orig/src/lib/corelib/language/moduleloader.cpp
+++ qbs-1.12.2+dfsg/src/lib/corelib/language/moduleloader.cpp
@@ -2341,9 +2341,11 @@ void ModuleLoader::adjustDefiningItemsIn
                         << ", old defining item was " << v->definingItem()
                         << " with scope" << v->definingItem()->scope()
                         << ", new defining item is" << replacement
-                        << " with scope" << replacement->scope()
-                        << ", value source code is "
+                        << " with scope" << replacement->scope();
+                if (v->type() == Value::JSSourceValueType) {
+                    qCDebug(lcModuleLoader) << "value source code is"
                         << std::static_pointer_cast<JSSourceValue>(v)->sourceCode().toString();
+                }
                 replacement->setPropertyDeclaration(propName, decl);
                 replacement->setProperty(propName, v);
             } else {

--- End Message ---
--- Begin Message ---
Source: qbs
Source-Version: 1.12.2+dfsg-2

We believe that the bug you reported is fixed in the latest version of
qbs, 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 917066@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dmitry Shachnev <mitya57@debian.org> (supplier of updated qbs 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: SHA512

Format: 1.8
Date: Sun, 23 Dec 2018 00:32:11 +0300
Source: qbs
Binary: qbs qbs-common libqbscore1.12 libqbsqtprofilesetup1.12 qbs-dev qbs-examples qbs-doc qbs-doc-html
Architecture: source
Version: 1.12.2+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Dmitry Shachnev <mitya57@debian.org>
Description:
 libqbscore1.12 - Qbs core library
 libqbsqtprofilesetup1.12 - Qbs profile setup library
 qbs        - cross-platform build tool
 qbs-common - Qbs static files
 qbs-dev    - Qbs development files
 qbs-doc    - Qbs documentation
 qbs-doc-html - Qbs HTML documentation
 qbs-examples - examples for Qbs build tool
Closes: 917066
Changes:
 qbs (1.12.2+dfsg-2) unstable; urgency=medium
 .
   * Add a patch to fix segfault with --log-level debug (closes: #917066).
Checksums-Sha1:
 ad57131b5ab38b800a354afccc7e249099c89ec2 2582 qbs_1.12.2+dfsg-2.dsc
 eaa18e2bf2e112cb6ac0d54078646e5feffc42c0 28724 qbs_1.12.2+dfsg-2.debian.tar.xz
 9ca128600da53546f3c520ed6a0f5b2bac1b7594 11276 qbs_1.12.2+dfsg-2_source.buildinfo
Checksums-Sha256:
 dfd807a73fe5d8573c855e45cd044ea6c9d1e6af3dbe0615944cff70cea6d452 2582 qbs_1.12.2+dfsg-2.dsc
 01beb4deeadd95379bc63698a901d543b1a9fb151d778187ece30b325754d259 28724 qbs_1.12.2+dfsg-2.debian.tar.xz
 4e06330f6ae032b04caf65fe9b78449e944cb073cf3cd1e3df8b9996cb662475 11276 qbs_1.12.2+dfsg-2_source.buildinfo
Files:
 63f86bbd31ff4343c9cecc129b7f45be 2582 devel optional qbs_1.12.2+dfsg-2.dsc
 41743e8acaa439057622b9b8f473db94 28724 devel optional qbs_1.12.2+dfsg-2.debian.tar.xz
 5f33206a4e3e6bd86f8ee05a80538dfa 11276 devel optional qbs_1.12.2+dfsg-2_source.buildinfo

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

iQJHBAEBCgAxFiEE8kKZ/xu8kBi5BqTLYCaTbS8ciuAFAlwera0THG1pdHlhNTdA
ZGViaWFuLm9yZwAKCRBgJpNtLxyK4ASaD/9ujWvJ89x3douk7dcuG+DJTyEV2xum
YzY+wKfIaSt4vUrPZaVavJ8I5zbLXuSdoZtp12eVtatAwC1OPCljrj4OjF8na1SL
+TG+PCkilYfMz6dyEHpgo441ebf/Ptd5NCDUaw9nSwZNpT4E/kzxoKKN42ItyLT/
BAsWnGo13ukIos05ux2096C7No4cD+MdIf/D0GKwgtT2N1Vs9cg1MAwRWPuXNhka
T3w9+XMmIs8WotP64eb81OgR/LCZWv0k7/1wom0RlZ7DHZo08DRwLS+N7E2Si/Fe
nVbFIT6scnR9Ynu0Qy2xB9DBJv7C8SYZdEa7GXcuIw8RuGmhEH5poRPCKXtkplLq
uZoQmB7y6HQYayUw9k3xkmgEmqqxYQNHJ8RXoz+7G3Tk0YGBrHnWZtnmGEwbT0r1
pSIrpx6+l2vTnAMbEr04Yt6i3ok2FKVvjuY3RWeyH8XOIgxLupnXBS7WkGFWYPeL
j7WS26/6twBAYYLHCQqRTar2PrMbqqZAAzkIBtCIYjHbN16NXBqjDucwaX05J4EH
ecdPCGD/4Ekay3+ESt0+2a7gx0T1OToakfUl7sYMvOFYuxQlgMJBUE64aBq+UDE7
a9cNW87KQJtK+7hCX3/TAdw7Fm1tfFufncV7XRe3PtEyrk/4/dAmW6MTry+OoiP6
aKpyd1/w7GZiqA==
=0f15
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: