Bug 43092 - italc 3.0 segfault in User::loggedOnUser()
italc 3.0 segfault in User::loggedOnUser()
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: iTALC
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2 v10
Assigned To: Florian Best
Sönke Schwardt-Krummrich
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-12-01 16:09 CET by Florian Best
Modified: 2017-03-21 12:35 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.257
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2016112421000151
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2016-12-01 16:09:48 CET
(gdb) bt
#0  0x00007fd078d9ef6b in raise () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  <signal handler called>
#2  0x0000000000000000 in ?? ()
#3  0x00007fd07099fa24 in QHostInfo::localDomainName () at kernel/qhostinfo_unix.cpp:345
#4  0x00007fd052c311de in LocalSystem::User::loggedOnUser () at /var/build/temp/tmp.aYCByandhG/pbuilder/italc-2.0.25/lib/src/LocalSystem.cpp:285
#5  0x00007fd052c2bd85 in ItalcVncConnection::handleSecTypeItalc (client=client@entry=0x7fd04c060860) at /var/build/temp/tmp.aYCByandhG/pbuilder/italc-2.0.25/lib/src/ItalcVncConnection.cpp:788
#6  0x00007fd052c2c175 in handleSecTypeItalc (client=client@entry=0x7fd04c060860) at /var/build/temp/tmp.aYCByandhG/pbuilder/italc-2.0.25/lib/src/ItalcVncConnection.cpp:871
#7  0x00007fd052c4f6cb in InitialiseRFBConnection (client=client@entry=0x7fd04c060860) at /var/build/temp/tmp.aYCByandhG/pbuilder/italc-2.0.25/ica/x11/libvncclient/rfbproto.c:1265
#8  0x00007fd052c50d15 in rfbInitConnection (client=0x7fd04c060860) at /var/build/temp/tmp.aYCByandhG/pbuilder/italc-2.0.25/ica/x11/libvncclient/vncviewer.c:253
#9  rfbInitClient (client=0x7fd04c060860, argc=<optimized out>, argv=<optimized out>) at /var/build/temp/tmp.aYCByandhG/pbuilder/italc-2.0.25/ica/x11/libvncclient/vncviewer.c:365
#10 0x00007fd052c2c2fa in ItalcVncConnection::doConnection (this=this@entry=0x7fd04c05e1a0) at /var/build/temp/tmp.aYCByandhG/pbuilder/italc-2.0.25/lib/src/ItalcVncConnection.cpp:571
#11 0x00007fd052c2c628 in ItalcVncConnection::run (this=0x7fd04c05e1a0) at /var/build/temp/tmp.aYCByandhG/pbuilder/italc-2.0.25/lib/src/ItalcVncConnection.cpp:526
#12 0x00007fd075b07d0b in QThreadPrivate::start (arg=0x7fd04c05e1a0) at thread/qthread_unix.cpp:307
#13 0x00007fd078d96b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#14 0x00007fd07824030d in clone () from /lib/x86_64-linux-gnu/libc.so.6
Comment 1 Florian Best univentionstaff 2016-12-01 16:11:12 CET
italc/lib/src/LocalSystem.cpp:
   285 »   QString domainName = QHostInfo::localDomainName();
Comment 2 Florian Best univentionstaff 2016-12-05 15:07:28 CET
This happens with libitalc_2.0.25-12.95.201611281345_amd64.deb without the ucs-school-umc-computerroom changes of Bug #43044. This package was installed on a UCS@school slave of one of our customers as test pacakge. So I think we should wait I we get this reported again with the modified ucs-school-umc-computerroom. It might only be a side effect.
Comment 3 Florian Best univentionstaff 2016-12-13 09:52:26 CET
We received 5 core dumps with this error.
Comment 5 Florian Best univentionstaff 2016-12-22 15:26:15 CET
We received 6 other core dumps containing this error.
Comment 6 Florian Best univentionstaff 2017-01-02 17:11:04 CET
I added the suggested idea from Tobias, maybe this fixes it. I will provide these test packages for the customer.

italc.yaml:
r75557 | YAML Bug #43092

italc (2:2.0.25-18):
r75556 | Bug #43092: try to prevent segfault by mutex locking
Comment 7 Jens Thorp-Hansen univentionstaff 2017-01-30 10:03:19 CET
The last batch of packages seem to be successfull. The customer says there were no more issues since the installation of the last test-packages.
Comment 8 Sönke Schwardt-Krummrich univentionstaff 2017-03-17 14:52:55 CET
OK: code change
OK: functional test
OK: advisory
Comment 9 Sönke Schwardt-Krummrich univentionstaff 2017-03-21 12:35:58 CET
UCS@school 4.1 R2 v10 has been released.

http://docs.software-univention.de/changelog-ucsschool-4.1R2v10-de.html

If this error occurs again, please clone this bug.