citusdata/cstore_fdw

cstore_fdw crash

invin12 opened this issue · 2 comments

cstore_fdw crash when I'm tryng using cstore_fwd foreing table as a partition to normal table

Steps to reproduce -
postgres=# create table pp(a int, b int) partition by range(a);
CREATE TABLE
postgres=# create foreign table c1 partition of pp for values from (1) to (20) server cstore_server;
CREATE FOREIGN TABLE
postgres=# insert into pp values (1,1);
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
!>

journalctl logs:
kernel: postmaster[4031]: segfault at 50 ip 00007f21a39943e4 sp 00007ffd6c1f3790 error 4 in cstore_fdw.so[7f21a398b000+10000]

cat /var/lib/pgsql/11/data/log/postgresql-Tue.log:
2019-10-29 12:22:30.743 UTC [3912] LOG: server process (PID 4073) was terminated by signal 11: Segmentation fault
2019-10-29 12:22:30.743 UTC [3912] DETAIL: Failed process was running: insert into pp values (1,1);
2019-10-29 12:22:30.743 UTC [3912] LOG: terminating any other active server processes
2019-10-29 12:22:30.744 UTC [4039] WARNING: terminating connection because of crash of another server process
2019-10-29 12:22:30.744 UTC [4039] DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.

It's been fixed in the "develop" branch. I built and installed the extension from a pull done about an hour ago and the issue is no longer present.

fix is merged to master, closing the issue