From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:53024) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLVNA-0000sm-Go for guix-patches@gnu.org; Fri, 18 Oct 2019 12:45:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLVN8-00072k-Fa for guix-patches@gnu.org; Fri, 18 Oct 2019 12:45:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42661) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLVN8-00072P-Au for guix-patches@gnu.org; Fri, 18 Oct 2019 12:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iLVN8-0003Fm-7q for guix-patches@gnu.org; Fri, 18 Oct 2019 12:45:02 -0400 Subject: [bug#37725] [PATCH] gnu: lxqt-config: Add libkscreen as propagated-inputs. Resent-Message-ID: Mime-Version: 1.0 Message-Id: <65f9ede0-d276-4b70-adf6-d536386d0985@www.fastmail.com> In-Reply-To: <87wod24bvw.fsf@gnu.org> References: <0204dc81-bfad-4efb-a88a-5f90e00678aa@www.fastmail.com> <38aa418c-7f64-452b-b49c-8f1b4d2d914e@www.fastmail.com> <87wod24bvw.fsf@gnu.org> Date: Fri, 18 Oct 2019 20:14:16 +0330 From: "Reza Alizadeh Majd" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 37725@debbugs.gnu.org Hi Ludo,=20 Sure, here is a minimal operating system configuration that we used for = a minimal LXQt desktop on Guix: ``` (use-modules (gnu) (gnu system nss) (gnu packages kde-plasma)) (use-service-modules desktop networking ssh sddm dbus) (use-package-modules ssh certs tls lxqt xorg) (operating-system (host-name "panther") (timezone "Asia/Tehran") (locale "en_US.utf8") ;; Boot in "legacy" BIOS mode (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))) (file-systems (cons (file-system (device (file-system-label "my-root")) (mount-point "/") (type "ext4")) %base-file-systems)) (users (cons (user-account (name "user") (password "1234") (group "users") (supplementary-groups '("wheel" "audio" "video")) (home-directory "/home/user")) %base-user-accounts)) (packages (cons* openssh nss-certs gnutls=20 lxqt lxqt-globalkeys =20 ;; commented in order to re-produce the issue ; libkscreen =20 %base-packages)) (services (cons* (sddm-service (sddm-configuration (minimum-uid 1000) (theme "elarun"))) (elogind-service) (udisks-service) (dbus-service) (colord-service) (service polkit-service-type) (service upower-service-type) (service dhcp-client-service-type) ;; network configuration (service openssh-service-type (openssh-configuration (port-number 22) (permit-root-login #t) (authorized-keys `(("panther" ,(local-file "/etc/vagrant.pub")) ("root" ,(local-file "/etc/vagrant.pub")))))) (service wpa-supplicant-service-type) %base-services)) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) ``` =20 =20 the issue occurs when I try to execute `lxqt-config-monitor`. here is also the GDB backtrace log that I received during application cr= ash: ``` root@panther /home/panther# cat monitor.txt=20 Starting program: /gnu/store/k09wlkkmllwyr5d41bzn2mn9kvylgszr-profile/bi= n/lxqt-config-monitor=20 [Thread debugging using libthread_db enabled] Using host libthread_db library "/gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigdd= fmq4-glibc-2.28/lib/libthread_db.so.1". [New Thread 0x7ffff3bfb700 (LWP 860)] [New Thread 0x7ffff32d4700 (LWP 861)] [Detaching after fork from child process 862] [New Thread 0x7fffea615700 (LWP 863)] [New Thread 0x7fffe9e14700 (LWP 864)] [New Thread 0x7fffe9613700 (LWP 865)] [New Thread 0x7fffe8e12700 (LWP 866)] Thread 1 "lxqt-config-mon" received signal SIGSEGV, Segmentation fault. 0x00007ffff7fa1b01 in KScreen::GetConfigOperation::start() () from /gnu/store/ds7ib4ndgy48ac0hxrrsgc6xc4lsccva-libkscreen-5.15.1/li= b/libKF5Screen.so.7 #0 0x00007ffff7fa1b01 in KScreen::GetConfigOperation::start() () from /gnu/store/ds7ib4ndgy48ac0hxrrsgc6xc4lsccva-libkscreen-5.15.1/li= b/libKF5Screen.so.7 #1 0x00007ffff7fbe48d in KScreen::ConfigOperation::qt_static_metacall(Q= Object*, QMetaObject::Call, int, void**) () from /gnu/store/ds7ib4ndgy48ac0hxrrsgc6xc4lsccva-libkscreen-5.15.1/li= b/libKF5Screen.so.7 #2 0x00007ffff6f28ad1 in QObject::event(QEvent*) () from /gnu/store/ahy= i57vlk48cmzsvxjwhxlxg2fdhxl9w-qtbase-5.11.3/lib/libQt5Core.so.5 #3 0x00007ffff788214c in QApplicationPrivate::notify_helper(QObject*, Q= Event*) () from /gnu/store/ahyi57vlk48cmzsvxjwhxlxg2fdhxl9w-qtbase-5.11.3/lib/li= bQt5Widgets.so.5 #4 0x00007ffff7889280 in QApplication::notify(QObject*, QEvent*) () from /gnu/store/ahyi57vlk48cmzsvxjwhxlxg2fdhxl9w-qtbase-5.11.3/lib/li= bQt5Widgets.so.5 #5 0x00007ffff6efd4f8 in QCoreApplication::notifyInternal2(QObject*, QE= vent*) () from /gnu/store/ahyi57vlk48cmzsvxjwhxlxg2fdhxl9w-qtbase-5.11.3/lib/li= bQt5Core.so.5 #6 0x00007ffff6efff2b in QCoreApplicationPrivate::sendPostedEvents(QObj= ect*, int, QThreadData*) () from /gnu/store/ahyi57vlk48cmzsvxjwhxlxg2fdhxl9w-qtbase-5.11.3/lib/li= bQt5Core.so.5 #7 0x00007ffff6f51643 in ?? () from /gnu/store/ahyi57vlk48cmzsvxjwhxlxg= 2fdhxl9w-qtbase-5.11.3/lib/libQt5Core.so.5 #8 0x00007ffff43ddb57 in g_main_context_dispatch () from /gnu/store/cgy= 82g6yv8l1chawgch47zh23b0jll3l-glib-2.56.3/lib/libglib-2.0.so.0 #9 0x00007ffff43ddd98 in g_main_context_iterate.isra () from /gnu/store= /cgy82g6yv8l1chawgch47zh23b0jll3l-glib-2.56.3/lib/libglib-2.0.so.0 #10 0x00007ffff43dde3c in g_main_context_iteration () from /gnu/store/cg= y82g6yv8l1chawgch47zh23b0jll3l-glib-2.56.3/lib/libglib-2.0.so.0 #11 0x00007ffff6f50caf in QEventDispatcherGlib::processEvents(QFlags) () from /gnu/store/ahyi57vlk48cmzsvxjwhxlxg2fdhxl9w-qtbase-5.11.3/lib/li= bQt5Core.so.5 #12 0x00007ffff3deb3c1 in ?? () from /gnu/store/ahyi57vlk48cmzsvxjwhxlxg2fdhxl9w-qtbase-5.11.3/lib/qt= 5/plugins/platforms/../../../libQt5XcbQpa.so.5 #13 0x00007ffff6efbe4a in QEventLoop::exec(QFlags) () from /gnu/store/ahyi57vlk48cmzsvxjwhxlxg2fdhxl9w-qtbase-5.11.3/lib/li= bQt5Core.so.5 #14 0x00007ffff6f04740 in QCoreApplication::exec() () from /gnu/store/ah= yi57vlk48cmzsvxjwhxlxg2fdhxl9w-qtbase-5.11.3/lib/libQt5Core.so.5 #15 0x000000000040f92c in main () Quit quit ``` Best,=20 Reza On Fri, Oct 18, 2019, at 1:24 PM, Ludovic Court=C3=A8s wrote: > Hi Reza, >=20 > "Reza Alizadeh Majd" skribis: >=20 > > maybe I could describe better about this patch file. > > > > `libkscreen` is used by `lxqt-config-monitor` to modify > > the desktop resolution in LXQt desktop.=20 > > > > the problem is that, during execution of `lxqt-config-monitor`=20 > > application crashes with "segmentation fault".=20 > > > > we had a review over `lxqt-config-monitor` source code,=20 > > but didn't find any unusual usage of `ksceen` library. just=20 > > a normal link during build process and binaries were made=20 > > successfully.=20 > > > > this issue might because of crash inside `libkscreen`, but we > > didn't review that yet.=20 > > > > so as a quick workaround we find that adding the `libkscreen` > > as a propagated input could fix this issue. >=20 > Thanks for explaining, I understand better now. >=20 > I think that it=E2=80=99s not satisfying to apply a workaround that we= don=E2=80=99t > understand. That is, intuitively, I see now reason why propagating > libkscreen would =E2=80=9Cfix=E2=80=9D a segfault. >=20 > Could you either (1) provide an =E2=80=98operating-system=E2=80=99 con= fig and > instructions to reproduce the problem, or (2) grab a backtrace of the > segfaulted program with GDB? >=20 > Let us know if you need guidance. >=20 > Thanks, > Ludo=E2=80=99. >