Skip to content

Test tests/system/talloc2.nim fails on OpenBSD #14081

@euantorano

Description

@euantorano

The tests/system/talloc2.nim test fails on OpenBSD with the following output:

$ nim c -r tests/system/talloc2.nim
Hint: used config file '/home/euant/Nim/config/nim.cfg' [Conf]
Hint: used config file '/home/euant/Nim/config/config.nims' [Conf]
Hint: used config file '/home/euant/Nim/tests/config.nims' [Conf]
Hint: 15792 LOC; 0.049 sec; 18.277MiB peakmem; Debug build; proj: talloc2; out: talloc2 [SuccessX]
Hint: /home/euant/Nim/tests/system/talloc2  [Exec]
out of memory
Error: execution of an external program failed: '/home/euant/Nim/tests/system/talloc2 '

I believe sr.ht build machines are allocated 2GB memory each.

Note that this also fails locally on a VM with 4GB of memory. This is likely due to the ulimits on the system:

$ ulimit -a
Maximum size of core files created                          (kB, -c) unlimited
Maximum size of a process’s data segment                    (kB, -d) 1572864
Maximum size of files created by the shell                  (kB, -f) unlimited
Maximum size that may be locked into memory                 (kB, -l) 1346296
Maximum resident set size                                   (kB, -m) 4019136
Maximum number of open file descriptors                         (-n) 512
Maximum stack size                                          (kB, -s) 4096
Maximum amount of cpu time in seconds                  (seconds, -t) unlimited
Maximum number of processes available to a single user          (-u) 256
$ ulimit -d
1572864

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions