Project

General

Profile

Actions

Bug #12670

closed

Segmentation fault on `Magick::Image#get_pixels` on ruby since ruby-2.2

Added by ShockwaveNN (Pavel Lobashov) over 7 years ago. Updated over 6 years ago.

Status:
Closed
Target version:
-
[ruby-core:76837]

Description

  1. Create test.rb this code
require 'rmagick'
include Magick

(0..10).each do |_|
  ImageList.new('1.bmp').get_pixels(0, 0, 1600, 800).each_slice(1600).to_a
end
  1. Create any 1.bmp file with dimension at least 1600*800 (Include zip file with it, extract it in directory with test.tb)
  2. Install ruby 2.1.9 (via RVM for example) and run
  ruby -v # ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-linux]
  ruby test.rb # Nothing output, all good
  1. Install ruby 2.3.1 (via RVM for example) and run
  ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
  ruby test.rb # You get a big log of Segmentation failed

I issued an problem on rmagick issue tracker (https://github.com/rmagick/rmagick/issues/212) but there is no progress at all
So I thought since both rubies use same version of rmagick I think problem may be in ruby itself.


Files

out.log (25.8 KB) out.log Segmentation fault at 0x0000000000001c ShockwaveNN (Pavel Lobashov), 08/11/2016 12:22 PM
1.bmp.zip (37.7 KB) 1.bmp.zip zip file with bmp ShockwaveNN (Pavel Lobashov), 08/11/2016 12:24 PM
core_dump.log (23.5 KB) core_dump.log ShockwaveNN (Pavel Lobashov), 11/04/2016 10:26 AM
Dockerfile (667 Bytes) Dockerfile wanabe (_ wanabe), 11/05/2016 04:41 PM
segv.c (306 Bytes) segv.c wanabe (_ wanabe), 05/22/2017 12:28 AM
segv.rb (209 Bytes) segv.rb wanabe (_ wanabe), 05/22/2017 12:28 AM
segv.c (365 Bytes) segv.c wanabe (_ wanabe), 05/22/2017 05:03 AM

Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #13900: Segmentation fault - 2 different machinesClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0