Bug 1398291

Summary: [abrt] hplip: std::__atomic_base<QtSharedPointer::ExternalRefCountData*>::load(std::memory_order) const(): python3.5 killed by SIGSEGV
Product: [Fedora] Fedora Reporter: kakoskin
Component: hplipAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: jpopelka, twaugh, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/cd6ae35e3ff2bae00da47f4cafc61cf2c0dcf0f2
Whiteboard: abrt_hash:da0352d4ccbab8c28d3303c9698f9e0bbdad91cf;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-24 12:09:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages
none
Cups error log while reprodusing the bug.
none
hp-check output while printer not connected
none
hp-check output while printer connected
none
hp-probe output while printer not connected
none
hp-probe output while printer connected
none
hp-setup output while printer connected, not creating new queue
none
hp-setup output while printer connected, attempting to create a new queue
none
hp-setup output while printer not connected none

Description kakoskin 2016-11-24 11:58:35 UTC
Description of problem:
I was reproducing bug https://bugzilla.redhat.com/show_bug.cgi?id=1397868 with requested scratch build. Instead of getting the same problem I hit this bug.

Version-Release number of selected component:
hplip-3.16.10-2.fc25

Additional info:
reporter:       libreport-2.8.0
backtrace_rating: 4
cmdline:        /usr/bin/python3 /usr/bin/hp-setup --gui --remove --device=hp:/usb/HP_LaserJet_Professional_P1102?serial=000000000Q82J95HPR1a
crash_function: std::__atomic_base<QtSharedPointer::ExternalRefCountData*>::load(std::memory_order) const
executable:     /usr/bin/python3.5
global_pid:     3579
kernel:         4.8.8-300.fc25.x86_64
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 std::__atomic_base<QtSharedPointer::ExternalRefCountData*>::load(std::memory_order) const at /usr/include/c++/6.1.1/bits/atomic_base.h:713
 #1 std::atomic<QtSharedPointer::ExternalRefCountData*>::load(std::memory_order) const at /usr/include/c++/6.1.1/atomic:416
 #2 QAtomicOps<QtSharedPointer::ExternalRefCountData*>::load<QtSharedPointer::ExternalRefCountData*>(std::atomic<QtSharedPointer::ExternalRefCountData*> const&) at ../../src/corelib/arch/qatomic_cxx11.h:103
 #3 QBasicAtomicPointer<QtSharedPointer::ExternalRefCountData>::load() const at ../../src/corelib/thread/qbasicatomic.h:235
 #4 QtSharedPointer::ExternalRefCountData::getAndRef(QObject const*) at tools/qsharedpointer.cpp:1337
 #5 QWeakPointer<QObject>::QWeakPointer<QWindow>(QWindow*, bool) at ../../src/corelib/tools/qsharedpointer_impl.h:723
 #6 QPointer<QWindow>::QPointer(QWindow*) at ../../src/corelib/kernel/qpointer.h:71
 #7 QWindowSystemInterfacePrivate::UserEvent::UserEvent(QWindow*, unsigned long, QWindowSystemInterfacePrivate::EventType) at kernel/qwindowsysteminterface_p.h:210
 #8 QWindowSystemInterfacePrivate::InputEvent::InputEvent(QWindow*, unsigned long, QWindowSystemInterfacePrivate::EventType, QFlags<Qt::KeyboardModifier>) at kernel/qwindowsysteminterface_p.h:222
 #9 QWindowSystemInterfacePrivate::KeyEvent::KeyEvent(QWindow*, unsigned long, QEvent::Type, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) at kernel/qwindowsysteminterface_p.h:268

Comment 1 kakoskin 2016-11-24 11:58:42 UTC
Created attachment 1223818 [details]
File: backtrace

Comment 2 kakoskin 2016-11-24 11:58:43 UTC
Created attachment 1223819 [details]
File: cgroup

Comment 3 kakoskin 2016-11-24 11:58:45 UTC
Created attachment 1223820 [details]
File: core_backtrace

Comment 4 kakoskin 2016-11-24 11:58:47 UTC
Created attachment 1223821 [details]
File: dso_list

Comment 5 kakoskin 2016-11-24 11:58:48 UTC
Created attachment 1223822 [details]
File: environ

Comment 6 kakoskin 2016-11-24 11:58:50 UTC
Created attachment 1223823 [details]
File: exploitable

Comment 7 kakoskin 2016-11-24 11:58:51 UTC
Created attachment 1223824 [details]
File: limits

Comment 8 kakoskin 2016-11-24 11:58:54 UTC
Created attachment 1223825 [details]
File: maps

Comment 9 kakoskin 2016-11-24 11:58:55 UTC
Created attachment 1223826 [details]
File: mountinfo

Comment 10 kakoskin 2016-11-24 11:58:57 UTC
Created attachment 1223827 [details]
File: namespaces

Comment 11 kakoskin 2016-11-24 11:58:58 UTC
Created attachment 1223828 [details]
File: open_fds

Comment 12 kakoskin 2016-11-24 11:59:00 UTC
Created attachment 1223829 [details]
File: proc_pid_status

Comment 13 kakoskin 2016-11-24 11:59:01 UTC
Created attachment 1223830 [details]
File: var_log_messages

Comment 14 Zdenek Dohnal 2016-11-24 12:09:18 UTC
It seems you ran into bug #1371294 https://bugzilla.redhat.com/show_bug.cgi?id=1371294 . I'll look into it. Closing this as duplicate.

*** This bug has been marked as a duplicate of bug 1371294 ***

Comment 15 Zdenek Dohnal 2016-11-24 17:33:27 UTC
Kakoskin, would you mind running commands and sending me outputs/files:

1) /var/log/cups/error_log (you need to set ErrorLog to /var/log/cups/error_log in /etc/cups/cups-files.conf ) when sigsegv happened
2) hp-check
3) hp-probe
4) hp-setup -i (this will run hp-setup in interactive mode)

Comment 16 kakoskin 2016-11-25 07:38:59 UTC
Created attachment 1224162 [details]
Cups error log while reprodusing the bug.

Comment 17 kakoskin 2016-11-25 07:41:20 UTC
Created attachment 1224163 [details]
hp-check output while printer not connected

Comment 18 kakoskin 2016-11-25 07:43:11 UTC
Created attachment 1224164 [details]
hp-check output while printer connected

Comment 19 kakoskin 2016-11-25 07:44:26 UTC
Created attachment 1224165 [details]
hp-probe output while printer not connected

Comment 20 kakoskin 2016-11-25 07:45:01 UTC
Created attachment 1224166 [details]
hp-probe output while printer connected

Comment 21 kakoskin 2016-11-25 07:46:03 UTC
Created attachment 1224167 [details]
hp-setup output while printer connected, not creating new queue

Comment 22 kakoskin 2016-11-25 07:46:48 UTC
Created attachment 1224168 [details]
hp-setup output while printer connected, attempting to create a new queue

Comment 23 kakoskin 2016-11-25 07:47:29 UTC
Created attachment 1224169 [details]
hp-setup output while printer not connected

Comment 24 kakoskin 2016-11-25 07:49:22 UTC
I hit this bug originally while printer was not connected but I just tested and I hit same crash even when the printer is plugged in.

I hit SeLinux denial https://bugzilla.redhat.com/show_bug.cgi?id=1398277 while running hp-probe with printer connected.