Gentoo Linux, 2.6 kernel, Ramaze 2009.01, Rack 0.9.1. Running strace
on it showed a tonne of stuff on startup, finally ending with:
futex(0x81ad2dc, FUTEX_WAIT, 5, NULL
And then when you hit the server, there is no further strace output
whatsoever until you ^C the process. I can't explain this. :)
--
Pistos
http://blog.purepistos.net
Does this happen every time?
^ manveru
Yes, 100% reproducible. For example, with code like this:
http://gist.github.com/61840
--
Pistos
http://blog.purepistos.net
My discovery is that you don't even need the index page or the
controller. Simply request the static css file directly.
That's so very weird... strace shows that it is caught in a
"sched_yield()" loop, but the same works fine with the innate branch,
will see if i can find the problem.
^ manveru
OK, fixed and pushed:
http://github.com/manveru/ramaze/commit/244b7a6e97ea1c196e9a3302d43c98e5de469843
^ manveru
> OK, fixed and pushed:
> http://github.com/manveru/ramaze/commit/244b7a6e97ea1c196e9a3302d43c98e5de469843
>
> ^ manveru
care to explain that? very interesting ;-)
a @ http://codeforpeople.com/
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama
Good question, but I have no idea about the real reason.
I asked Matz a few months ago to let Fiber::new call #initialize like
any other class.
The definition of Fiber::new was needed before he merged that into 1.9.
Now ::new and #initialize seem to have actual functionality wich we
prevented from running.
Using proper subclassing fixes that.
^ manveru
> Good question, but I have no idea about the real reason.
> I asked Matz a few months ago to let Fiber::new call #initialize like
> any other class.
> The definition of Fiber::new was needed before he merged that into
> 1.9.
> Now ::new and #initialize seem to have actual functionality wich we
> prevented from running.
> Using proper subclassing fixes that.
wow - really interesting.
thanks for sharing.
Wow, nice work. Thanks!
(Haven't confirmed that it works locally, but I trust you.)
Since I prefer official gems that I can latch onto the version over
github snapshots, any thoughts on when a next release might be coming?
You know the nice thing about our current versioning scheme? We can
push out new versions whenever we want :)
Will push a new version to github tomorrow, maybe Pistos can put the
gem up on rubyforge then.
^ manveru
> You know the nice thing about our current versioning scheme? We can
> push out new versions whenever we want :)
> Will push a new version to github tomorrow, maybe Pistos can put the
> gem up on rubyforge then.
>
> ^ manveru
i had an idea the other day about installing gem installers on
rubyforge - using extconf.rb one could actually install from github.
so maybe ramaze and ramze-bleeding-edge are both gems on rubyforge,
the later simple abuses extconf.rb and pulls from github. all this
does is prevent people from hunting around and provides some
connection between official projects and their respective github
account-gems, but it might be nice.
That's actually my department; and this bugfix is probably as good a
reason as any to push a release out. I'll talk it over with manveru
and barring any vetoes, will aim to get 2009.02 out this weekend.
--
Pistos
http://blog.purepistos.net
The above wasn't the actual fix, i fear... That somehow worked
temporarily for me but there was another issue that i fixed in the
meanwhile. Would be nice if you guys could try it out on windows/osx
since i can only confirm it for linux.
http://github.com/manveru/ramaze/commit/8d82a6c70787bf53a087bc725d93f65a95ac09af
http://github.com/manveru/ramaze/commit/1f6a3e193d85d646f9d93383239a10b772ac81b6
The problem seems to be that the header.each while assigning would
result in an endless loop in 1.9.1.
^ manveru
Patches welcome :)
^ manveru
On Sat, 14 Feb 2009 21:42:18 +0900, Michael Fellinger
<m.fel...@gmail.com> wrote:
> The above wasn't the actual fix, i fear... That somehow worked
> temporarily for me but there was another issue that i fixed in the
> meanwhile. Would be nice if you guys could try it out on windows/osx
> since i can only confirm it for linux.
>
> http://github.com/manveru/ramaze/commit/8d82a6c70787bf53a087bc725d93f65a95ac09af
> http://github.com/manveru/ramaze/commit/1f6a3e193d85d646f9d93383239a10b772ac81b6
>
> The problem seems to be that the header.each while assigning would
> result in an endless loop in 1.9.1.
>
> ^ manveru
Nice work!!
My application is working on Windows XP/Mac OS X.
Using servers are WEBrick and Mongrel.
Maybe this problem is the same in the following code.
h = {1 => nil, 2 => nil}
h.each do |k, v|
h.delete k
h[k] = v
end
This code works in Ruby 1.8, but doesn't works in Ruby 1.9.
Umm...
tama
--
tama <repea...@gmail.com>
http://profile.livedoor.com/repeatedly/
メンバー募集中
http://sites.google.com/site/tpfreaks/