开发者

Bus Error in RMagick when using Rack?

开发者 https://www.devze.com 2023-01-29 22:13 出处:网络
Running either alone works fine, but when running both together开发者_高级运维, it crashes hard, at what seems like Magick::Image#new (the first call I make to it).

Running either alone works fine, but when running both together开发者_高级运维, it crashes hard, at what seems like Magick::Image#new (the first call I make to it).

Edit: Request for code fulfilled below:

Under Ramaze, the issue can be reproduced like this

require 'ramaze'
require 'rmagick'

class ExceptionCauser < Ramaze::Controller
map '/'

  def index
    img = Magick::Image.new(64, 64)
  end

end

Ramaze.start :port => 7004

and then visiting 0.0.0.0:7004 will crash.


Can be fixed by recompiling Imagemagick using the --disable-openmp flag, as in Why is this RMagick call generating a segmentation fault? .

0

精彩评论

暂无评论...
验证码 换一张
取 消