I have a very strange problem and can''t seem to figure it out. I have passenger 2.2.4 and apache 2.2 running a rails application. It ran fine for weeks when I decided to update Apache. I might also have messed with the users on this machine (OS X 10.5) Now when I start it, Apache starts up fine, loads passenger, and everything looks good. Then, after a while ( and I don''t know how long), when I just refresh any page, I get: bignum too big to convert into `long'' No entry in either log. Research this a little, I found that a bug in ruby doesn''t handle switching users well - a negative UID is read as a big number, which then throws this error. Looking into my user list, I can find only one negative UID - ''unprivileged user''. I might be able to switch this to a different UID, but would that not open a security hole? Also - why is this user even used? Has anybody else seen this before, and how did you fix it? Greatful for any help. Dietrich -- Posted via http://www.ruby-forum.com/.
Conrad Taylor
2009-Aug-18 02:24 UTC
Re: passenger - bignum too big to convert into `long''
On Mon, Aug 17, 2009 at 2:00 PM, Dietrich Speer < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I have a very strange problem and can''t seem to figure it out. > > I have passenger 2.2.4 and apache 2.2 running a rails application. > > It ran fine for weeks when I decided to update Apache. I might also have > messed with the users on this machine (OS X 10.5) > > Now when I start it, Apache starts up fine, loads passenger, and > everything looks good. > > Then, after a while ( and I don''t know how long), when I just refresh > any page, I get: > > bignum too big to convert into `long'' > > No entry in either log. > > Research this a little, I found that a bug in ruby doesn''t handle > switching users well - a negative UID is read as a big number, which > then throws this error. > > Looking into my user list, I can find only one negative UID - > ''unprivileged user''. I might be able to switch this to a different UID, > but would that not open a security hole? Also - why is this user even > used? > > Has anybody else seen this before, and how did you fix it? > > Greatful for any help. > > DietrichDietrich, is it possible for you to generate a minimal test case that reproduces this issue? -Conrad> > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Possibly Parallel Threads
- [ win32utils-Bugs-10555 ] wait call in while loop generate "bignum too big to convert into long" error
- [ win32utils-Bugs-13825 ] /win32-file-stat-1.2.5/lib/win32/file/stat.rb:81:in `at'': bignum too big to convert into `long'' (RangeError)
- [ win32utils-Bugs-10555 ] wait call in while loop generate "bignum too big to convert into long" error
- Switchtower problem - `sysread'': bignum too big to convert into `long'' (RangeError)
- RangeError (bignum too big to convert into `long'