Bug 152182 - s390xs tests broken (std::bad_alloc and OOM)
Summary: s390xs tests broken (std::bad_alloc and OOM)
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
7.4.3.2 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks:
 
Reported: 2022-11-23 09:31 UTC by Rico Tzschichholz
Modified: 2025-11-27 11:29 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rico Tzschichholz 2022-11-23 09:31:13 UTC
There are 2 writer uitests failing on s390x since 7.4.3.1 which were working in 7.4.2.3


======================================================================
ERROR: test_tdf138531 (tdf138531.Tdf138531)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.XpTg8A/build.QtA/src/sw/qa/uitest/writer_tests5/tdf138531.py", line 36, in test_tdf138531
    self.xUITest.executeCommandWithParameters(".uno:ClipboardFormatItems", formatProperty)
uno.com.sun.star.uno.RuntimeException: C++ code threw St9bad_alloc: std::bad_alloc at ./bridges/source/cpp_uno/gcc3_linux_s390x/uno2cpp.cxx:349

======================================================================
ERROR: test_tdf147935 (tdf147935.Tdf147935)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest.XpTg8A/build.QtA/src/sw/qa/uitest/writer_tests5/tdf147935.py", line 34, in test_tdf147935
    self.xUITest.executeCommandWithParameters(".uno:ClipboardFormatItems", formatProperty)
uno.com.sun.star.uno.RuntimeException: C++ code threw St9bad_alloc: std::bad_alloc at ./bridges/source/cpp_uno/gcc3_linux_s390x/uno2cpp.cxx:349

----------------------------------------------------------------------
Comment 1 Rene Engelhard 2022-11-28 17:27:47 UTC
even worse:

12:33 < aurel32> it get killed due to an OOM in cppunittester
[...]
12:35 < aurel32> cppunittester tries to allocated 100GB+ of RAM
12:38 < aurel32> _rene_: https://paste.debian.net/hidden/748c5da1/

For reference:

[158394.581662] nrpe invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=-500
[158394.581672] CPU: 0 PID: 3465725 Comm: nrpe Tainted: G            E     5.10.0-19-s390x #1 Debian 5.10.149-2
[158394.581674] Hardware name: IBM 8561 LT1 400 (z/VM 7.1.0)
[158394.581675] Call Trace:
[158394.582764]  [<000000005fa0d09a>] show_stack+0x8a/0xe0 
[158394.582767]  [<000000005fa11960>] dump_stack+0x90/0xc0 
[158394.582769]  [<000000005fa0ff08>] dump_header+0x60/0x2c8 
[158394.582773]  [<000000005f369978>] oom_kill_process+0x1d0/0x1d8 
[158394.582775]  [<000000005f36a698>] out_of_memory+0x268/0x400 
[158394.582779]  [<000000005f3da874>] __alloc_pages_slowpath.constprop.0+0xb64/0xfe0 
[158394.582782]  [<000000005f3db012>] __alloc_pages_nodemask+0x322/0x350 
[158394.582786]  [<000000005f363b9e>] pagecache_get_page+0x17e/0x410 
[158394.582789]  [<000000005f3659c4>] filemap_fault+0x72c/0x9c0 
[158394.582811]  [<000003ff800e6ca8>] ext4_filemap_fault+0x48/0x68 [ext4] 
[158394.582814]  [<000000005f3ac17a>] __do_fault+0x4a/0x108 
[158394.585487]  [<000000005f3b2012>] handle_mm_fault+0xd9a/0x1510 
[158394.585489]  [<000000005f17e732>] do_exception+0x142/0x3b0 
[158394.585490]  [<000000005f17f350>] do_dat_exception+0x28/0x58 
[158394.585493]  [<000000005fa21732>] pgm_check_handler+0x1d6/0x228 
[158394.585496] Mem-Info:
[158394.585500] active_anon:26766 inactive_anon:1759776 isolated_anon:0
                 active_file:13 inactive_file:17 isolated_file:0
                 unevictable:74 dirty:0 writeback:0
                 slab_reclaimable:105073 slab_unreclaimable:81172
                 mapped:25 shmem:54 pagetables:40711 bounce:0
                 free:11724 free_pcp:186 free_cma:255
[158394.585504] Node 0 active_anon:107064kB inactive_anon:7039104kB active_file:52kB inactive_file:68kB unevictable:296kB isolated(anon):0kB isolated(file):0kB mapped:100kB dirty:0kB writeback:0kB shmem:216kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 8192kB writeback_tmp:0kB kernel_stack:3440kB all_unreclaimable? no
[158394.585507] DMA free:29492kB min:5652kB low:7708kB high:9764kB reserved_highatomic:0KB active_anon:16452kB inactive_anon:1750236kB active_file:12kB inactive_file:12kB unevictable:36kB writepending:0kB present:2097152kB managed:2083512kB mlocked:36kB pagetables:60448kB bounce:0kB free_pcp:248kB local_pcp:0kB free_cma:0kB
[158394.585508] lowmem_reserve[]: 0 5992 5992
[158394.585512] Normal free:17404kB min:16872kB low:23008kB high:29144kB reserved_highatomic:1024KB active_anon:90612kB inactive_anon:5288444kB active_file:40kB inactive_file:56kB unevictable:260kB writepending:0kB present:6291456kB managed:6136440kB mlocked:260kB pagetables:102396kB bounce:0kB free_pcp:496kB local_pcp:248kB free_cma:1020kB
[158394.585513] lowmem_reserve[]: 0 0 0
[158394.585515] DMA: 35*4kB (UE) 279*8kB (UME) 119*16kB (UME) 10*32kB (UE) 11*64kB (UE) 37*128kB (UME) 8*256kB (ME) 34*512kB (UM) 0*1024kB 0*2048kB 0*4096kB = 29492kB
[158394.585521] Normal: 206*4kB (EHC) 355*8kB (UMEHC) 739*16kB (UMEHC) 20*32kB (UMEC) 2*64kB (UC) 1*128kB (C) 1*256kB (C) 1*512kB (C) 0*1024kB 0*2048kB 0*4096kB = 17152kB
[158394.585527] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1024kB
[158394.585528] 29276 total pagecache pages
[158394.585542] 29192 pages in swap cache
[158394.585544] Swap cache stats: add 140701740, delete 140672540, find 50148851/59091700
[158394.585544] Free swap  = 0kB
[158394.585545] Total swap = 94371836kB
[158394.585546] 2097152 pages RAM
[158394.585546] 0 pages HighMem/MovableOnly
[158394.585547] 42164 pages reserved
[158394.585547] 1024 pages cma reserved
[158394.585548] Tasks state (memory values in pages):
[158394.585549] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
[158394.585551] [    202]     0   202    56576      181   436224      749          -250 systemd-journal
[158394.585553] [    236]     0   236     5366       17    77824      258         -1000 systemd-udevd
[158394.585554] [    393]     0   393     1774       29    75776       61             0 cron
[158394.585556] [    394]   118   394     2320      117    73728       77          -900 dbus-daemon
[158394.585557] [    400]     0   400     3836       77    90112      173             0 systemd-logind
[158394.585559] [    401]     0   401     9188      643   124928     5252             0 ud-replicated
[158394.585560] [    407]   117   407     1302       41    83968       97             0 ulogd
[158394.585562] [    408]     0   408     1295       10    61440       61             0 atd
[158394.585563] [    510]     0   510    47040     1322   163840     5782             0 samhain
[158394.585564] [    628]   119   628     4885       56    94208      205             0 lldpd
[158394.585566] [    645]     0   645     1555        7    69632       52             0 agetty
[158394.585567] [    647]     0   647     1555        7    69632       53             0 agetty
[158394.585568] [    648]     0   648     1555        5    69632       55             0 agetty
[158394.585570] [    649]     0   649     5217      390   104448     1994             0 munin-node
[158394.585572] [    651]  2952   651     3756      160    88064      190             0 systemd
[158394.585573] [    652]     0   652      542       20    49152       12             0 ekeyd-egd-linux
[158394.585574] [    662]   112   662    49397       15   143360      582             0 icinga2
[158394.585575] [    664]     0   664     3083       44    88064      192         -1000 sshd
[158394.585577] [    666]  2952   666    25749       20   137216      771             0 (sd-pam)
[158394.585578] [    667]   108   667    18839       82    75776      158             0 ntpd
[158394.585579] [    671]   119   671     4859       35    90112      208             0 lldpd
[158394.585580] [    679]   107   679     7141      346   104448     2206             0 unbound
[158394.585582] [    680]     1   680      551       26    47104       10             0 uptimed
[158394.585583] [    689]   112   689     2435       16    75776      182          -500 nrpe
[158394.585585] [    690]     0   690     1174        2    71680       51             0 agetty
[158394.585586] [    691]     0   691   151254      923   514048    10418             0 syslog-ng
[158394.585588] [    699]  2952   699     4518        3    81920     2183             0 python3
[158394.585589] [    702]  2952   702    19871       49    69632       36             0 gpg-agent
[158394.585591] [    732]   112   732   264615     1691   200704     1221             0 icinga2
[158394.585592] [    737]   112   737    49397       54   110592      544             0 icinga2
[158394.585593] [    968]   102   968     6945       44   116736      348             0 exim4
[158394.585594] [    975]   106   975     4510      485    96256     1803             0 munin-asyncd [z
[158394.585596] [   1027]   109  1027    38209        0   110592      442             0 stunnel4
[158394.585597] [  44399]     0 44399     4001       15   108544      308             0 sshd
[158394.585598] [  44402]   106 44402     3756      143    88064      201             0 systemd
[158394.585600] [  44403]   106 44403    42133       21   139264      773             0 (sd-pam)
[158394.585601] [  44420]   106 44420     4001       69   108544      267             0 sshd
[158394.585603] [2253080]     0 2253080    47040        0   159744     7111             0 samhain
[158394.585604] [3081073]  2952 3081073     9923        2   151552     7166             0 sbuild
[158394.585605] [3081079]  2952 3081079     9544        0   133120     6790             0 sbuild
[158394.585607] [3093239]  2952 3093239     4178        2   114688      303             0 schroot
[158394.585608] [3093240]  2952 3093240     4848        4    98304     2996             0 dpkg-buildpacka
[158394.585609] [3093551]  2952 3093551      905        4    61440      175             0 rules
[158394.585611] [3310301]     0 3310301     2681        2    83968      167             0 cron
[158394.585612] [3310304]     0 3310304      933        0    49152       61             0 bash
[158394.585614] [3310305]     0 3310305      548        0    45056       23             0 sleep
[158394.585615] [3355768]  2952 3355768      905        4    59392      176             0 rules
[158394.585616] [3391850]  2952 3391850     1099        4    61440       84             0 bash
[158394.585617] [3391852]  2952 3391852      710        1    57344       35             0 timeout
[158394.585619] [3391853]  2952 3391853     1789        4    67584     1090             0 make
[158394.585620] [3391881]  2952 3391881      641        1    47104       58             0 sh
[158394.585621] [3391882]  2952 3391882    52936        4   477184    52239             0 make
[158394.585623] [3451740]  2952 3451740      642        1    45056       61             0 sh
[158394.585624] [3451746]  2952 3451746 28516257  1749288 161619968 18288901             0 cppunittester
[158394.585626] [3461505]  2952 3461505     2650       81    77824      112             0 ssh
[158394.585627] [3464843]     0 3464843     2681       51    83968      118             0 cron
[158394.585628] [3464844]     0 3464844      933       62    49152        0             0 bash
[158394.585630] [3464845]     0 3464845      548       20    47104        0             0 sleep
[158394.585631] [3465713]   106 3465713     1862      204    59392        0             0 munin-async
[158394.585632] [3465718]   112 3465718      574       21    63488        0             0 memory-percent
[158394.585633] [3465719]   112 3465719      574       21    63488        0             0 memory-mb
[158394.585634] [3465723]   112 3465723     2311       49    79872        0             0 dsa-check-memor
[158394.585636] [3465724]   112 3465724     2193       36    67584        0             0 dsa-check-memor
[158394.585637] [3465725]   112 3465725     2435       62    73728      134          -500 nrpe
[158394.585638] [3465726]   112 3465726     2435       33    71680      163          -500 nrpe
[158394.585640] [3465727]   112 3465727     2435       57    71680      140          -500 nrpe
[158394.585641] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-2952.slice/user@2952.service/app.slice/buildd.service,task=cppunittester,pid=3451746,uid=2952
[158394.585654] Out of memory: Killed process 3451746 (cppunittester) total-vm:114065028kB, anon-rss:6997052kB, file-rss:8kB, shmem-rss:92kB, UID:2952 pgtables:157832kB oom_score_adj:0
[158398.352334] oom_reaper: reaped process 3451746 (cppunittester), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
Comment 2 QA Administrators 2025-11-27 11:29:30 UTC
Dear Rico Tzschichholz,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug