【问题标题】:How do I solve PostgreSQL "Aborted (core dumped)" error?如何解决 PostgreSQL“中止(核心转储)”错误?
【发布时间】:2018-04-30 02:42:24
【问题描述】:

我正在尝试在 Ubuntu 14.04 上安装 postgreSQL-9.6.4。但是当我运行 'initdb' 来创建数据库集群时,它会显示错误。

$ ./configure --prefix=/path/to/install
$ make
$ make install
$ initdb -U user1 -D /path/to/install/data

当我运行 'initdb' 时,它显示以下错误:

Aborted (core dumped)
child process exited with exit code 134
initdb: removing contents of data directory "/path/to/install/data"

有什么帮助吗?

【问题讨论】:

  • 如果您是从源代码构建,通常最好在安装之前运行make check(这适用于您构建的任何东西......)
  • 是的,我运行了make check,它显示pg_regress: initdb failed
  • $ initdb -U user1 user1 是 postgres 二进制文件的所有者吗? -->> 以 user=postgres 身份运行 initdb

标签: postgresql postgres-9.6


【解决方案1】:

退出状态 134 表示进程被 SIGABRT 信号调用,因为该信号的编号为 6,并且 128 + 6 = 134。

您的进程可能未能通过assert(3) 断言。你./configure --with-cassert了吗?

尝试使用gdb 读取核心转储并使用bt 获取回溯。这应该会告诉您执行失败的确切位置,以便您解决问题。

【讨论】:

  • 是的,我尝试使用--with-cassert,但问题尚未解决。同样的错误显示。谢谢。
  • Building --with-cassert 如果出现问题会导致这样的错误,但在你的情况下这是一个好主意。从堆栈转储中获取回溯!
猜你喜欢
  • 2017-04-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-05-24
  • 1970-01-01
  • 2013-10-20
相关资源
最近更新 更多