Processed: Re: Bug#923720: plasma-discover: Plasma-discover segfaults on Stretch

2019-03-18 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> reassign 923720 libappstreamqt2 0.10.6-2
Bug #923720 [plasma-discover] plasma-discover: Plasma-discover segfaults on 
Stretch
Bug reassigned from package 'plasma-discover' to 'libappstreamqt2'.
No longer marked as found in versions plasma-discover/5.8.5-3.
No longer marked as fixed in versions plasma-discover/5.10.5-1 and 
libappstreamqt2/0.11.3-1.
Bug #923720 [libappstreamqt2] plasma-discover: Plasma-discover segfaults on 
Stretch
Marked as found in versions appstream/0.10.6-2.
>
End of message, stopping processing here.

Please contact me if you need assistance.
-- 
923720: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923720
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#923720: plasma-discover: Plasma-discover segfaults on Stretch

2019-03-18 Thread Bernhard Übelacker
reassign 923720 libappstreamqt2 0.10.6-2



Processed (with 1 error): Re: Bug#923720: plasma-discover: Plasma-discover segfaults on Stretch

2019-03-18 Thread Debian Bug Tracking System
Processing control commands:

> reassign 923720 libappstreamqt2/0.10.6-2
Unknown command or malformed arguments to command.

> affects 923720 plasma-discover
Bug #923720 [plasma-discover] plasma-discover: Plasma-discover segfaults on 
Stretch
Added indication that 923720 affects plasma-discover
> fixed 923720 libappstreamqt2/0.11.3-1
Bug #923720 [plasma-discover] plasma-discover: Plasma-discover segfaults on 
Stretch
The source libappstreamqt2 and version 0.11.3-1 do not appear to match any 
binary packages
Marked as fixed in versions libappstreamqt2/0.11.3-1.
> fixed 923720 plasma-discover/5.10.5-1
Bug #923720 [plasma-discover] plasma-discover: Plasma-discover segfaults on 
Stretch
Marked as fixed in versions plasma-discover/5.10.5-1.
> tags 923720 + upstream fixed-upstream patch
Bug #923720 [plasma-discover] plasma-discover: Plasma-discover segfaults on 
Stretch
Added tag(s) upstream, patch, and fixed-upstream.

-- 
923720: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923720
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#923720: plasma-discover: Plasma-discover segfaults on Stretch

2019-03-18 Thread Bernhard Übelacker
Control: reassign 923720 libappstreamqt2/0.10.6-2
Control: affects 923720 plasma-discover
Control: fixed 923720 libappstreamqt2/0.11.3-1
Control: fixed 923720 plasma-discover/5.10.5-1
Control: tags 923720 + upstream fixed-upstream patch



Hello Everyone,
tried to get some more information from the backtrace.

I could not reproduce it but I think in this case method
AppStream::Pool::load got called with strerror being a null
pointer and for some reason the pool could not be loaded,
therefore line 77 was reached, trying to dereference strerror.

(gdb) list AppStream::Pool::load(QString*)   
71
72  bool Pool::load(QString* strerror)
73  {
74  g_autoptr(GError) error = nullptr;
75  bool ret = as_pool_load (d->m_pool, NULL, );
76  if (!ret && error) {
77  *strerror = QString::fromUtf8(error->message);  <<<
78  }
79  return ret;
80  }
81

This led to upstream fix in package appstream, available since 0.11.3: [1] [2]
Another fix was done in discover before, available since v5.10.5: [3] [4]

Therefore I assume this just affects Stretch.

Kind regards,
Bernhard


[1] https://github.com/ximion/appstream/pull/126
[2] 
https://github.com/ximion/appstream/commit/32f1445fd3f348598edd5e24e29ad3644c299639
[3] https://bugs.kde.org/show_bug.cgi?id=382916
[4] 
https://cgit.kde.org/discover.git/commit/?id=3a718124d45d60c49bb586e14d348f233178b34b

# Stretch amd64 qemu VM

apt update
apt dist-upgrade

apt install devscripts dpkg-dev systemd-coredump gdb xserver-xorg sddm 
plasma-desktop muon libappstreamqt2-dbgsym plasma-discover-dbgsym 
libglib2.0-0-dbg


systemctl start sddm



mkdir /tmp/source/appstream/orig -p
cd/tmp/source/appstream/orig
apt source appstream
cd



###

export DISPLAY=:0
# plasma-discover
gdb -q --args plasma-discover


set width 0
set pagination off
directory /tmp/source/appstream/orig/appstream-0.10.6
display/i $pc
break AppStream::Pool::load
y
run
disa 1.1
disa 1.3
disa 1.4
cont
bt






benutzer@debian:~$ gdb -q --args plasma-discover
Reading symbols from plasma-discover...Reading symbols from 
/usr/lib/debug/.build-id/8e/af6f71ec2d372a44c646c9eb0311f4bb45dd50.debug...done.
done.
(gdb) set width 0
(gdb) set pagination off
(gdb) directory /tmp/source/appstream/orig/appstream-0.10.6
Source directories searched: 
/tmp/source/appstream/orig/appstream-0.10.6:$cdir:$cwd
(gdb) display/i $pc
1: x/i $pc

(gdb) break AppStream::Pool::load
Function "AppStream::Pool::load" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (AppStream::Pool::load) pending.
(gdb) run
Starting program: /usr/bin/plasma-discover 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe66c2700 (LWP 2475)]
[New Thread 0x7fffe5a39700 (LWP 2476)]
[New Thread 0x7fffe5238700 (LWP 2478)]
[New Thread 0x7fffd278d700 (LWP 2479)]
[New Thread 0x7fffd1f8c700 (LWP 2480)]
[New Thread 0x7fffd178b700 (LWP 2481)]
[New Thread 0x7fffd0f8a700 (LWP 2482)]
[New Thread 0x7fffd0789700 (LWP 2483)]
[New Thread 0x7fffcff88700 (LWP 2484)]
[New Thread 0x7fffcf787700 (LWP 2485)]
[New Thread 0x7fffcef86700 (LWP 2486)]
[New Thread 0x7fffce01e700 (LWP 2487)]
[New Thread 0x7fffcd81c700 (LWP 2488)]
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami/GlobalDrawer.qml:213:9:
 QML Flickable: Binding loop detected for property "contentWidth"
invalid kns backend! "" because: "Couldn't find knsrc file: comic.knsrc"

Thread 1 "plasma-discover" hit Breakpoint 1, 0x7fffc77e3cd0 in 
AppStream::Pool::load()@plt () from 
/usr/lib/x86_64-linux-gnu/qt5/plugins/discover/packagekit-backend.so
1: x/i $pc
=> 0x7fffc77e3cd0 <_ZN9AppStream4Pool4loadEv@plt>:  jmpq   *0x2305ca(%rip)  
  # 0x7fffc7a142a0
(gdb) disa 1.1
(gdb) disa 1.3
(gdb) disa 1.4
(gdb) cont
Continuing.

Thread 1 "plasma-discover" hit Breakpoint 1, AppStream::Pool::load 
(this=this@entry=0x55dcd3c8, strerror=strerror@entry=0x0) at 
./qt/pool.cpp:73
73  {
1: x/i $pc
=> 0x7fffc738d020 :push   %r12
(gdb) next
75  bool ret = as_pool_load (d->m_pool, NULL, );
1: x/i $pc
=> 0x7fffc738d038 : mov0x10(%rdi),%rax
(gdb) 
74  g_autoptr(GError) error = nullptr;
1: x/i $pc
=> 0x7fffc738d03c : movq   $0x0,0x10(%rsp)
(gdb) 
75  bool ret = as_pool_load (d->m_pool, NULL, );
1: x/i $pc
=> 0x7fffc738d045 : test   %rax,%rax
(gdb) 
76  if (!ret && error) {
1: x/i $pc
=> 0x7fffc738d065 : jne0x7fffc738d0b8 


(gdb) bt
#0  0x7fffc738d065 in AppStream::Pool::load(QString*) 
(this=this@entry=0x55dcd3c8, strerror=strerror@entry=0x0) at 
./qt/pool.cpp:76
#1  0x7fffc738d147 in AppStream::Pool::load() 
(this=this@entry=0x55dcd3c8) at ./qt/pool.cpp:69
#2  0x7fffc77ea7f3 in PackageKitBackend::PackageKitBackend(QObject*) 
(this=0x55dcd3b0, parent=) at 

Bug#923720: plasma-discover: Plasma-discover segfaults on Stretch

2019-03-04 Thread CatusB
Package: plasma-discover
Version: 5.8.5-3
Severity: grave
Justification: renders package unusable

Hi,

Tried to run Plasma-Discover on new installation of Debian Stretch. Got 
segfault. Please see stracktrace below:

Application: Discover (plasma-discover), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff75c1ded80 (LWP 19975))]

Thread 5 (Thread 0x7ff738ea3700 (LWP 19985)):
#0  0x7ff7594b8bba in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x7ff7596dc93a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x7ff754201edd in g_main_context_prepare () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x7ff75420291b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x7ff754202b0c in g_main_context_iteration () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x7ff7596dd1eb in 
QEventDispatcherGlib::processEvents(QFlags) () 
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x7ff759686d1a in 
QEventLoop::exec(QFlags) () from 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x7ff7594b5093 in QThread::exec() () from 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x7ff7594b9d48 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x7ff7564024a4 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#10 0x7ff758aced0f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 4 (Thread 0x7ff7396a4700 (LWP 19984)):
#0  0x7ff758ac192d in read () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x7ff751eda073 in ?? () from 
/usr/lib/x86_64-linux-gnu/libnvidia-tls.so.390.87
#2  0x7ff754246d40 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x7ff7542024be in g_main_context_check () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x7ff754202994 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x7ff754202b0c in g_main_context_iteration () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x7ff7596dd1eb in 
QEventDispatcherGlib::processEvents(QFlags) () 
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x7ff759686d1a in 
QEventLoop::exec(QFlags) () from 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x7ff7594b5093 in QThread::exec() () from 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x7ff75ba95406 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#10 0x7ff7594b9d48 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x7ff7564024a4 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#12 0x7ff758aced0f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 3 (Thread 0x7ff7408b2700 (LWP 19979)):
#0  0x7ff751eda0b4 in ?? () from 
/usr/lib/x86_64-linux-gnu/libnvidia-tls.so.390.87
#1  0x7ff754246d40 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x7ff7542024be in g_main_context_check () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x7ff754202994 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x7ff754202b0c in g_main_context_iteration () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x7ff7596dd1eb in 
QEventDispatcherGlib::processEvents(QFlags) () 
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x7ff759686d1a in 
QEventLoop::exec(QFlags) () from 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x7ff7594b5093 in QThread::exec() () from 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x7ff759e3d6a5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x7ff7594b9d48 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x7ff7564024a4 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#11 0x7ff758aced0f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7ff7410b3700 (LWP 19978)):
#0  0x7ff758ac58bd in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x7ff7542029f6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x7ff754202b0c in g_main_context_iteration () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x7ff7596dd1eb in 
QEventDispatcherGlib::processEvents(QFlags) () 
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x7ff759686d1a in 
QEventLoop::exec(QFlags) () from 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x7ff7594b5093 in QThread::exec() () from 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x7ff75c31e6e5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x7ff7594b9d48 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x7ff7564024a4 in start_thread () from 
/lib/x86_64-linux-gnu/libpthread.so.0
#9  0x7ff758aced0f in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7ff75c1ded80 (LWP 19975)):
[KCrash Handler]
#6  0x7ff729c91094 in AppStream::Pool::load(QString*) () from 
/usr/lib/x86_64-linux-gnu/libAppStreamQt.so.2
#7  0x7ff72a0ee7f3 in PackageKitBackend::PackageKitBackend 
(this=0x555aa7a12560, parent=) at