Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 867088 - media-libs/libvpx-1.12.0 fails tests with out-of-memory
Summary: media-libs/libvpx-1.12.0 fails tests with out-of-memory
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2022-08-28 13:50 UTC by Jonathan Lovelace
Modified: 2023-09-29 23:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
media-libs:libvpx-1.12.0:20220828-012958.log (media-libs:libvpx-1.12.0:20220828-012958.log,702.60 KB, text/x-log)
2022-08-28 13:50 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.26 KB, text/plain)
2022-08-28 13:51 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2022-08-28 13:50:57 UTC
Created attachment 801673 [details]
media-libs:libvpx-1.12.0:20220828-012958.log

On the one machine where I've tried to upgrade libvpx, =media-libs/libvpx-1.12.0 fails its test phase because the test VP9/RealtimeTest.IntegerOverflowLarge/0 is killed by the oom_reaper. In dmesg I see the following:

[14507368.857594] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,task=test_libvpx,pid=29378,uid=250
[14507368.857606] Out of memory: Killed process 29378 (test_libvpx) total-vm:15962740kB, anon-rss:6063680kB, file-rss:64kB, shmem-rss:0kB, UID:2
50 pgtables:29628kB oom_score_adj:0
[14507369.335786] oom_reaper: reaped process 29378 (test_libvpx), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

And indeed, the total-vm figure there works out to over 15 GB, while "free" tells me this machine has (available to userspace) "7.7 Gi" of memory proper and "11 Gi" of swap, "3.5Gi" of memory and "10Gi" of swap free.

I would guess that either there's something wrong with this test, or the ebuild should check for the availability of some large amount of memory/swap?
Comment 1 Jonathan Lovelace 2022-08-28 13:51:47 UTC
Created attachment 801676 [details]
emerge-info.txt
Comment 2 Jonathan Lovelace 2023-09-29 23:38:49 UTC
The test phase of versions 1.13.0 and 1.13.0-r1 are also reliably killed with out-of-memory errors (though I'm not *certain* that it's precisely the same test that triggers the OOM).