Segmentation fault - Ruby 1.8.7 and Rails 3.1.3

HI,

I use the ruby 1.8.7 there are a good time, and I use this version of
ruby with rails 3.0.x since of release of this version of rails. And I
never got a Segmentation fault error. But now, after start develop the
ruby 1.8.7 with the rails 3.1.3, when I execute the webrick and I surf
the application, I have the error below:

/usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/utils.rb:380: [BUG]
Segmentation fault
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]

The error is very inconstant , sometime happens with httputils of the
webrick and sometimes with the rack.
Maybe the error have some relation with assets pipe line, because the
errors happen before of some process like this:

Started GET “/assets/wymeditor/wymeditor/lang/zh_cn.js?body=1” for
127.0.0.1 at Wed Dec 28 09:22:23 -0200 2011
cache: [GET /assets/wymeditor/wymeditor/lang/zh_cn.js?body=1] stale,
valid, store
Served asset /wymeditor/wymeditor/lang/zh_cn.js - 304 Not Modified (1ms)

Started GET
“/assets/wymeditor/wymeditor/plugins/embed/jquery.wymeditor.embed.js?body=1”
for 127.0.0.1 at Wed Dec 28 09:22:23 -0200 2011

Anybody can help me, about this issue. Since now I thanks for any help.

Thanks

You need to somehow isolate the problem as much as possible.

Ideally into one simple .rb file that reproduces this problem.

Try to narrow it down as much as possible.

On Dec 28, 2011, at 03:44 , Rodrigo Emygdio wrote:

The error is very inconstant , sometime happens with httputils of the
webrick and sometimes with the rack.
Maybe the error have some relation with assets pipe line, because the
errors happen before of some process like this:

Started GET “/assets/wymeditor/wymeditor/lang/zh_cn.js?body=1” for
127.0.0.1 at Wed Dec 28 09:22:23 -0200 2011
cache: [GET /assets/wymeditor/wymeditor/lang/zh_cn.js?body=1] stale,
valid, store
Served asset /wymeditor/wymeditor/lang/zh_cn.js - 304 Not Modified (1ms)

Do you have therubyracer installed? That’s the only C extension that I
know of related to the asset pipeline.

-----Messaggio originale-----
Da: Rodrigo Emygdio [mailto:[email protected]]
Inviato: mercoled 28 dicembre 2011 12:44
A: ruby-talk ML
Oggetto: Segmentation fault - Ruby 1.8.7 and Rails 3.1.3

HI,

I use the ruby 1.8.7 there are a good time, and I use this version of
ruby
with rails 3.0.x since of release of this version of rails. And I never
got
a Segmentation fault error. But now, after start develop the ruby 1.8.7
with
the rails 3.1.3, when I execute the webrick and I surf the application,
I
have the error below:

/usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/utils.rb:380: [BUG]
Segmentation fault ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]

The error is very inconstant , sometime happens with httputils of the
webrick and sometimes with the rack.
Maybe the error have some relation with assets pipe line, because the
errors
happen before of some process like this:

Started GET “/assets/wymeditor/wymeditor/lang/zh_cn.js?body=1” for
127.0.0.1 at Wed Dec 28 09:22:23 -0200 2011
cache: [GET /assets/wymeditor/wymeditor/lang/zh_cn.js?body=1] stale,
valid,
store Served asset /wymeditor/wymeditor/lang/zh_cn.js - 304 Not Modified
(1ms)

Started GET
“/assets/wymeditor/wymeditor/plugins/embed/jquery.wymeditor.embed.js?body=1”
for 127.0.0.1 at Wed Dec 28 09:22:23 -0200 2011

Anybody can help me, about this issue. Since now I thanks for any help.

Thanks


Posted via http://www.ruby-forum.com/.


Caselle da 1GB, trasmetti allegati fino a 3GB e in piu’ IMAP, POP3 e
SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f

Sponsor:
Capodanno al parco Oltremare Riccione: Pacchetto hotel 3 stelle in
centro + ingresso al parco.

Ryan D. wrote in post #1038499:

On Dec 28, 2011, at 03:44 , Rodrigo Emygdio wrote:

The error is very inconstant , sometime happens with httputils of the
webrick and sometimes with the rack.
Maybe the error have some relation with assets pipe line, because the
errors happen before of some process like this:

Started GET “/assets/wymeditor/wymeditor/lang/zh_cn.js?body=1” for
127.0.0.1 at Wed Dec 28 09:22:23 -0200 2011
cache: [GET /assets/wymeditor/wymeditor/lang/zh_cn.js?body=1] stale,
valid, store
Served asset /wymeditor/wymeditor/lang/zh_cn.js - 304 Not Modified (1ms)

Do you have therubyracer installed? That’s the only C extension that I
know of related to the asset pipeline.

Hi,
Thanks for your help! I use the coffeescript and node.js in my
application, I saw some issues about V8 and therubyracer.
At this moment I disabled the assets pipeline and all works well.
I believe there is some incompatibility with the ruby 1.8.7, and the new
way of asstes of rails 3.1.
Thanks

Marc H. wrote in post #1038497:

You need to somehow isolate the problem as much as possible.

Ideally into one simple .rb file that reproduces this problem.

Try to narrow it down as much as possible.

Hi,
I made all the isolation in the code base, and I have a good coverage
of test , that help a lot. Yesterday, I did a great debug in the all
stack of the framework, line by line, and the error just appeared when
the rack handle the assets, as follow:

/usr/lib/ruby/1.8/webrick/httpserver.rb:50
while timeout > 0
(rdb:2) n
[2011-12-28 16:22:52] ERROR #Class:0xb6614868: execution expired
/usr/lib/ruby/1.8/timeout.rb:64:in timeout' /usr/lib/ruby/1.8/timeout.rb:101:intimeout’
/usr/lib/ruby/1.8/webrick/httprequest.rb:326:in _read_data' /usr/lib/ruby/1.8/webrick/httprequest.rb:337:inread_line’
/usr/lib/ruby/1.8/webrick/httprequest.rb:240:in read_header' /usr/lib/ruby/1.8/webrick/httprequest.rb:88:inparse’
/usr/lib/ruby/1.8/webrick/httpserver.rb:56:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start' /usr/lib/ruby/1.8/webrick/server.rb:162:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/lib/ruby/1.8/webrick/server.rb:92:ineach’
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' /usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/handler/webrick.rb:13:inrun’
/usr/lib/ruby/gems/1.8/gems/rack-1.3.5/lib/rack/server.rb:265:in
start' /usr/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/commands/server.rb:70:instart’
/usr/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/commands.rb:54
/usr/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/commands.rb:49:in
tap' /usr/lib/ruby/gems/1.8/gems/railties-3.1.3/lib/rails/commands.rb:49 script/rails:6:inrequire’
script/rails:6
/usr/lib/ruby/1.8/webrick/httpserver.rb:51
break if IO.select([sock], nil, nil, 0.5)

I believe there is some incompatibility with the ruby 1.8.7, and the new
way of asset of rails 3.1. At this moment I disabled the asset pipeline,
coffeescript and sass. And I didn’t got more the error.

All my features of cucumber and spec are in green

Thanks a lot

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs