我在尝试在最新的 18.04.4 上的 Xvfb 上运行 Chrome(chrome-driver)时遇到了段错误:
kernel: [4477762.555614] chrome[9285]: segfault at ffffd9d5e7f40996 ip 00007f36b211f2dd sp 00007ffdf3ddb760 error 5 in libGLX_mesa.so.0.0.0[7f36b20dc000+73000]
我执行的命令如下:
DISPLAY=:99 /usr/bin/google-chrome https://google.com
一切运行良好,直到 2020 年 1 月 7 日安装了以下更新:
2020-02-07 06:20:40 upgrade libglapi-mesa:amd64 19.0.8-0ubuntu0~18.04.3 19.2.8-0ubuntu0~18.04.2
2020-02-07 06:20:40 status half-configured libglapi-mesa:amd64 19.0.8-0ubuntu0~18.04.3
2020-02-07 06:20:40 status unpacked libglapi-mesa:amd64 19.0.8-0ubuntu0~18.04.3
2020-02-07 06:20:40 status half-installed libglapi-mesa:amd64 19.0.8-0ubuntu0~18.04.3
2020-02-07 06:20:40 status half-installed libglapi-mesa:amd64 19.0.8-0ubuntu0~18.04.3
2020-02-07 06:20:40 status unpacked libglapi-mesa:amd64 19.2.8-0ubuntu0~18.04.2
2020-02-07 06:20:40 status unpacked libglapi-mesa:amd64 19.2.8-0ubuntu0~18.04.2
2020-02-07 06:20:40 startup packages configure
2020-02-07 06:20:40 configure libglapi-mesa:amd64 19.2.8-0ubuntu0~18.04.2 <none>
2020-02-07 06:20:40 status unpacked libglapi-mesa:amd64 19.2.8-0ubuntu0~18.04.2
2020-02-07 06:20:40 status half-configured libglapi-mesa:amd64 19.2.8-0ubuntu0~18.04.2
2020-02-07 06:20:40 status installed libglapi-mesa:amd64 19.2.8-0ubuntu0~18.04.2
2020-02-07 06:20:40 configure libglx-mesa0:amd64 19.2.8-0ubuntu0~18.04.2 <none>
2020-02-07 06:20:40 status unpacked libglx-mesa0:amd64 19.2.8-0ubuntu0~18.04.2
2020-02-07 06:20:40 status half-configured libglx-mesa0:amd64 19.2.8-0ubuntu0~18.04.2
2020-02-07 06:20:40 status installed libglx-mesa0:amd64 19.2.8-0ubuntu0~18.04.2
2020-02-07 06:20:40 trigproc libc-bin:amd64 2.27-3ubuntu1 <none>
2020-02-07 06:20:40 status half-configured libc-bin:amd64 2.27-3ubuntu1
2020-02-07 06:20:40 status installed libc-bin:amd64 2.27-3ubuntu1
Chrome版本为:80.0.3987.87
我试图查找是否有人遇到与最新更新相关的类似段错误,但我什么也没找到。
答案1
我遇到了同样的问题,并且更改 Xvfb 配置中的 DPI / 分辨率解决了该问题:
Xvfb -screen 0 1280x800x24 -ac -dpi 96 +extension RANDR :99
希望这有帮助。