cucumber / cucumber-ruby

Cucumber for Ruby. It's amazing!
https://cucumber.io
MIT License
5.18k stars 1.12k forks source link

segmentation fault error while running ruby project with Cucumber #800

Closed kasargee closed 9 years ago

kasargee commented 9 years ago

Hi, I tried Ruby1.9.3,Ruby 2.0.0,Ruby 2.1.5 64 bit and 32 bit versions along with watir 4.0.0,cucumber 2.0.1. But everytime I am getting segmentation fault error while reading step definition file. I have windows7 system and running project from commnad promt and using netbeans.

I read all blogs but could not solve it. I searched for rubydebuuger gem, but it was not installed while running bundle install. My Gemfile- gem "watir", "~>4.0" gem 'cucumber', '1.0.2'

gem "bundler", "1.2.3"

gem 'require_all', '1.2.1'

Error I got is- C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_step_definition.rb:38: [BUG] Segmentation fault ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]

-- Control frame information ----------------------------------------------- c:0021 p:0012 s:0090 e:000089 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_step_definition.rb:38 c:0020 p:0110 s:0087 e:000085 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_step_definition.rb:34 [FINISH] c:0019 p:---- s:0079 e:000078 CFUNC :new c:0018 p:0018 s:0073 e:000072 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_language.rb:128 c:0017 p:0013 s:0067 e:000066 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_dsl.rb:27 c:0016 p:0017 s:0062 e:000061 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_dsl.rb:106 c:0015 p:0087 s:0057 E:001884 TOP C:/workspace/QA_Regression/ClientLink_Regression/Sales_Objects/Inbound_Referrals/trunk/lib/features/step_definitions/opp210d_st [FINISH] c:0014 p:---- s:0055 e:000054 CFUNC :load c:0013 p:0018 s:0051 e:000050 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_language.rb:143 c:0012 p:0039 s:0047 e:000046 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:176 c:0011 p:0009 s:0042 e:000041 BLOCK C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:78 [FINISH] c:0010 p:---- s:0039 e:000038 CFUNC :each c:0009 p:0018 s:0036 e:000035 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:77 c:0008 p:0027 s:0032 e:000031 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/runtime.rb:137 c:0007 p:0007 s:0028 e:000027 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/runtime.rb:39 c:0006 p:0070 s:0024 e:000023 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/cli/main.rb:43 c:0005 p:0011 s:0018 e:000017 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/cli/main.rb:20 c:0004 p:0169 s:0014 e:000013 TOP C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/bin/cucumber:14 [FINISH] c:0003 p:---- s:0010 e:000009 CFUNC :load c:0002 p:0135 s:0006 E:000424 EVAL C:/Ruby21/bin/cucumber:23 [FINISH] c:0001 p:0000 s:0002 E:0025fc TOP [FINISH]

C:/Ruby21/bin/cucumber:23:in <main>' C:/Ruby21/bin/cucumber:23:inload' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/bin/cucumber:14:in <top (required)>' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/cli/main.rb:20:inexecute' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/cli/main.rb:43:in execute!' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/runtime.rb:39:inrun!' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/runtime.rb:137:in load_step_definitions' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:77:inload_files!' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:77:in each' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:78:inblock in load_files!' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:176:in load_file' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_language.rb:143:inload_code_file' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_language.rb:143:in load' C:/workspace/QA_Regression/ClientLink_Regression/Sales_Objects/Inbound_Referrals/trunk/lib/features/step_definitions/opp210d_steps.rb:199:in<top (required)>' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_dsl.rb:106:in register_rb_step_definition' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_dsl.rb:27:inregister_rb_step_definition' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_language.rb:128:in register_rb_step_definition' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_language.rb:128:innew' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_step_definition.rb:34:in initialize' C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_step_definition.rb:38:inregexp_source'

-- C level backtrace information ------------------------------------------- C:\Windows\SysWOW64\ntdll.dll(ZwWaitForSingleObject+0x15) [0x77C7F8D1] C:\Windows\syswow64\kernel32.dll(WaitForSingleObjectEx+0x43) [0x77521194] C:\Windows\syswow64\kernel32.dll(WaitForSingleObject+0x12) [0x77521148] C:\Ruby21\bin\msvcrt-ruby210.dll(rb_vm_bugreport+0xa7) [0x6D394A17] C:\Ruby21\bin\msvcrt-ruby210.dll(rb_name_err_mesg_new+0x69f) [0x6D248F7F] C:\Ruby21\bin\msvcrt-ruby210.dll(rb_bug+0x2e) [0x6D249D5E] C:\Ruby21\bin\msvcrt-ruby210.dll(rb_check_safe_str+0x34b) [0x6D31486B] [0x00401866] C:\Windows\SysWOW64\ntdll.dll(RtlKnownExceptionFilter+0xb7) [0x77CD7477]

-- Other runtime information -----------------------------------------------

mattwynne commented 9 years ago

I'm not sure how to help you. This looks like maybe a bug in the version of Ruby you're using. @aslakhellesoy any ideas?

kasargee commented 9 years ago

I have raised same issue for Ruby as well.But they say it as third party issue. I could see error is thrown in C:/Ruby21/lib/ruby/gems/2.1.0/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_step_definition.rb:38: [BUG] Segmentation fault ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32].

kasargee commented 9 years ago

I even tried Ruby193 as per https://github.com/cucumber/cucumber/issues/406 but no sucess.. Below is the error message: C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/core_ext/proc.rb:16: [BUG] Segmentation fault ruby 1.9.3p551 (2014-11-13) [i386-mingw32]

-- Control frame information ----------------------------------------------- c:0028 p:---- s:0111 b:0111 l:000110 d:000110 CFUNC :match c:0027 p:0024 s:0107 b:0107 l:000106 d:000106 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/core_ext/proc.rb:16 c:0026 p:0013 s:0101 b:0101 l:000100 d:000100 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_step_definition.rb:74 c:0025 p:0145 s:0098 b:0096 l:000095 d:000095 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_step_definition.rb:34 c:0024 p:---- s:0089 b:0089 l:000088 d:000088 FINISH c:0023 p:---- s:0087 b:0087 l:000086 d:000086 CFUNC :new c:0022 p:0022 s:0081 b:0081 l:000080 d:000080 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_language.rb:128 c:0021 p:0017 s:0075 b:0075 l:000074 d:000074 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_dsl.rb:27 c:0020 p:0021 s:0070 b:0070 l:000069 d:000069 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_dsl.rb:106 c:0019 p:0083 s:0065 b:0065 l:00084c d:00084c TOP H:/Inbound_Referrals/trunk/lib/features/step_definitions/opp201dreferralaudit_steps.rb:92 c:0018 p:---- s:0063 b:0063 l:000062 d:000062 FINISH c:0017 p:---- s:0061 b:0061 l:000060 d:000060 CFUNC :load c:0016 p:0026 s:0057 b:0057 l:000056 d:000056 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_language.rb:143 c:0015 p:0055 s:0053 b:0053 l:000052 d:000052 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:176 c:0014 p:0012 s:0048 b:0048 l:000039 d:000047 BLOCK C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:78 c:0013 p:---- s:0045 b:0045 l:000044 d:000044 FINISH c:0012 p:---- s:0043 b:0043 l:000042 d:000042 CFUNC :each c:0011 p:0030 s:0040 b:0040 l:000039 d:000039 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:77 c:0010 p:0039 s:0036 b:0036 l:000035 d:000035 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/runtime.rb:137 c:0009 p:0011 s:0032 b:0032 l:000031 d:000031 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/runtime.rb:39 c:0008 p:0098 s:0028 b:0028 l:000027 d:000027 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/cli/main.rb:43 c:0007 p:0019 s:0022 b:0022 l:000021 d:000021 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/cli/main.rb:20 c:0006 p:0220 s:0018 b:0018 l:000017 d:000017 TOP C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/bin/cucumber:14 c:0005 p:---- s:0014 b:0014 l:000013 d:000013 FINISH c:0004 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC :load c:0003 p:0167 s:0008 b:0008 l:000234 d:0001cc EVAL C:/Ruby193/bin/cucumber:23 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:000234 d:000234 TOP

-- Ruby level backtrace information ---------------------------------------- C:/Ruby193/bin/cucumber:23:in <main>' C:/Ruby193/bin/cucumber:23:inload' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/bin/cucumber:14:in <top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/cli/main.rb:20:inexecute' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/cli/main.rb:43:in execute!' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/runtime.rb:39:inrun!' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/runtime.rb:137:in load_step_definitions' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:77:inload_files!' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:77:in each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:78:inblock in load_files!' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/runtime/support_code.rb:176:in load_file' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_language.rb:143:inload_code_file' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_language.rb:143:in load' H:/Inbound_Referrals/trunk/lib/features/step_definitions/opp201dreferralaudit_steps.rb:92:in<top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_dsl.rb:106:in register_rb_step_definition' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_dsl.rb:27:inregister_rb_step_definition' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_language.rb:128:in register_rb_step_definition' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_language.rb:128:innew' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_step_definition.rb:34:in initialize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_step_definition.rb:74:infile_colon_line' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/core_ext/proc.rb:16:in file_colon_line' C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.0.2/lib/cucumber/core_ext/proc.rb:16:inmatch'

-- C level backtrace information ------------------------------------------- C:\Windows\SysWOW64\ntdll.dll(ZwWaitForSingleObject+0x15) [0x77a7f8d1] C:\Windows\syswow64\kernel32.dll(WaitForSingleObjectEx+0x43) [0x75711194] C:\Windows\syswow64\kernel32.dll(WaitForSingleObject+0x12) [0x75711148] C:\Ruby193\bin\msvcrt-ruby191.dll(rb_vm_bugreport+0xf9) [0x62e7c9d9] C:\Ruby193\bin\msvcrt-ruby191.dll(rb_name_err_mesg_new+0x186) [0x62d41436] C:\Ruby193\bin\msvcrt-ruby191.dll(rb_bug+0x2f) [0x62d4229f] C:\Ruby193\bin\msvcrt-ruby191.dll(rb_check_safe_str+0x1f0) [0x62e04220] [0x004011e6] C:\Ruby193\lib\ruby\gems\1.9.1\gems\watir-classic-3.7.0\lib\watir-classic\IEDialog\Release\IEDialog.dll(DoButtonClick+0x5215) [0x10006985] C:\Windows\SysWOW64\ntdll.dll(RtlKnownExceptionFilter+0xb7) [0x77ad7477]

-- Other runtime information -----------------------------------------------

Is Gherkin supporting any ruby version other than Ruby187. I tried with almost many ruby versions after Ruby187. I want to use watir webdriver and its dependent gems but latest ruby gems require higher version of Ruby. They dont get installed on ruby187. So wanted to upgrade with Ruby193 or higher, but facing segmentation fault errror. Please guide.

mattwynne commented 9 years ago

Could you please put together a minimal GitHub repo that reproduces the problem so that we can investigate?

@os97673 do you have time to look into this?

os97673 commented 9 years ago

@os97673 do you have time to look into this?

@mattwynne I could try but I suspect that cucumber 1.0.2 is just binary incompatible with modern rubies. I'd suggest to migrate to the latest 1.3.x cucumber first (at least we will be sure we know how to build it ;) @kasargee is it possible to migrate your code to a new cucumber?

kasargee commented 9 years ago

I have tried with Ruby1.9.3 with Cucumber 1.3.1, still segmentation error.

ERROR: The process "iexplore.exe" not found. C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/lib/cucumber/rb_support/rb_step_definition.rb:28: [BUG] Segmentation fault ruby 1.9.3p551 (2014-11-13) [i386-mingw32]

-- Control frame information ----------------------------------------------- c:0022 p:0012 s:0088 b:0088 l:000087 d:000087 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/lib/cucumber/rb_support/rb_step_definition.rb:28 c:0021 p:0024 s:0081 b:0081 l:000080 d:000080 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/lib/cucumber/rb_support/rb_language.rb:107 c:0020 p:0023 s:0074 b:0074 l:000073 d:000073 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/lib/cucumber/rb_support/rb_dsl.rb:27 c:0019 p:0042 s:0068 b:0068 l:000067 d:000067 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/lib/cucumber/rb_support/rb_dsl.rb:113 c:0018 p:0011 s:0060 b:0060 l:0021cc d:0021cc TOP H:/Inbound_Referrals/trunk/lib/features/step_definitions/SVP_to_CL_Steps.rb:2 c:0017 p:---- s:0058 b:0058 l:000057 d:000057 FINISH c:0016 p:---- s:0056 b:0056 l:000055 d:000055 CFUNC :load c:0015 p:0026 s:0052 b:0052 l:000051 d:000051 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/lib/cucumber/rb_support/rb_language.rb:122 c:0014 p:0055 s:0048 b:0048 l:000047 d:000047 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/lib/cucumber/runtime/support_code.rb:180 c:0013 p:0012 s:0043 b:0043 l:000034 d:000042 BLOCK C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/lib/cucumber/runtime/support_code.rb:83 c:0012 p:---- s:0040 b:0040 l:000039 d:000039 FINISH c:0011 p:---- s:0038 b:0038 l:000037 d:000037 CFUNC :each c:0010 p:0030 s:0035 b:0035 l:000034 d:000034 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/lib/cucumber/runtime/support_code.rb:82 c:0009 p:0039 s:0031 b:0031 l:000030 d:000030 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/lib/cucumber/runtime.rb:183 c:0008 p:0011 s:0027 b:0027 l:000026 d:000026 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/lib/cucumber/runtime.rb:42 c:0007 p:0098 s:0023 b:0023 l:000022 d:000022 METHOD C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/lib/cucumber/cli/main.rb:47 c:0006 p:0224 s:0016 b:0016 l:000015 d:000015 TOP C:/Ruby193/lib/ruby/gems/1.9.1/gems/cucumber-1.3.1/bin/cucumber:13 c:0005 p:---- s:0014 b:0014 l:000013 d:000013 FINISH c:0004 p:---- s:0012 b:0012 l:000011 d:000011 CFUNC :load c:0003 p:0167 s:0008 b:0008 l:001194 d:002524 EVAL C:/Ruby193/bin/cucumber:23 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:001194 d:001194 TOP

os97673 commented 9 years ago

Could you please put together a minimal GitHub repo that reproduces the problem so that we can investigate?

kasargee commented 9 years ago

I can't create repo in client network. I have craeted Ruby project. My Gemfile-

gem "watir", "~>4.0" gem 'cucumber', '1.3.1'

My env.rb file - require 'watir' require 'delegate'

require 'win32ole' system('taskkill /IM iexplore.exe /F')

$browser = Watir::Browser.new :ie
$browser.goto "http://www.indianrail.gov.in" 

I have created one ruby file and 1 cucumber file based on indianrail.gov.in.

os97673 commented 9 years ago

Unfortunately "one ruby file and 1 cucumber file based on indianrail.gov.in" is not very informative for me :( Still need a test.

mattwynne commented 9 years ago

Without a way to reproduce this, we can't fix it. We'll be happy to re-open this ticket if you can supply us with that.

gaurav-lad commented 9 years ago

Hi, I have similar issue, i am new to Cucumber, please help

E:\Gmail_login>selenium-cucumber gen

----------Question---------- I'm about to create a subdirectory called features. features will contain all your project tests.

Please hit return to confirm that's what you want.

C:/Ruby21/lib/ruby/gems/2.1.0/gems/selenium-cucumber-2.1.3/bin/generate.rb:12: [BUG] Segmentation fault ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]

-- Control frame information ----------------------------------------------- c:0006 p:---- s:0019 e:000018 CFUNC :gets c:0005 p:0052 s:0016 E:000174 METHOD C:/Ruby21/lib/ruby/gems/2.1.0/gems/selenium-cucumber-2.1.3/bin/generate.rb:12 c:0004 p:0241 s:0013 e:000012 TOP C:/Ruby21/lib/ruby/gems/2.1.0/gems/selenium-cucumber-2.1.3/bin/selenium-cucumber:23 [FINISH] c:0003 p:---- s:0010 e:000009 CFUNC :load c:0002 p:0135 s:0006 E:000284 EVAL C:/Ruby21/bin/selenium-cucumber:23 [FINISH] c:0001 p:0000 s:0002 E:000aac TOP [FINISH]

C:/Ruby21/bin/selenium-cucumber:23:in <main>' C:/Ruby21/bin/selenium-cucumber:23:inload' C:/Ruby21/lib/ruby/gems/2.1.0/gems/selenium-cucumber-2.1.3/bin/selenium-cucumber:23:in <top (required)>' C:/Ruby21/lib/ruby/gems/2.1.0/gems/selenium-cucumber-2.1.3/bin/generate.rb:12:inselenium_cucumber_scaffold' C:/Ruby21/lib/ruby/gems/2.1.0/gems/selenium-cucumber-2.1.3/bin/generate.rb:12:in `gets'

-- C level backtrace information ------------------------------------------- C:\Windows\SYSTEM32\ntdll.dll(KiFastSystemCallRet+0x0) [0x77827094] C:\Windows\system32\kernel32.dll(WaitForSingleObjectEx+0x43) [0x76E1C313] C:\Windows\system32\kernel32.dll(WaitForSingleObject+0x12) [0x76E1C2C2] C:\Ruby21\bin\msvcrt-ruby210.dll(rb_vm_bugreport+0xa7) [0x6D394A17] C:\Ruby21\bin\msvcrt-ruby210.dll(rb_name_err_mesg_new+0x69f) [0x6D248F7F] C:\Ruby21\bin\msvcrt-ruby210.dll(rb_bug+0x2e) [0x6D249D5E] C:\Ruby21\bin\msvcrt-ruby210.dll(rb_check_safe_str+0x34b) [0x6D31486B] [0x00401866] C:\Windows\SYSTEM32\ntdll.dll(EtwReplyNotification+0x366) [0x77857F02]

-- Other runtime information -----------------------------------------------

[NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

E:\Gmail_login>

aslakhellesoy commented 9 years ago

@gaurav-lad:

The selenium-cucumber gem is not written by or supported by the cucumber team. Pleasecontact ghe author of that gem.

As a general rule, don't comment on closed issues. Open a new one instead.

gaurav-lad commented 9 years ago

Sorry Team, But i would like to suggest the users who may come to this post, My issue got resolved when i moved to Ruby 2.1.6 from Ruby 2.1.5

@aslakhellesoy: Sorry for using closed issue more over it was not related to selenium-cucumber team.

Thanks

lock[bot] commented 6 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.