Bug #2342

Unit test failure on user system with Qt 5.6.2

Added by pospelov 7 months ago. Updated 7 months ago.

Status:ResolvedStart date:24 Apr 2019
Priority:NormalDue date:
Assignee:pospelov% Done:

0%

Category:-
Target version:Sprint 41

Description

Artur reports: GUI unit test executable crashes at the end of compilation. System affected: PSI Linux cluster with manual installation of packages here and there.

Normally such kind of behavior can be connected with older BornAgain installation in the LD_LIBRARY_PATH or older libgoogltest.so installed on the system.
This is not the case here.

Debugger reports

[ll_glavic@mcc06:BornAgain/build]{master} gdb bin/UnitTestGUI
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" 
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/ll_glavic/software/BornAgain/build/bin/UnitTestGUI...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/ll_glavic/software/BornAgain/build/bin/UnitTestGUI 
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00000000004b3630 in QtPrivate::RefCount::ref() ()
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.5-7.el6_0.x86_64 glibc-2.12-1.209.el6_9.2.x86_64 libX11-1.6.4-3.el6.x86_64 libXau-1.0.6-4.el6.x86_64 libXdamage-1.1.3-4.el6.x86_64 libXext-1.3.2-2.1.el6.x86_64 libXfixes-5.0.3-1.el6.x86_64 libXxf86vm-1.1.3-2.1.el6.x86_64 libdrm-2.4.65-2.el6.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 mesa-dri-drivers-11.0.7-4.el6.x86_64 mesa-libGL-11.0.7-4.el6.x86_64
(gdb) where
#0  0x00000000004b3630 in QtPrivate::RefCount::ref() ()
#1  0x00007ffff78ab09e in _GLOBAL__sub_I_MaterialItemUtils.cpp () from /home/ll_glavic/software/BornAgain/build/lib/_libBornAgainGUI.so
#2  0x00007ffff7b09646 in __do_global_ctors_aux () from /home/ll_glavic/software/BornAgain/build/lib/_libBornAgainGUI.so
#3  0x00007ffff6ea4560 in ?? () from /afs/psi.ch/sys/psi.x86_64_slp6/Programming/psi-python36/5.0.1/lib/libQt5Test.so.5
#4  0x0000000000000001 in ?? ()
#5  0x00007fffffffb3c8 in ?? ()
#6  0x00007ffff752c323 in _init () from /home/ll_glavic/software/BornAgain/build/lib/_libBornAgainGUI.so
#7  0x0000003708622190 in audit_list_string ()
#8  0x000000370840e985 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
#9  0x0000003708400b6a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#10 0x0000000000000001 in ?? ()
#11 0x00007fffffffba5f in ?? ()
#12 0x0000000000000000 in ?? ()

Bug in Qt?

History

#1 Updated by pospelov 7 months ago

  • Status changed from Sprint to Resolved

Bug was connected with

namespace {
const QString x = another;
}

Where `another` was static QString initialized in another module.

I.e. the error was connected with undefined order of QString initialization.

Also available in: Atom PDF