Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9266719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:23:01+00:00 2026-06-18T14:23:01+00:00

I have created a brand new rails project using the command rails new qbc

  • 0

I have created a brand new rails project using the command
rails new qbc --database=mysql. It creates all the files perfectly fine, but
at the bundle install it errors out

$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/usr/bin/bundle:23: stack level too deep (SystemStackError)

gist.github.com/3956513

I have searched and searched for the solution to this issue but I can’t seem to
find anyone else who has experienced it. I am developing on Cygwin and I
wouldn’t be surprised if that has something to do with it.

I tried creating a Gemfile with just the source and one gem in it in an empty
directory and bundle install still gives the same error. I have followed all of
the troubleshooting steps, reinstalled Cygwin and all packages, everything. What
keeps catching my eye is the Fetching gem metadata twice…is it possible that
bundler is caught in some kind of loop?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:23:02+00:00Added an answer on June 18, 2026 at 2:23 pm

    Cygwin’s pthread_attr_getstack reports about 90k by default. I think Cygwin is reporting the committed (used-so-far) stack size, not the reserved (total available) size. Then Ruby is treating that (i.e. 90k) as the maximum stack size ever.

    To change the initial committed stack size:

    peflags -X409600 `which ruby`
    

    Note the capitalized -X. Lowercase -x changes reserved stack size, not initially-committed stack space.

    This fixes all Ruby+Rails+Cygwin issues for me.

    I don’t know Ruby or Cygwin internals well enough to know which is the right fix, but it’s probably one of these.

    • Cygwin reports reserved stack size from pthread_attr_getstack.
    • Ruby adds a build step to run the peflags command above.
    • Ruby determines the available stack space a different way.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using asp.net framework 4 and i have created brand new project and
I have a brand new Rails 3.1rc4 project. After generating a scaffold, migrating and
I'm brand new to Rails. I have one Rails project on my machine, but
I have created two brand new solutions using the latest VS 2010: C# console
I created a brand new project using the default Web Application template and I
I created a new project using aspx visual studio 2010. All I am trying
I'm brand new to all things AWS, and trying to boot up my Rails
I have a simple rails app using devise--as such (and being a new rails
I'm brand new to rails, and have inherited an app I'm trying to make
i tried setting up devise with a brand new rails app, i have devise

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.