Skip to content

Instantly share code, notes, and snippets.

@bbbco
Created September 5, 2013 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbbco/6455755 to your computer and use it in GitHub Desktop.
Save bbbco/6455755 to your computer and use it in GitHub Desktop.
Since upgrading to Selenium WebDriver 2.35.1 I've been getting intermittent core dump when my tests complete. Here is the debug info I have gathered.
Finished in 2200.68985s
30 tests, 884 assertions, 0 failures, 1 errors, 1 skips
Writing XML reports to /cruisedata/jenkins-slave/workspace/SeleniumNewTests/selenium/rb/test/reports
I, [2013-09-05T14:50:08.677708 #1486] INFO : Killing browser
-> DELETE session/77fdaaf0-0631-4f10-851e-cbaed1098867
Exception `Errno::EAGAIN' at /home/site/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/protocol.rb:141 - Resource temporarily unavailable - read would block
Exception `Errno::EAGAIN' at /home/site/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/protocol.rb:141 - Resource temporarily unavailable - read would block
<- {"name":"quit","sessionId":"77fdaaf0-0631-4f10-851e-cbaed1098867","status":0,"value":""}
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : ["polling 5 seconds for exit"]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
!!! error running onStopped callback: TypeError: callback is not a function
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
NOTE: child process received `Goodbye', closing down
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>nil, :status=>nil}]
#<ChildProcess::Unix::ForkExecProcess:0x0000000430e518 @args=["/usr/bin/firefox", "-no-remote", "-foreground"], @started=true, @exit_code=nil, @io=#<ChildProcess::Unix::IO:0x0000000430e4a0 @stdout=#<IO:<STDOUT>>, @stderr=#<IO:<STDERR>>>, @cwd=nil, @detach=false, @duplex=false, @environment={}, @pid=2844> : [{:pid=>2844, :status=>#<Process::Status: pid 2844 exit 0>}]
/home/site/.rvm/gems/ruby-1.9.3-p448@rn_qa/gems/minitest-4.7.0/lib/minitest/unit.rb:775: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0003 p:0028 s:0006 b:0006 l:0015b8 d:000005 BLOCK /home/site/.rvm/gems/ruby-1.9.3-p448@rn_qa/gems/minitest-4.7.0/lib/minitest/unit.rb:775
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0025e8 d:0025e8 TOP
-- Ruby level backtrace information ----------------------------------------
/home/site/.rvm/gems/ruby-1.9.3-p448@rn_qa/gems/minitest-4.7.0/lib/minitest/unit.rb:775:in `block (2 levels) in autorun'
-- C level backtrace information -------------------------------------------
/home/site/.rvm/rubies/ruby-1.9.3-p448/lib/libruby.so.1.9(+0x17a86a) [0x7fee4032d86a] vm_dump.c:796
/home/site/.rvm/rubies/ruby-1.9.3-p448/lib/libruby.so.1.9(+0x5d017) [0x7fee40210017] error.c:258
/home/site/.rvm/rubies/ruby-1.9.3-p448/lib/libruby.so.1.9(rb_bug+0xb7) [0x7fee40210d67] error.c:277
/home/site/.rvm/rubies/ruby-1.9.3-p448/lib/libruby.so.1.9(+0x10ef0e) [0x7fee402c1f0e] signal.c:633
/lib64/libpthread.so.0() [0x356b40eee0]
/home/site/.rvm/rubies/ruby-1.9.3-p448/lib/libruby.so.1.9(+0x167218) [0x7fee4031a218] vm_method.c:370
/home/site/.rvm/rubies/ruby-1.9.3-p448/lib/libruby.so.1.9(+0x16f283) [0x7fee40322283] vm_insnhelper.c:1371
/home/site/.rvm/rubies/ruby-1.9.3-p448/lib/libruby.so.1.9(+0x1704b8) [0x7fee403234b8] vm.c:1236
/home/site/.rvm/rubies/ruby-1.9.3-p448/lib/libruby.so.1.9(+0x171481) [0x7fee40324481] vm.c:686
/home/site/.rvm/rubies/ruby-1.9.3-p448/lib/libruby.so.1.9(rb_exec_end_proc+0x21c) [0x7fee4021831c] eval_jump.c:129
/home/site/.rvm/rubies/ruby-1.9.3-p448/lib/libruby.so.1.9(+0x653ca) [0x7fee402183ca] eval.c:92
/home/site/.rvm/rubies/ruby-1.9.3-p448/lib/libruby.so.1.9(ruby_cleanup+0x132) [0x7fee40218542] eval.c:133
/home/site/.rvm/rubies/ruby-1.9.3-p448/lib/libruby.so.1.9(ruby_run_node+0x25) [0x7fee40218885] eval.c:244
/home/site/.rvm/rubies/ruby-1.9.3-p448/bin/ruby() [0x4007fb] main.c:38
/lib64/libc.so.6(__libc_start_main+0xed) [0x356ac2135d]
/home/site/.rvm/rubies/ruby-1.9.3-p448/bin/ruby() [0x400829] main.c:40
-- Other runtime information -----------------------------------------------
webdriver [130905 14:50:07.25] [1690.239s] [webdriver] Ignoring pending about:document-onload-blocker request
webdriver [130905 14:50:07.36] [1690.351s] [webdriver] Ignoring pending about:document-onload-blocker request
webdriver [130905 14:50:07.47] [1690.455s] [webdriver] Ignoring pending about:document-onload-blocker request
webdriver [130905 14:50:07.57] [1690.555s] [webdriver] Ignoring pending about:document-onload-blocker request
webdriver [130905 14:50:07.80] [1690.784s] [webdriver] Ignoring pending about:document-onload-blocker request
webdriver [130905 14:50:07.87] [1690.860s] [webdriver] Ignoring pending about:document-onload-blocker request
webdriver [130905 14:50:07.99] [1690.973s] [webdriver] Ignoring pending about:document-onload-blocker request
webdriver [130905 14:50:08.10] [1691.089s] [webdriver] Ignoring pending about:document-onload-blocker request
webdriver [130905 14:50:08.20] [1691.186s] [webdriver] Ignoring pending about:document-onload-blocker request
webdriver [130905 14:50:08.30] [1691.286s] [webdriver] Ignoring pending about:document-onload-blocker request
webdriver [130905 14:50:08.49] [1691.477s] [webdriver] Received command: deleteAllCookies
webdriver [130905 14:50:08.50] [1691.491s] [webdriver] Received command: get
webdriver [130905 14:50:08.64] [1691.909s] [webdriver] request status is 0
webdriver [130905 14:50:08.68] [1691.664s] [webdriver] Received command: quit
*** Console log: 2013-09-05 14:50:09 ***
[JavaScript Warning: "Error in parsing value for 'background'. Declaration dropped." {file: "https://gp1.wac.edgecastcdn.net/802892/production_static/stylesheets/compiled/v3/main.css?1378326806" line: 1}]
[JavaScript Warning: "Error in parsing value for 'background'. Declaration dropped." {file: "https://gp1.wac.edgecastcdn.net/802892/production_static/stylesheets/compiled/v3/main.css?1378326806" line: 1}]
[JavaScript Warning: "Error in parsing value for 'filter'. Declaration dropped." {file: "https://gp1.wac.edgecastcdn.net/802892/production_static/stylesheets/compiled/v3/main.css?1378326806" line: 1}]
[JavaScript Warning: "Error in parsing value for 'background'. Declaration dropped." {file: "https://gp1.wac.edgecastcdn.net/802892/production_static/stylesheets/compiled/v3/main.css?1378326806" line: 1}]
[JavaScript Warning: "Error in parsing value for 'background'. Declaration dropped." {file: "https://gp1.wac.edgecastcdn.net/802892/production_static/stylesheets/compiled/v3/main.css?1378326806" line: 1}]
[JavaScript Warning: "Error in parsing value for 'filter'. Declaration dropped." {file: "https://gp1.wac.edgecastcdn.net/802892/production_static/stylesheets/compiled/v3/main.css?1378326806" line: 1}]
[JavaScript Warning: "Error in parsing value for 'filter'. Declaration dropped." {file: "https://gp1.wac.edgecastcdn.net/802892/production_static/stylesheets/compiled/v3/main.css?1378326806" line: 1}]
[JavaScript Warning: "Unknown property '-moz-border-radius'. Declaration dropped." {file: "https://gp1.wac.edgecastcdn.net/802892/production_static/stylesheets/compiled/v3/main.css?1378326806" line: 1}]
[JavaScript Warning: "Error in parsing value for 'background'. Declaration dropped." {file: "https://gp1.wac.edgecastcdn.net/802892/production_static/stylesheets/compiled/v3/main.css?1378326806" line: 1}]
........
[WEBDRIVER] [INFO] command_processor.js:10428 Ignoring pending about:document-onload-blocker request
[WEBDRIVER] [INFO] command_processor.js:10428 Ignoring pending about:document-onload-blocker request
[WEBDRIVER] [INFO] command_processor.js:10428 Ignoring pending about:document-onload-blocker request
[WEBDRIVER] [INFO] command_processor.js:10428 Ignoring pending about:document-onload-blocker request
[WEBDRIVER] [INFO] command_processor.js:10502 Received command: deleteAllCookies
[WEBDRIVER] [INFO] command_processor.js:10502 Received command: get
[WEBDRIVER] [INFO] driver_component.js:3233 request status is 0
[WEBDRIVER] [INFO] command_processor.js:10486 Received command: quit
[JavaScript Error: "TelemetryStopwatch: key "FX_SESSION_RESTORE_COLLECT_DATA_MS" was already initialized" {file: "resource:///modules/TelemetryStopwatch.jsm" line: 53}]
MiniTest::Unit.after_tests do
if self.class_variable_defined? :@@browser and not @@browser.nil?
LOG.info "Killing browser"
@@browser.quit
end
if self.class_variable_defined? :@@headless
LOG.debug "Destroying Headless session"
@@headless.destroy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment