Core dump when attempting to use plv8

From: Brian Njenga <iambrianmuhia(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Core dump when attempting to use plv8
Date: 2017-04-05 15:35:20
Message-ID: CAAAu=jzM_So9jWG6aj1XGcFeHpbs0SdVkxVAOTfATP85OFbhCQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I'm running Arch Linux and postgresql 9.6 with the plv8 extension obtained
from the AUR package 'plv8-bin'. When I test the extension like:

'CREATE EXTENSION plv8';
'DO $$ plv8.elog(WARNING, 'plv8.version = ' + plv8.version);$$ LANGUAGE
plv8;'

The postgresql process consumes all available RAM (8GB) and some swap
space, then crashes after about 3 minutes of thrashing.

Here's a coredump, and I've linked to the dump storage:

PID: 5601 (postgres)
UID: 88 (postgres)
GID: 88 (postgres)
Signal: 11 (SEGV)
Timestamp: Wed 2017-04-05 18:13:33 EAT (1min 42s ago)
Command Line: postgres: postgres postgres [local] DO
Executable: /usr/bin/postgres
Control Group: /system.slice/postgresql.service
Unit: postgresql.service
Slice: system.slice
Storage:
/var/lib/systemd/coredump/core.postgres.88.1c2ff1cf56ab47f2aa1ca688054a4eaa.5601.1491405213000000000000.lz4
(inaccessible)
Message: Process 5601 (postgres) of user 88 dumped core.

Stack trace of thread 5601:
#0 0x00007f8cecd21f70 n/a (/usr/lib/libv8.so.3.14.5)

CoreDump file
<https://keybase.pub/poppingtonic/postgresql-coredump/core.postgres.88.1c2ff1cf56ab47f2aa1ca688054a4eaa.5601.1491405213000000000000.lz4>
--
Some say he really tries to learn efficiently.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andrew Gierth 2017-04-05 19:49:37 Re: Core dump when attempting to use plv8
Previous Message Sandeep Thakkar 2017-04-05 14:54:53 Re: [Critical] Question about PostgreSQL installation.