Bug 1893080

Summary: psi-plus crashes on start
Product: [Fedora] Fedora Reporter: Creme Brulee <playdohcrow>
Component: psi-plusAssignee: Vitaly <vitaly>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 33CC: drizt72, kde-sig, Neustradamus, projects.rg, vitaly
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: psi-plus-1.4.1529-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-09 01:11:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Creme Brulee 2020-10-30 04:26:49 UTC
Description of problem:

psi-plus crashes when you try to connect to a server (change the status from offline to online).

Version-Release number of selected component (if applicable):
1.4.1515

How reproducible:
Always

Steps to Reproduce:
1. run psi-plus (should be enough)

In case you don't automatically connect to a server, do so manually by changing your status to online (you need to have an account, if you don't, create it first)


Actual results:
a crash occurs

Expected results:
you're successfully connected and see your roster populated with contacts (assuming you have them).

Additional info:
I built psi-plus from sources of the latest snapshot and it works like a charm.
v.1.4.1523
I used cmake to build it.

Comment 1 Fedora Update System 2020-10-30 20:27:34 UTC
FEDORA-2020-1f370d8cd8 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-1f370d8cd8

Comment 2 Vitaly 2020-10-30 20:29:31 UTC
Please check build psi-plus-1.4.1523-1.fc33.

Comment 3 Creme Brulee 2020-10-30 23:33:35 UTC
Hello Vitaly
Thank you for your reply.
I've installed psi-plus-1.4.1523-1.fc33 but I get the same error.

[20201031 2:23:48] W:QObject::connect: Cannot connect (nullptr)::updated() to XMPP::NetTracker::c_updated() (unknown:0, unknown)

Thread 45 "XMPP::NetTracke" received signal SIGSEGV, Segmentation fault.
--Type <RET> for more, q to quit, c to continue without paging--
[Switching to Thread 0x7fff34adf640 (LWP 58289)]
0x0000555555d0413f in XMPP::NetTracker::NetTracker (this=0x7fff14001bd0) at ../iris/src/irisnet/corelib/netinterface.cpp:55
55              c->start();
(gdb) bt
#0  0x0000555555d0413f in XMPP::NetTracker::NetTracker() (this=0x7fff14001bd0) at ../iris/src/irisnet/corelib/netinterface.cpp:55
#1  XMPP::NetTrackerThread::run() (this=0x555556dafcd0) at ../iris/src/irisnet/corelib/netinterface.cpp:42
#2  0x00007fffef1004bc in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#3  0x00007fffeead73f9 in start_thread () at /lib64/libpthread.so.0
#4  0x00007fffeec22b03 in clone () at /lib64/libc.so.6
(gdb) list ../iris/src/irisnet/corelib/netinterface.cpp:55
50                      break;
51              }
52              Q_ASSERT(c); // we have built-in support, so this should never fail
53              connect(c, SIGNAL(updated()), SLOT(c_updated()));
54      
55              c->start();
56              info = filterList(c->interfaces());
57          }
58      
59          ~NetTracker()

This error doesn't occur when I run psi-plus of the same version built manually

Comment 4 Fedora Update System 2020-10-31 02:55:57 UTC
FEDORA-2020-1f370d8cd8 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-1f370d8cd8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-1f370d8cd8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Vitaly 2020-10-31 09:41:16 UTC
> This error doesn't occur when I run psi-plus of the same version built manually

I guess because your build doesn't use Fedora build flags.

I think this crash is related to LTO enabled by default. I will try to rebuild without LTO.

Comment 6 Vitaly 2020-10-31 09:51:42 UTC
Please try psi-plus-1.4.1526-1.fc33. I built it with disabled LTO.

Comment 7 Fedora Update System 2020-10-31 10:29:02 UTC
FEDORA-2020-1f370d8cd8 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-1f370d8cd8

Comment 8 Creme Brulee 2020-10-31 11:10:57 UTC
I just tested the updated version: psi-plus-1.4.1526-1.fc33.
The crash still occurs. On the same line
../iris/src/irisnet/corelib/netinterface.cpp:55

Comment 9 Vitaly 2020-10-31 11:19:20 UTC
> I just tested the updated version: psi-plus-1.4.1526-1.fc33.

Thanks for testing. Reported this issue to upstream: https://github.com/psi-im/psi/issues/605

Comment 10 Vitaly 2020-10-31 14:42:18 UTC
Please try psi-plus-1.4.1529-1.fc33.

Comment 11 Creme Brulee 2020-10-31 21:06:38 UTC
Thanks, Vitaly. Now it's working, no crashes.

Comment 12 Fedora Update System 2020-11-01 01:08:50 UTC
FEDORA-2020-1f370d8cd8 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-1f370d8cd8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-1f370d8cd8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2020-11-09 01:11:42 UTC
FEDORA-2020-1f370d8cd8 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.