Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 572BC9FBF49 for ; Fri, 18 May 2007 09:30:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 54988-02 for ; Fri, 18 May 2007 09:29:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail3.sun.ac.za (mail3.sun.ac.za [146.232.64.13]) by postgresql.org (Postfix) with ESMTP id 1C6BC9FB87B for ; Fri, 18 May 2007 09:29:56 -0300 (ADT) Received: from burger.sun.ac.za ([146.232.128.30]) by mail3.sun.ac.za with esmtp (Exim 4.34) id 1Hp1aY-0003hT-NL for pgsql-admin@postgresql.org; Fri, 18 May 2007 14:29:45 +0200 Received: from js by burger.sun.ac.za with local (Exim 4.63) (envelope-from ) id 1Hp1aY-0007Wt-G2 for pgsql-admin@postgresql.org; Fri, 18 May 2007 14:29:42 +0200 Date: Fri, 18 May 2007 14:29:42 +0200 From: Johann Spies To: pgsql-admin@postgresql.org Subject: Re: ERROR: invalid memory alloc request size Message-ID: <20070518122942.GA28931@sun.ac.za> Mail-Followup-To: Johann Spies , pgsql-admin@postgresql.org References: <20070514131318.GA26537@sun.ac.za> <11217.1179153258@sss.pgh.pa.us> <20070515105042.GA8121@burger.sun.ac.za> <5221.1179337804@sss.pgh.pa.us> <20070517132033.GA9482@sun.ac.za> <25608.1179412804@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25608.1179412804@sss.pgh.pa.us> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.251 tagged_above=0 required=5 tests=AWL=0.250, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200705/180 X-Sequence-Number: 25500 Hallo Tom, > > Breakpoint 1, 0x0827eef6 in errfinish () > > (gdb) bt > > #0 0x0827eef6 in errfinish () > > #1 0x0828039c in elog_finish () > > #2 0x082993b3 in MemoryContextAlloc () > > #3 0x0828d437 in pg_mb2wchar () > > #4 0x0811c288 in CreateCopyDestReceiver () > > #5 0x0811ea43 in DoCopy () > > #6 0x081f9d00 in ProcessUtility () > > #7 0x081f6ed9 in PostgresMain () > > #8 0x081f7cac in FreeQueryDesc () > > #9 0x081f84d9 in PortalRun () > > #10 0x081f3b51 in pg_parse_query () > > #11 0x081f5296 in PostgresMain () > > #12 0x081c8a1f in ClosePostmasterPorts () > > #13 0x081c9924 in PostmasterMain () > > #14 0x081823b5 in main () > > Hmmm ... this is interesting, but unfortunately backtraces from > non-debug builds are often not very trustworthy, and that seems to have > happened here. CreateCopyDestReceiver doesn't call pg_mb2wchar, and > pg_mb2wchar doesn't call MemoryContextAlloc, so we're being lied to > right at the spot where we might've hoped to learn something. > > Could you please rebuild the executables with --enable-debug and try > again? I did that. The following breakpoint occurred again before an error message from the process on the terminal: Breakpoint 1, 0x0827eef6 in errfinish () (gdb) bt #0 0x0827eef6 in errfinish () #1 0x0828039c in elog_finish () #2 0x082993b3 in MemoryContextAlloc () #3 0x0828d437 in pg_mb2wchar () #4 0x0811c288 in CreateCopyDestReceiver () #5 0x0811ea43 in DoCopy () #6 0x081f9d00 in ProcessUtility () #7 0x081f6ed9 in PostgresMain () #8 0x081f7cac in FreeQueryDesc () #9 0x081f84d9 in PortalRun () #10 0x081f3b51 in pg_parse_query () #11 0x081f5296 in PostgresMain () #12 0x081c8a1f in ClosePostmasterPorts () #13 0x081c9924 in PostmasterMain () #14 0x081823b5 in main () It looks the same as the previous one to me. Regards Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch "For to me to live is Christ, and to die is gain." Philippians 1:21