-
-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always return an integer when asking for stack sizes because "when we convert the nil to an int in C bad things happen"...
- Loading branch information
David Rodríguez de Dios
committed
Apr 12, 2014
1 parent
35b2ca6
commit 39f8763
Showing
3 changed files
with
11 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39f8763
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deivid-rodriguez I think something in this commit causes a tailspin in the app that I was having trouble with #54 I'm trying to reproduce
39f8763
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm trying to reproduce in master but this hangs locally when I use master (as of d8a2e36):
39f8763
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:( just my luck!
And does it not happen if you apply you simpler patch? Thanks a lot for looking into this, I'm frustrated because I've never been able to reproduce it...
39f8763
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is a weird one because I can't reproduce the same thing on the byebug master repo directly or when I point my app to the local repo with the
gem 'byebug', path: '...'
option.39f8763
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So how exactly are you reproducing it? Only in your local fork?
39f8763
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inside the app that had trouble with #54, I added this to the Gemfile:
gem 'byebug', github: 'deivid-rodriguez/byebug'
and ran the stuff above in 39f8763#commitcomment-5992753I also pointed it to this SHA to see if it might have been d8a2e36. It fails on both.
gem 'byebug', github: 'deivid-rodriguez/byebug', ref: '39f8763c676ecaeb836a8c7a6c19b66f87b6b221'
39f8763
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So
gem ' byebug'
andgem 'byebug', path: '...'
work, butgem 'byebug', github: 'deivid-rodriguez/byebug'
andgem 'byebug', github: 'deivid-rodriguez/byebug', ref: '39f8763c676ecaeb836a8c7a6c19b66f87b6b221'
don't?This is so weird...
39f8763
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, exactly. I'm trying to figure out if bundler compiles byebug differently when it clones/builds it. Here's what I'm seeing in a new folder (not tied to the app I'm working on) and no versions of byebug installed locally:
39f8763
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, I think it was a bug in bundler version 1.5.3. I just upgraded to the latest version of bundler 1.6.1 and all three variations above work fine now.
Sorry about the spam.
39f8763
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think it's related to rubygems/bundler#2847 and rubygems/bundler@9007c94
I see that behavior with rubygems v2.2.2 and bundler v1.6.0, but it's fine with bundler v1.6.1. I guess this might be a heads up in case anyone else runs into the same thing and think it's a byebug issue.
39f8763
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks again! And no worries for the spam, as you said, it might turn out to be useful for someone!