Project

General

Profile

Actions

Bug #13612

closed

Segmentation Fault

Added by rovf (Ronald Fischer) almost 7 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-cygwin]
[ruby-core:81466]

Description

I got a segmentation fault, fllowed by the message "You may have encountered a bug in the Ruby interpreter or extension libraries.". See attachment.

The exception occured in this piece of code:

  class EXPERT

    FIND_CHAIN_FOR_POS_FILTER_PIPELINE =
      [
        :no_filter,
        :filter_by_etkz_e,
        :filter_chain_in_chain,
      ].each

    def find_chain_for_pos(sw_lines_for_module, wsc_sw_lines)

      FIND_CHAIN_FOR_POS_FILTER_PIPELINE.rewind

      begin

        while NVP.multiple_grpids?(sw_lines_for_module)

          filter_method_symb = FIND_CHAIN_FOR_POS_FILTER_PIPELINE.next # <----- This is line 30, where the exception reportedly occured.

          sw_lines_for_module = NVP.send(filter_method_symb, br, sw_lines_for_module)

        end

      rescue StopIteration

        LOG.trace "Could not find unique GRPID"

      end

    end
  end

The segmentation fault occurs only after this method has been executed repeatedly several hundred times.


Files

ruby_segf.txt (18.5 KB) ruby_segf.txt Segmentation Fault information, as reported by Ruby rovf (Ronald Fischer), 05/30/2017 10:19 AM
segf_test.rb (1.49 KB) segf_test.rb rovf (Ronald Fischer), 05/30/2017 01:40 PM
segf_test_improved.rb (1.54 KB) segf_test_improved.rb Better example for reproducible error rovf (Ronald Fischer), 05/30/2017 02:04 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0