Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id CD97063386F for ; Thu, 16 Jul 2009 10:50:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 99490-01-3 for ; Thu, 16 Jul 2009 10:50:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gatefox.foxi.nl (foxi.xs4all.nl [194.109.246.192]) by mail.postgresql.org (Postfix) with ESMTP id D39996356E8 for ; Thu, 16 Jul 2009 10:45:23 -0300 (ADT) Received: from techfox.localnet (techfox.foxi [192.168.0.79]) by gatefox.foxi.nl (8.14.2/8.14.2) with ESMTP id n6GDjKF7023485 for ; Thu, 16 Jul 2009 15:45:20 +0200 From: Frank van Vugt Organization: Foxi Consultants in Technology BV To: pgsql-bugs@postgresql.org Subject: bug or simply not enough stack space? Date: Thu, 16 Jul 2009 15:45:19 +0200 User-Agent: KMail/1.11.4 (Linux/2.6.27.23-0.1-default; KDE/4.2.4; x86_64; ; ) X-message-flag: Fed up with inflexible software? Worried about this kind of behaviour? Have us explain Linux! Greetings from Foxi C.i.T. BV MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907161545.20338.ftm.van.vugt@foxi.nl> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.031 tagged_above=0 required=5 tests=AWL=0.031 X-Spam-Level: X-Archive-Number: 200907/199 X-Sequence-Number: 23661 L.S. We're working on some conversion script which in itself ran fine. We then added a couple of additional checks, one of which was wrong and thus bailed out, but ran into the following (from the log): LOG: statement: update stock_item_composition set ...... ERROR: new row for relation "site_stock" violates check constraint CONTEXT: SQL statement "............" PL/pgSQL function "tr_site_stock_amounts_after_iud" line 74 at SQL statement SQL statement "............" PL/pgSQL function "tr_stock_item_composition_after_iud" line 202 at SQL statement STATEMENT: update stock_item_composition set ......... ERROR: tupdesc reference 0x7ffe74eaf028 is not owned by resource owner SubTransaction WARNING: AbortSubTransaction while in ABORT state WARNING: did not find subXID 75610 in MyProc ERROR: tupdesc reference 0x7ffe74eaf028 is not owned by resource owner SubTransaction WARNING: AbortSubTransaction while in ABORT state WARNING: did not find subXID 75610 in MyProc ERROR: tupdesc reference 0x7ffe74eaf028 is not owned by resource owner SubTransaction WARNING: AbortSubTransaction while in ABORT state WARNING: did not find subXID 75610 in MyProc ERROR: tupdesc reference 0x7ffe74eaf028 is not owned by resource owner SubTransaction PANIC: ERRORDATA_STACK_SIZE exceeded LOG: server process (PID 14757) was terminated by signal 6: Aborted The backtrace itself is not very informative, if needed we can easily create a new one based on breakpoint information provided: (gdb) bt #0 0x00007ffe7a7a7f05 in raise () from /lib64/libc.so.6 #1 0x00007ffe7a7a9960 in abort () from /lib64/libc.so.6 #2 0x0000000000675e05 in errfinish () #3 0x000000000067693f in elog_start () #4 0x000000000047518d in AbortSubTransaction () #5 0x0000000000475659 in AbortCurrentTransaction () #6 0x00000000005cf685 in PostgresMain () #7 0x00000000005a5155 in ServerLoop () #8 0x00000000005a5c9f in PostmasterMain () #9 0x0000000000554a70 in main () This is a 64-bit machine with 10GB mem, configured with max_stack_depth = 6MB, the queries/checks/etc used are not recursive, so I found the above a bit suspicious. -- Best, Frank.