(Just posting this in case someone else has a similar error and needs
a little help. Hopefully a Google search will direct to this post.)

I've just installed Ruby 1.9.1 (via these instructions:
http://wiki.openqa.org/display/WTR/Install+Ruby) and in attempting to
get Watir working received the following error:


- - - - - - - - - -

irb(main):002:0> $browser = Watir::IE.new
C:/Ruby19/lib/ruby/gems/1.9.1/gems/win32-api-1.4.6-x86-mingw32/lib/
win32/api.so: [BUG] Segmentation fault
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]

-- control frame ----------
c:0039 p:-5483104 s:0124 b:0124 l:000123 d:000123 TOP
c:0038 p:---- s:0122 b:0122 l:000121 d:000121 CFUNC  :require
c:0037 p:0011 s:0118 b:0118 l:000117 d:000117 TOP    C:/Ruby19/lib/
ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/api.rb:1
c:0036 p:---- s:0116 b:0116 l:000115 d:000115 FINISH
c:0035 p:---- s:0114 b:0114 l:000113 d:000113 CFUNC  :require
c:0034 p:0011 s:0110 b:0110 l:000109 d:000109 TOP    C:/Ruby19/lib/
ruby/gems/1.9.1/gems/windows-pr-1.0.9/lib/windows/error.rb:12
c:0033 p:---- s:0108 b:0108 l:000107 d:000107 FINISH
c:0032 p:---- s:0106 b:0106 l:000105 d:000105 CFUNC  :require
c:0031 p:0011 s:0102 b:0102 l:000101 d:000101 TOP    C:/Ruby19/lib/
ruby/gems/1.9.1/gems/win32-process-0.6.2/lib/win32/process.rb:1
c:0030 p:---- s:0100 b:0100 l:000099 d:000099 FINISH
c:0029 p:---- s:0098 b:0098 l:000097 d:000097 CFUNC  :require
c:0028 p:0011 s:0094 b:0094 l:000093 d:000093 TOP    C:/Ruby19/lib/
ruby/gems/1.9.1/gems/watir-1.6.5/lib/watir/ie-process.rb:1
c:0027 p:---- s:0092 b:0092 l:000091 d:000091 FINISH
c:0026 p:---- s:0090 b:0090 l:000089 d:000089 CFUNC  :require
c:0025 p:0083 s:0086 b:0086 l:000085 d:000085 TOP    C:/Ruby19/lib/
ruby/gems/1.9.1/gems/watir-1.6.5/lib/watir/ie.rb:45
c:0024 p:---- s:0084 b:0084 l:000083 d:000083 FINISH
c:0023 p:0009 s:0082 b:0082 l:00157c d:000081 EVAL   (irb):2
c:0022 p:---- s:0080 b:0080 l:000079 d:000079 FINISH
c:0021 p:---- s:0078 b:0078 l:000077 d:000077 CFUNC  :eval
c:0020 p:0027 s:0071 b:0071 l:000070 d:000070 METHOD C:/Ruby19/lib/
ruby/1.9.1/irb/workspace.rb:80
c:0019 p:0031 s:0064 b:0063 l:000062 d:000062 METHOD C:/Ruby19/lib/
ruby/1.9.1/irb/context.rb:218
c:0018 p:0030 s:0058 b:0058 l:000e3c d:000057 BLOCK  C:/Ruby19/lib/
ruby/1.9.1/irb.rb:157
c:0017 p:0039 s:0050 b:0050 l:000049 d:000049 METHOD C:/Ruby19/lib/
ruby/1.9.1/irb.rb:271
c:0016 p:0011 s:0045 b:0045 l:000e3c d:000044 BLOCK  C:/Ruby19/lib/
ruby/1.9.1/irb.rb:154
c:0015 p:0132 s:0041 b:0041 l:000024 d:000040 BLOCK  C:/Ruby19/lib/
ruby/1.9.1/irb/ruby-lex.rb:244
c:0014 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0013 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC  :loop
c:0012 p:0009 s:0033 b:0033 l:000024 d:000032 BLOCK  C:/Ruby19/lib/
ruby/1.9.1/irb/ruby-lex.rb:230
c:0011 p:---- s:0031 b:0031 l:000030 d:000030 FINISH
c:0010 p:---- s:0029 b:0029 l:000028 d:000028 CFUNC  :catch
c:0009 p:0023 s:0025 b:0025 l:000024 d:000024 METHOD C:/Ruby19/lib/
ruby/1.9.1/irb/ruby-lex.rb:229
c:0008 p:0042 s:0022 b:0022 l:000e3c d:000e3c METHOD C:/Ruby19/lib/
ruby/1.9.1/irb.rb:153
c:0007 p:0011 s:0019 b:0019 l:000dc4 d:000018 BLOCK  C:/Ruby19/lib/
ruby/1.9.1/irb.rb:70
c:0006 p:---- s:0017 b:0017 l:000016 d:000016 FINISH
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC  :catch
c:0004 p:0174 s:0011 b:0011 l:000dc4 d:000dc4 METHOD C:/Ruby19/lib/
ruby/1.9.1/irb.rb:69
c:0003 p:0039 s:0006 b:0006 l:001efc d:0023c4 EVAL   C:/Ruby19/bin/irb:
12
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001efc d:001efc TOP
---------------------------
-- Ruby level backtrace
information-----------------------------------------
C:/Ruby19/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/
api.rb:1:in `require'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/windows-api-0.4.0/lib/windows/
api.rb:1:in `<top (required)>'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/windows-pr-1.0.9/lib/windows/
error.rb:12:in `require'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/windows-pr-1.0.9/lib/windows/
error.rb:12:in `<top (required)>'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/win32-process-0.6.2/lib/win32/
process.rb:1:in `require'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/win32-process-0.6.2/lib/win32/
process.rb:1:in `<top (required)>'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/watir-1.6.5/lib/watir/ie-process.rb:
1:in `require'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/watir-1.6.5/lib/watir/ie-process.rb:
1:in `<top (required)>'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/watir-1.6.5/lib/watir/ie.rb:45:in
`require'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/watir-1.6.5/lib/watir/ie.rb:45:in
`<top (required)>'
(irb):2:in `irb_binding'
C:/Ruby19/lib/ruby/1.9.1/irb/workspace.rb:80:in `eval'
C:/Ruby19/lib/ruby/1.9.1/irb/workspace.rb:80:in `evaluate'
C:/Ruby19/lib/ruby/1.9.1/irb/context.rb:218:in `evaluate'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:157:in `block (2 levels) in
eval_input'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:271:in `signal_status'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:154:in `block in eval_input'
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:244:in `block (2 levels) in
each_top_level_statement'
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in `loop'
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in `block in
each_top_level_statement'
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `catch'
C:/Ruby19/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in
`each_top_level_statement'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:153:in `eval_input'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:70:in `block in start'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:69:in `catch'
C:/Ruby19/lib/ruby/1.9.1/irb.rb:69:in `start'
C:/Ruby19/bin/irb:12:in `<main>'

- - - - - - - - - -


After a little searching through the watir-general group for api.so I
found the following post:

http://groups.google.com/group/watir-general/browse_thread/thread/9873479c1a430137/7a16bfb631306d63?lnk=gst&q=fubared#7a16bfb631306d63

Suggestion: install an earlier version of win32-api.

'gem install win32-api -v 1.4.5' followed by 'gem install watir'

Worked for me.  Might work for someone else too.

J

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Reply via email to