|
I am getting a segfault when trying to display geom as GeoJSON. My
Postgresql server is 9.4, with PostGIS 2.2 running on top. Other
functions to display geom seem to be working fine (As_EWKT, As_Text,
As_EWKB, As_KML etc...)
I increased the debug level, and attached is the relevant part of my Postgresql log.
Any tips are welcome. Thanks,
Versions:
geodata=# select version();
version
and this is what I get from abrt: reason: postgres killed by SIGSEGV cmdline: 'postgres: geodba geodata 192.168.1.29(51278) SELECT' '' '' '' executable: /usr/pgsql-9.4/bin/postgres package: postgresql94-server-9.4.21-1PGDG.rhel7 component: postgresql94 pid: 29785 pwd: /var/lib/pgsql/9.4/data hostname: nekarot count: 4 abrt_version: 2.1.11 analyzer: CCpp architecture: x86_64 event_log: global_pid: 29785 kernel: 3.10.0-957.5.1.el7.x86_64 last_occurrence: 1553166685 os_release: CentOS Linux release 7.6.1810 (Core) pkg_arch: x86_64 pkg_epoch: 0 pkg_fingerprint: 1F16 D2E1 442D F0F8 pkg_name: postgresql94-server pkg_release: 1PGDG.rhel7 pkg_vendor: PostgreSQL Global Development Group pkg_version: 9.4.21 runlevel: N 3 time: Thu 21 Mar 2019 12:04:15 PM IST type: CCpp uid: 26 username: postgres uuid: 0d18aed0d162f863b3a330db343a76b887319e0b
-- Micha Silver Ben Gurion Univ. Sde Boker, Remote Sensing Lab +972-523-665918 |
< 2019-03-21 13:11:25.560 IST geodba on geodata >DEBUG: StartTransactionCommand
< 2019-03-21 13:11:25.560 IST geodba on geodata >STATEMENT: SELECT
ST_AsGeoJSON('POINT(35 30)');
< 2019-03-21 13:11:25.560 IST geodba on geodata >DEBUG: StartTransaction
< 2019-03-21 13:11:25.560 IST geodba on geodata >STATEMENT: SELECT
ST_AsGeoJSON('POINT(35 30)');
< 2019-03-21 13:11:25.560 IST geodba on geodata >DEBUG: name: unnamed;
blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1,
children:
< 2019-03-21 13:11:25.560 IST geodba on geodata >STATEMENT: SELECT
ST_AsGeoJSON('POINT(35 30)');
< 2019-03-21 13:11:25.560 IST on >DEBUG: writing stats file
"pg_stat_tmp/db_13056.stat"
< 2019-03-21 13:11:25.560 IST on >DEBUG: writing stats file
"pg_stat_tmp/db_0.stat"
< 2019-03-21 13:11:25.570 IST on >DEBUG: StartTransaction
< 2019-03-21 13:11:25.570 IST on >DEBUG: name: unnamed; blockState:
DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_authid: vac: 0 (threshold 50),
anl: 0 (threshold 50)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_attribute: vac: 0 (threshold
512), anl: 0 (threshold 281)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_index: vac: 0 (threshold 73),
anl: 0 (threshold 61)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_opclass: vac: 0 (threshold 76),
anl: 0 (threshold 63)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_am: vac: 0 (threshold 51), anl:
0 (threshold 50)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_amproc: vac: 0 (threshold 119),
anl: 0 (threshold 84)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_database: vac: 0 (threshold 50),
anl: 0 (threshold 50)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_db_role_setting: vac: 0
(threshold 50), anl: 0 (threshold 50)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_tablespace: vac: 0 (threshold
50), anl: 0 (threshold 50)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_pltemplate: vac: 0 (threshold
52), anl: 0 (threshold 51)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_auth_members: vac: 0 (threshold
50), anl: 0 (threshold 50)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_shdepend: vac: 149 (threshold
737), anl: 0 (threshold 394)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_shdescription: vac: 0 (threshold
50), anl: 0 (threshold 50)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_shseclabel: vac: 0 (threshold
50), anl: 0 (threshold 50)
< 2019-03-21 13:11:25.571 IST on >DEBUG: pg_class: vac: 0 (threshold 109),
anl: 0 (threshold 80)
< 2019-03-21 13:11:25.571 IST on >DEBUG: CommitTransaction
< 2019-03-21 13:11:25.571 IST on >DEBUG: name: unnamed; blockState:
STARTED; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
< 2019-03-21 13:11:25.571 IST on >DEBUG: shmem_exit(0): 1 before_shmem_exit
callbacks to make
< 2019-03-21 13:11:25.571 IST on >DEBUG: shmem_exit(0): 7 on_shmem_exit
callbacks to make
< 2019-03-21 13:11:25.571 IST on >DEBUG: proc_exit(0): 2 callbacks to make
< 2019-03-21 13:11:25.571 IST on >DEBUG: exit(0)
< 2019-03-21 13:11:25.571 IST on >DEBUG: shmem_exit(-1): 0 before_shmem_exit
callbacks to make
< 2019-03-21 13:11:25.571 IST on >DEBUG: shmem_exit(-1): 0 on_shmem_exit
callbacks to make
< 2019-03-21 13:11:25.571 IST on >DEBUG: proc_exit(-1): 0 callbacks to make
< 2019-03-21 13:11:25.572 IST on >DEBUG: server process (PID 4551) exited
with exit code 0
< 2019-03-21 13:11:25.910 IST on >DEBUG: server process (PID 4547) was
terminated by signal 11: Segmentation fault
< 2019-03-21 13:11:25.910 IST on >DETAIL: Failed process was running: SELECT
ST_AsGeoJSON('POINT(35 30)');
< 2019-03-21 13:11:25.910 IST on >LOG: server process (PID 4547) was
terminated by signal 11: Segmentation fault
< 2019-03-21 13:11:25.910 IST on >DETAIL: Failed process was running: SELECT
ST_AsGeoJSON('POINT(35 30)');
< 2019-03-21 13:11:25.911 IST on >LOG: terminating any other active server
processes
< 2019-03-21 13:11:25.911 IST on >DEBUG: sending SIGQUIT to process 4090
< 2019-03-21 13:11:25.911 IST on >DEBUG: sending SIGQUIT to process 4089
< 2019-03-21 13:11:25.911 IST on >DEBUG: sending SIGQUIT to process 4091
< 2019-03-21 13:11:25.911 IST on >DEBUG: sending SIGQUIT to process 4092
< 2019-03-21 13:11:25.911 IST on >DEBUG: sending SIGQUIT to process 4093
< 2019-03-21 13:11:25.911 IST on >WARNING: terminating connection because of
crash of another server process
< 2019-03-21 13:11:25.911 IST on >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.
< 2019-03-21 13:11:25.911 IST on >HINT: In a moment you should be able to
reconnect to the database and repeat your command.
< 2019-03-21 13:11:25.911 IST on >DEBUG: writing stats file
"pg_stat/global.stat"
< 2019-03-21 13:11:25.911 IST on >DEBUG: writing stats file
"pg_stat/db_19293.stat"
< 2019-03-21 13:11:25.911 IST on >DEBUG: forked new backend, pid=4554
socket=11
< 2019-03-21 13:11:25.911 IST on >DEBUG: removing temporary stats file
"pg_stat_tmp/db_19293.stat"
< 2019-03-21 13:11:25.911 IST on >DEBUG: writing stats file
"pg_stat/db_17690.stat"
< 2019-03-21 13:11:25.912 IST [unknown] on [unknown] >LOG: connection
received: host=127.0.0.1 port=39454
< 2019-03-21 13:11:25.912 IST on >DEBUG: removing temporary stats file
"pg_stat_tmp/db_17690.stat"
< 2019-03-21 13:11:25.912 IST on >DEBUG: writing stats file
"pg_stat/db_13056.stat"
< 2019-03-21 13:11:25.912 IST geodba on geodata >FATAL: the database system is
in recovery mode
< 2019-03-21 13:11:25.912 IST geodba on geodata >DEBUG: shmem_exit(1): 0
before_shmem_exit callbacks to make
< 2019-03-21 13:11:25.912 IST geodba on geodata >DEBUG: shmem_exit(1): 0
on_shmem_exit callbacks to make
< 2019-03-21 13:11:25.912 IST geodba on geodata >DEBUG: proc_exit(1): 1
callbacks to make
< 2019-03-21 13:11:25.912 IST geodba on geodata >DEBUG: exit(1)
< 2019-03-21 13:11:25.912 IST geodba on geodata >DEBUG: shmem_exit(-1): 0
before_shmem_exit callbacks to make
< 2019-03-21 13:11:25.912 IST geodba on geodata >DEBUG: shmem_exit(-1): 0
on_shmem_exit callbacks to make
< 2019-03-21 13:11:25.912 IST on >DEBUG: removing temporary stats file
"pg_stat_tmp/db_13056.stat"
< 2019-03-21 13:11:25.912 IST geodba on geodata >DEBUG: proc_exit(-1): 0
callbacks to make
< 2019-03-21 13:11:25.912 IST on >DEBUG: writing stats file
"pg_stat/db_0.stat"
< 2019-03-21 13:11:25.913 IST on >DEBUG: removing temporary stats file
"pg_stat_tmp/db_0.stat"
< 2019-03-21 13:11:25.913 IST on >DEBUG: shmem_exit(-1): 0 before_shmem_exit
callbacks to make
< 2019-03-21 13:11:25.913 IST on >DEBUG: shmem_exit(-1): 0 on_shmem_exit
callbacks to make
< 2019-03-21 13:11:25.913 IST on >DEBUG: proc_exit(-1): 0 callbacks to make
< 2019-03-21 13:11:25.913 IST on >DEBUG: server process (PID 4554) exited
with exit code 1
< 2019-03-21 13:11:25.914 IST on >LOG: all server processes terminated;
reinitializing
< 2019-03-21 13:11:25.914 IST on >DEBUG: shmem_exit(1): 0 before_shmem_exit
callbacks to make
< 2019-03-21 13:11:25.914 IST on >DEBUG: shmem_exit(1): 5 on_shmem_exit
callbacks to make
< 2019-03-21 13:11:25.914 IST on >DEBUG: cleaning up dynamic shared memory
control segment with ID 478141041
< 2019-03-21 13:11:25.949 IST on >DEBUG: invoking
IpcMemoryCreate(size=148324352)
< 2019-03-21 13:11:25.950 IST on >DEBUG: mmap(148897792) with MAP_HUGETLB
failed, huge pages disabled: Cannot allocate memory
< 2019-03-21 13:11:25.962 IST on >DEBUG: SlruScanDirectory invoking callback
on pg_notify/0000
< 2019-03-21 13:11:25.962 IST on >DEBUG: removing file "pg_notify/0000"
< 2019-03-21 13:11:25.963 IST on >DEBUG: dynamic shared memory system will
support 288 segments
< 2019-03-21 13:11:25.963 IST on >DEBUG: created dynamic shared memory
control segment 1748850970 (2316 bytes)
< 2019-03-21 13:11:25.964 IST on >LOG: database system was interrupted; last
known up at 2019-03-21 13:08:55 IST
< 2019-03-21 13:11:26.010 IST on >DEBUG: checkpoint record is at 1/FC8B1D70
< 2019-03-21 13:11:26.010 IST on >DEBUG: redo record is at 1/FC8B1D70;
shutdown TRUE
< 2019-03-21 13:11:26.010 IST on >DEBUG: next transaction ID: 0/105396; next
OID: 129541
< 2019-03-21 13:11:26.010 IST on >DEBUG: next MultiXactId: 1; next
MultiXactOffset: 0
< 2019-03-21 13:11:26.010 IST on >DEBUG: oldest unfrozen transaction ID:
1880, in database 1
< 2019-03-21 13:11:26.010 IST on >DEBUG: oldest MultiXactId: 1, in database
17690
< 2019-03-21 13:11:26.010 IST on >DEBUG: transaction ID wrap limit is
2147485527, limited by database with OID 1
< 2019-03-21 13:11:26.010 IST on >DEBUG: MultiXactId wrap limit is
2147483648, limited by database with OID 17690
< 2019-03-21 13:11:26.010 IST on >DEBUG: starting up replication slots
< 2019-03-21 13:11:26.010 IST on >LOG: database system was not properly shut
down; automatic recovery in progress
< 2019-03-21 13:11:26.011 IST on >DEBUG: resetting unlogged relations:
cleanup 1 init 0
< 2019-03-21 13:11:26.012 IST on >LOG: record with zero length at 1/FC8B1DD8
< 2019-03-21 13:11:26.012 IST on >LOG: redo is not required
< 2019-03-21 13:11:26.012 IST on >DEBUG: resetting unlogged relations:
cleanup 0 init 1
< 2019-03-21 13:11:26.014 IST on >DEBUG: performing replication slot
checkpoint
< 2019-03-21 13:11:26.030 IST on >DEBUG: attempting to remove WAL segments
older than log file 0000000000000001000000FB
< 2019-03-21 13:11:26.030 IST on >DEBUG: SlruScanDirectory invoking callback
on pg_multixact/offsets/0000
< 2019-03-21 13:11:26.030 IST on >DEBUG: SlruScanDirectory invoking callback
on pg_multixact/members/0000
< 2019-03-21 13:11:26.030 IST on >DEBUG: SlruScanDirectory invoking callback
on pg_multixact/offsets/0000
< 2019-03-21 13:11:26.030 IST on >DEBUG: oldest MultiXactId member is at
offset 0
< 2019-03-21 13:11:26.030 IST on >LOG: MultiXact member wraparound
protections are now enabled
< 2019-03-21 13:11:26.030 IST on >DEBUG: MultiXact member stop limit is now
4294914944 based on MultiXact 1
< 2019-03-21 13:11:26.030 IST on >DEBUG: shmem_exit(0): 1 before_shmem_exit
callbacks to make
< 2019-03-21 13:11:26.030 IST on >DEBUG: shmem_exit(0): 3 on_shmem_exit
callbacks to make
< 2019-03-21 13:11:26.030 IST on >DEBUG: proc_exit(0): 2 callbacks to make
< 2019-03-21 13:11:26.030 IST on >DEBUG: exit(0)
< 2019-03-21 13:11:26.030 IST on >DEBUG: shmem_exit(-1): 0 before_shmem_exit
callbacks to make
< 2019-03-21 13:11:26.030 IST on >DEBUG: shmem_exit(-1): 0 on_shmem_exit
callbacks to make
< 2019-03-21 13:11:26.030 IST on >DEBUG: proc_exit(-1): 0 callbacks to make
< 2019-03-21 13:11:26.033 IST on >DEBUG: checkpointer updated shared memory
configuration values
< 2019-03-21 13:11:26.033 IST on >LOG: database system is ready to accept
connections
_______________________________________________ postgis-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/postgis-users
