Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging tests with auth fails. Failed to mlock: Cannot allocate locked memory. #38

Open
ComputeDragon opened this issue Dec 26, 2024 · 0 comments

Comments

@ComputeDragon
Copy link

ComputeDragon commented Dec 26, 2024

Steps to reproduce:

  1. Clone this repo
  2. Run a VSCode Debug test (not the normal test) on TestWithAuth and TestWithReplicaAndAuth
    2024-12-26_10-40
  3. Repeated the debug step with mongo versions 6.0.15 and 7.0.0
  4. This line in the debug log stands out
Failed to mlock: Cannot allocate locked memory. For more details see: https://dochub.mongodb.org/core/cannot-allocate-locked-memory: Operation not permitted

Additional Info

  • This error does not appear when running the test normally (meaning, non debug mode)
  • My go version is 1.19.3, delve version is 1.21.0
  • My ulimit -a is below, though I doubt it is related to ulimit, because the tests completes in non-debug mode
-t: cpu time (seconds)              unlimited
-f: file size (blocks)              unlimited
-d: data seg size (kbytes)          unlimited
-s: stack size (kbytes)             8192
-c: core file size (blocks)         0
-m: resident set size (kbytes)      unlimited
-u: processes                       127482
-n: file descriptors                1024
-l: locked-in-memory size (kbytes)  4089152
-v: address space (kbytes)          unlimited
-x: file locks                      unlimited
-i: pending signals                 127482
-q: bytes in POSIX msg queues       819200
-e: max nice                        0
-r: max rt priority                 0
-N 15: rt cpu time (microseconds)   unlimited

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant