Bug 375347 - apper-pk-session fails to install a rpm package
Summary: apper-pk-session fails to install a rpm package
Status: RESOLVED WORKSFORME
Alias: None
Product: apper
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Daniel Nicoletti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-20 17:51 UTC by Miquel Morancho
Modified: 2021-01-16 04:35 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miquel Morancho 2017-01-20 17:51:57 UTC
Application: Apper version: 0.9.3-0.5.20161109.fc25.x86_64


Qt Version: 5.7.1
Frameworks Version: 5.29.0
Operating System: Linux 4.9.3-200.fc25.x86_64 x86_64
Distribution: "Fedora release 25 (Twenty Five)"

-- Information about the crash:
<Apper crash trying to install a rpm package from download folder, clicking on directly with the mouse, or clicking on the "open with/Apper installer" option of the contextual menu of the mouse
If I repeat the operation again, it crash from time to time, and the most frequently action is do not start the Apper installer application>

explotaible
reason: apper-pk-session killed by SIGSEGV

core backtrace:
{   "signal": 11
,   "executable": "/usr/libexec/apper-pk-session"
,   "only_crash_thread": true
,   "stacktrace":
      [ {   "crash_thread": true
        ,   "frames":
              [ {   "address": 139648649491179
                ,   "build_id": "a60e1f15c2f73e5ed347aa96c025e52b97798651"
                ,   "build_id_offset": 819947
                ,   "function_name": "K4AboutData::appName() const"
                ,   "file_name": "/usr/lib64/libKF5KDELibs4Support.so.5.29.0"
                }
              , {   "address": 139648650407259
                ,   "build_id": "a60e1f15c2f73e5ed347aa96c025e52b97798651"
                ,   "build_id_offset": 1736027
                ,   "function_name": "KUniqueApplication::start(QFlags<KUniqueApplication::StartFlag>)"
                ,   "file_name": "/usr/lib64/libKF5KDELibs4Support.so.5.29.0"
                }
              , {   "address": 139648650412411
                ,   "build_id": "a60e1f15c2f73e5ed347aa96c025e52b97798651"
                ,   "build_id_offset": 1741179
                ,   "function_name": "KUniqueApplication::start()"
                ,   "file_name": "/usr/lib64/libKF5KDELibs4Support.so.5.29.0"
                }
              , {   "address": 94878752418702
                ,   "build_id": "de85155c2dcdec5f12a01ec413838c85f1296414"
                ,   "build_id_offset": 113550
                ,   "function_name": "main"
                ,   "file_name": "/usr/libexec/apper-pk-session"
                } ]
        } ]
}
Comment 1 Rex Dieter 2017-03-15 12:48:02 UTC
confirming, and ammending summary.

Once upon a time, I used to be able to reliably reproduce this crash.  except not today any longer.  now apper seems to just silently fail for me (maybe relevant that I recently updated to kf5 5.32.0)
Comment 2 Rex Dieter 2017-03-15 12:50:03 UTC
and fyi, this is using a ~december 2016 git snapshot (of kf5-based port)
Comment 3 Rex Dieter 2017-03-15 12:50:31 UTC
See also downstream report,
https://bugzilla.redhat.com/show_bug.cgi?id=1383747

(sorry for all the extra comments)
Comment 4 Rex Dieter 2017-03-15 12:53:35 UTC
Ah, I can see crash in journal at least:

Mar 15 07:50:40 localhost kernel: apper-pk-sessio[31344]: segfault at 0 ip 00007f20e55462eb sp 00007ffdca115200 error 4 in libKF5KDELibs4Support.so.5.32.0[7f20e547e0

running apper-pk-session by hand (not sure that's wise), but:
kf5.kcoreaddons.kaboutdata: Could not initialize the equivalent properties of Q*Application: no instance (yet) existing.
Segmentation fault (core dumped)

and gdb *can* get something out of that at least:

(gdb) thread apply all bt

Thread 1 (Thread 0x7fffe44a8940 (LWP 31435)):
#0  K4AboutData::appName (this=0x0) at /usr/src/debug/kdelibs4support-5.32.0/src/kdecore/k4aboutdata.cpp:690
#1  0x00007ffff74b2cdb in KUniqueApplication::start (flags=flags@entry=...) at /usr/src/debug/kdelibs4support-5.32.0/src/kdeui/kuniqueapplication.cpp:120
#2  0x00007ffff74b40fb in KUniqueApplication::start () at /usr/src/debug/kdelibs4support-5.32.0/src/kdeui/kuniqueapplication.cpp:100
#3  0x000055555556fb8e in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/apper-0.9.3/PkSession/main.cpp:49
Comment 5 Rex Dieter 2017-03-15 12:58:04 UTC
cc'ing apol
Comment 6 Aleix Pol 2017-03-15 13:51:27 UTC
I don't maintain Apper, whereas I did implement support for installing packages using PackageKit in Discover.
Comment 7 Rex Dieter 2017-03-15 14:20:01 UTC
True (and thanks for that!).  cc'd because someone told me you were unaware of this.
Comment 8 Dan Leinir Turthra Jensen 2017-03-27 12:13:29 UTC
Right, i have just made a review request with a fix for this. Basically, the problem seems to have been an about half way done port away from KUniqueApplication. If i could get some tests done on this by people who use the tool, and who might be able to tell me if it works as expected, i'd appreciate it :) https://phabricator.kde.org/D5193
Comment 9 Justin Zobel 2020-12-17 05:27:41 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 10 Bug Janitor Service 2021-01-01 04:36:17 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2021-01-16 04:35:21 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!