instedd / verboice

Open source toolkit for voice services; with special focus to the needs of medium- and low-income countries, scalable services, and interacting with vulnerable populations
http://verboice.instedd.org/
GNU General Public License v3.0
45 stars 18 forks source link

The rubyracer gem sometimes segfaults and crashes the verboice asterisk adapter #97

Open waj opened 9 years ago

waj commented 9 years ago

Here is the trace:

STREAM FILE verboice/8508dfe5df7dd9d16326d01f1c8edaa5 "" << 200 result=0 endpos=20160 /gems/therubyracer-0.9.9/lib/v8/context.rb:96: [BUG] Segmentation fault ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]

-- Control frame information ----------------------------------------------- c:0024 p:---- s:0078 b:0078 l:000077 d:000077 CFUNC :Enter

full trace attached...

What is the rubyracer gem being used for? Can we remove it?


waj commented 9 years ago

That gem provides the interface with V8, the Javascript engine. So strange it's failing for you. It never crashed like that in our servers (so far...).

Seems like there is a new version of the Gem (0.10.1) but I didn't checked the changelog. Could you please test upgrading the version to see if that helps?


waj commented 9 years ago

Hey Juan,

I updated the ruby racer to (0.10.1) but I still get the same segfault. It happens very often like every 2 or 3 calls. FYI the segfault is happening on this line: /gems/therubyracer-0.10.1/lib/v8/context.rb:100 in the Enter() function which also looks strange to me.

I know that the Ruby Racer has some native extensions so I'll see if anyone else has had this problem on Ubuntu.


waj commented 9 years ago

This maybe related: I haven't tried the solution mentioned at the bottom of the comments yet though: https://github.com/cowboyd/therubyracer/issues/96


waj commented 9 years ago

Note: I just tried the solution in the issue above but it still segfaults:

{{{

bundle show libv8

}}}

gems/libv8-3.3.10.4-x86_64-linux