Re: BUG #5622: Query failed: server closed the connection unexpectedly - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5622: Query failed: server closed the connection unexpectedly
Date
Msg-id 17504.1282181268@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #5622: Query failed: server closed the connection unexpectedly  (Thue Janus Kristensen <thuejk@gmail.com>)
List pgsql-bugs
Thue Janus Kristensen <thuejk@gmail.com> writes:
> I finally succeeded in creating a test case, after much experimentation.
> Running the attached sql crashes my postgresql server 100% of the time.

Cool, replicated here on CVS HEAD:

Program terminated with signal 10, Bus error.
#0  afterTriggerCheckState (evtshared=0x40163089) at trigger.c:2850
2850            if ((evtshared->ats_event & AFTER_TRIGGER_DEFERRABLE) == 0)
(gdb) bt
#0  afterTriggerCheckState (evtshared=0x40163089) at trigger.c:2850
#1  0x2f61f4 in afterTriggerMarkEvents (events=0x40163089, move_list=0x0,
    immediate_only=1 '\001') at trigger.c:3219
#2  0x2f76dc in AfterTriggerSetState (stmt=0x40064af0) at trigger.c:4149
#3  0x418250 in standard_ProcessUtility (parsetree=0x40064af0,
    queryString=0x400641a8 "SET CONSTRAINTS ALL IMMEDIATE;", params=0x0,
    isTopLevel=1 '\001', dest=0x40064cd8, completionTag=0x7b03b308 "")
    at utility.c:1226
#4  0x416a70 in ProcessUtility (parsetree=0x40064af0,
    queryString=0x400641a8 "SET CONSTRAINTS ALL IMMEDIATE;", params=0x0,
    isTopLevel=1 '\001', dest=0x40064cd8, completionTag=0x7b03b308 "")
    at utility.c:323
#5  0x415740 in PortalRunUtility (portal=0x400e1fa0, utilityStmt=0x40064af0,
    isTopLevel=1 '\001', dest=0x40064cd8, completionTag=0x7b03b308 "")
    at pquery.c:1191
#6  0x4158f0 in PortalRunMulti (portal=0x400e1fa0, isTopLevel=1 '\001',
    dest=0x40064cd8, altdest=0x40064cd8, completionTag=0x7b03b308 "")
    at pquery.c:1298
#7  0x414f64 in PortalRun (portal=0x400e1fa0, count=2147483647,
    isTopLevel=1 '\001', dest=0x40064cd8, altdest=0x40064cd8,
    completionTag=0x7b03b308 "") at pquery.c:822
#8  0x40e7c0 in exec_simple_query (
    query_string=0x400641a8 "SET CONSTRAINTS ALL IMMEDIATE;")

Looking at it ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Thue Janus Kristensen
Date:
Subject: Re: BUG #5622: Query failed: server closed the connection unexpectedly
Next
From: "Albert Ullrich"
Date:
Subject: BUG #5626: Parallel pg_restore fails with "tuple concurrently updated"