[英]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: 编辑:
/usr/lib/firefox/
在/usr/lib/firefox/
可以找到libxul.so 这实际上是PC硬件问题的结果,直到很久以后才出现。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.