-
-
Notifications
You must be signed in to change notification settings - Fork 996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation Fault #3138
Comments
Here is the core dump backtrace. Only happening when postgrest connects to the db.
|
Have you considered filing a bug report against PostgreSQL? It kind of should not segfault on database connection, period. They could use a packet capture file too (Wireshark can do that). You are welcome to post a link to the bug report here, I'd follow it closely and see what can we do on our side. |
@mbwmbw1337 What PostgreSQL version and PostgREST version are you using? Really strange. As Andrei mentioned, this seems like a bug in PostgreSQL itself. |
This had already happened a while back: https://www.postgresql.org/message-id/flat/CAGj%3D18FCNNBK2ChfxrUWbrUR8%3D2NKQKdUm3UQAJvCxTO089Qmg%40mail.gmail.com This is certainly not a bug in PostgREST. PostgreSQL should not seg fault. The thread suggested that the stacktrace shows that this is not running on vanilla postgresql, but on the pgpro fork. So very likely a bug in pgpro. |
@mbwmbw1337 we now have a second report of this in #3185. I would like to understand the similarities between the two postgres configurations. Which extensions are you using? Were you able to reproduce this without the pgpro fork you were using? |
[15796] LOG: server process (PID 150552) was terminated by signal 11: Segmentation fault
[15796] DETAIL: Failed process was running:
with recursive
pks_fks as (
-- pk + fk referencing col
select
contype::text as contype,
conname,
array_length(conkey, 1) as ncol,
conrelid as resorigtbl,
col as resorigcol,
ord
from pg_constraint
left join lateral unnest(conkey) with ordinality as _(col, ord) on true
where contype IN ('p', 'f')
union
-- fk referenced col
select
concat(contype, '_ref') as contype,
conname,
array_length(confkey, 1) as ncol,
confrelid,
col,
ord
from pg_constraint
left join lateral unnest(confkey) with ordinality as _(col, ord) on true
where contype='f'
),
views as (
select
c.oid as view_id,
n.nspname as view_schema,
c.relname as view_name,
r.ev_action as view_definition
from pg_class c
join pg_namespace n on n.oid = c.relnames
The text was updated successfully, but these errors were encountered: