gpt4 book ai didi

javascript - 找不到 PhantomJS 的故障转储

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:20:38 24 4
gpt4 key购买 nike

这是我所做的:

  • 从官方网站下载并解压了 phantomjs-2.1.1-linux-x86_64.tar.bz2 二进制版本
  • 将其移动为 mv phantomjs-2.1.1-linux-x86_64/usr/local/share

  • 创建主 bin 文件的链接:

    sudo ln -sf/usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs/usr/local/bin

它与 js 文件一起工作,在某个随机点崩溃并显示消息:

PhantomJS has crashed. Please read the bug reporting guide at
and file a bug report

无论是在 /tmp 还是在脚本的文件夹中,我都找不到故障转储。

Ubuntu 16.10 中的崩溃转储在哪里?

或者如何启用转储?

操作系统:Ubuntu 16.10 64 位服务器PhantomJS 版本:2.1.1

最佳答案

核心转储写入崩溃时进程的当前目录。

当然,核心转储需要启用,默认情况下通常是禁用的。检查 ulimit -c 的输出,如果为 0,则不会写入核心文件。

如何启用核心转储?

运行 ulimit -c unlimited 启用核心转储;这是每个进程的设置,由该进程启动的进程继承。

你的问题很笼统:这不是你想要的吗?

More info about enabling core dump.

内核故障转储实用程序使用以下命令安装:

sudo apt install linux-crashdump.

You can follow this confiugration guide.

关于javascript - 找不到 PhantomJS 的故障转储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43519392/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com