简体   繁体   English

Ruby / Watir-browser.close上的段错误

[英]Ruby/Watir - segfault on browser.close

My PC has been randomly locking up lately, and while debugging I found an issue with my Ruby/Watir project. 我的电脑最近被随机锁定,并且在调试时发现我的Ruby / Watir项目存在问题。 Each time the browser.close function is called, the following occurs in dmesg (slightly different each time): 每次调用browser.close函数时,dmesg中都会发生以下情况(每次略有不同):

[12614.684243] Chrome_~dThread[29941]: segfault at 0 ip 00007f17889b3992 sp 00007f1786aa0b00 error 6 in libxul.so[7f1787b6a000+519c000]

I'm not sure if this is causing my PC to lock up, however it still needs resolving. 我不确定这是否导致我的PC锁定,但是仍然需要解决。 I've done some searching but I can't find anyone else with this issue. 我已经做了一些搜索,但是找不到其他人遇到这个问题。 The issue also appears if I ctrl + c the script. 如果我按ctrl + c脚本,也会出现此问题。

Error 6 is: The cause was a user-mode write resulting in no page being found. 错误6是: The cause was a user-mode write resulting in no page being found. , which makes sense if I've closed the browser. ,如果我已经关闭浏览器,这很有意义。

I've read the answer on this page , but as libxul.so is a library it didn't help much (although offered me a better understanding of debugging segfaults!). 我已经阅读了此页面上的答案,但是由于libxul.so是一个库,它并没有多大帮助(尽管可以使我更好地了解调试段错误!)。

For those looking due to the linux/segfault tag rather than ruby/watir, browser.close is a builtin function in the Watir package. 对于那些由于linux / segfault标记而不是ruby / watir进行查找的用户,browser.close是Watir软件包中的内置函数。

Edit: 编辑:

  • Although it says 'Chrome', the issue actually comes from FireFox 尽管显示为“ Chrome”,但实际上是由FireFox引起的
  • I don't get the issue in any other browser 我没有在任何其他浏览器中看到此问题
  • libxul.so is found in /usr/lib/firefox/ /usr/lib/firefox/可以找到libxul.so

这实际上是PC硬件问题的结果,直到很久以后才出现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在浏览器中输入文本,ruby - Enter text in browser watir, ruby 如何在watir测试套件结束时关闭浏览器? - How to close browser at the end of watir test suite? Ruby Watir:无法在Linux中的线程中启动浏览器 - Ruby Watir: cannot launch browser in a thread in Linux 如何使用Ruby使用Watir最大化浏览器(IE) - How to maximize browser (IE) with Watir using Ruby 强制浏览器使用带有Watir和Webdriver的Ruby加载 - Force browser to load using Ruby with Watir and Webdriver 当我花费大量时间来加载页面时,如何停止页面加载并关闭Ruby Watir中的浏览器? - How can i stop page loading and close browser in Ruby Watir when i takes to much time for page to load? Watir::browser in ruby​​ - 捕获所有 XHR 请求及其响应,由浏览器发出 - Watir::browser in ruby - Catch all the XHR requests with their responses, made by browser 如何使用Watir :: Browser关闭所有打开的Chrome或已打开的重用? - How to close all opened chrome with Watir::Browser or reuse already opened? 尝试关闭Watir浏览器时出现连接拒绝错误? - Connection refused error when I try to close a Watir browser? watir 浏览器对象可以在以后的 Ruby 进程中重用吗? - Can a watir browser object be re-used in a later Ruby process?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM