-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
SystemStackError: stack level too deep #665
Comments
@Darhazer Do you have time to take a look at this one? |
I can't reproduce with the code snipped posted. @alexandru-calinoiu can you include the output of |
Here is the docker file I am using:
The output for
|
Reproduced on the docker setup. |
Do |
It might be related to this |
It looks like it, I get the same error sometimes when I try to run rspec or cucumber. |
Can we do something about this error by changing the code in this repository or |
With the latest docker version I have not received this error anymore. |
Seems this is not a problem anymore, should we close this? |
Seems reasonable to me. It can always be re-opened if the issue recurs. |
This comment has been minimized.
This comment has been minimized.
Facing this error as well with Versions: / # ruby --version
ruby 3.2.1 (2023-02-08 revision 31819e82c8) [x86_64-linux-musl]
/ # bundle --version
Bundler version 2.4.6
/ # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.17.3
PRETTY_NAME="Alpine Linux v3.17"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
/
/ # docker --version
Docker version 23.0.6, build ef23cbc
/ #
Setting these env vars to increase te stack thread size does not help either: $ export PTHREAD_STACK_MIN=8388608
$ export RUBY_THREAD_MACHINE_STACK_SIZE=8388608
$ export RUBY_THREAD_VM_STACK_SIZE=8388608
$ ruby -ve 'p RubyVM::DEFAULT_PARAMS'
ruby 3.2.1 (2023-02-08 revision 31819e82c8) [x86_64-linux-musl]
{:thread_vm_stack_size=>8388608, :thread_machine_stack_size=>8388608, :fiber_vm_stack_size=>131072, :fiber_machine_stack_size=>524288}
$ ulimit -a
real-time non-blocking time (microseconds, -R) unlimited
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 125107
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1048576
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited I've also tried:
It works locally with similar versions, and the stack thread size is also way lower:
Any ideas? |
Can you please the rubocop debug output and the minimal spec code that would allow to reproduce the issue, @houdinisparks ? |
I constantly receive this error on a project with a relatively modest number of tests.
Happening in version 1.27.0 with ruby 1.5.1
Here is the full stack trace:
And here is the spec that is failing:
It only seems to happen in docker machine.
The text was updated successfully, but these errors were encountered: