Bug 127099 - CppUnitTest_sc_dataprovider fails on ppc64le
Summary: CppUnitTest_sc_dataprovider fails on ppc64le
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.0.4 release
Hardware: PowerPC Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Dev-Bugs
  Show dependency treegraph
 
Reported: 2019-08-22 14:11 UTC by Jonathan Brielmaier
Modified: 2019-10-30 09:39 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Debug log for CppUnitTest_sc_dataprovider_test (198.05 KB, text/x-log)
2019-08-22 14:11 UTC, Jonathan Brielmaier
Details
Valgrind log for CppUnitTest_sc_dataprovider_test (13.98 KB, text/x-log)
2019-08-22 14:12 UTC, Jonathan Brielmaier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Brielmaier 2019-08-22 14:11:14 UTC
Created attachment 153575 [details]
Debug log for CppUnitTest_sc_dataprovider_test

I'm running the unit tests on a Tumbleweed ppc64le machine and the 
CppUnitTest_sc_dataprovider_test test fails:

"""
ScDataProvidersTest::testCSVImport finished in: 1810ms
[New Thread 0x7fffac59f160 (LWP 22385)]
[Thread 0x7fffac59f160 (LWP 22385) exited]
ScDataProvidersTest::testDataLargerThanDB finished in: 4ms
[New Thread 0x7fffac59f160 (LWP 22386)]
[Thread 0x7fffac59f160 (LWP 22386) exited]
ScDataProvidersTest::testHTMLImport finished in: 4ms
[New Thread 0x7fffac59f160 (LWP 22387)]
[Thread 0x7fffac59f160 (LWP 22387) exited]
ScDataProvidersTest::testXMLImport finished in: 139ms
OK (4)

Thread 1 "cppunittester" received signal SIGSEGV, Segmentation fault.
0x00007fffad6d42bc in ?? ()
#0  0x00007fffad6d42bc in  ()
#1  0x00007fffb785b114 in __run_exit_handlers () at /lib64/libc.so.6
#2  0x00007fffb785b308 in exit () at /lib64/libc.so.6
#3  0x00007fffb78382a0 in generic_start_main.isra () at /lib64/libc.so.6
#4  0x00007fffb7838484 in __libc_start_main () at /lib64/libc.so.6
#5  0x0000000000000000 in  ()
A debugging session is active.

        Inferior 1 [process 22381] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
"""

For me it looks like the actual tests passes, but the unittester segfaults.
Comment 1 Jonathan Brielmaier 2019-08-22 14:12:42 UTC
Created attachment 153576 [details]
Valgrind log for CppUnitTest_sc_dataprovider_test
Comment 2 Caolán McNamara 2019-08-22 14:59:07 UTC
yeah, crash on cleanup of globals on exit, I doubt its a specific LibreOffice bug personally.
Comment 3 Noel Grandin 2019-08-22 14:59:49 UTC
This looks like some kind of shutdown/C++ destructor problem, probably because the order of destruction of C++ global objects is undefined, and the order slightly different on your machine, and some global object is attempting to access another global object during  shutdown, but the accessee is already dead.
Comment 4 Jonathan Brielmaier 2019-08-22 16:08:02 UTC
How could I/we further debug this? So you assume it's a compiler bug (on ppc64le). Did I understand that correctly?
Comment 5 Caolán McNamara 2019-08-25 20:23:51 UTC
seems to be working ok in our Fedora rawhide/32 build i.e. 

https://kojipkgs.fedoraproject.org//work/tasks/2778/37242778/build.log

[build CUT] sc_dataprovider
Comment 6 Xisco Faulí 2019-09-26 11:58:55 UTC
(In reply to Caolán McNamara from comment #2)
> yeah, crash on cleanup of globals on exit, I doubt its a specific
> LibreOffice bug personally.

Hi Caolán,
Does it make sense to ask Jonathan Brielmaier to report the problem to OpenSuse instead ?
Comment 7 Xisco Faulí 2019-10-30 09:39:14 UTC
(In reply to Caolán McNamara from comment #5)
> seems to be working ok in our Fedora rawhide/32 build i.e. 
> 
> https://kojipkgs.fedoraproject.org//work/tasks/2778/37242778/build.log
> 
> [build CUT] sc_dataprovider

Closing as RESOLVED NOTOURBUG