Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DFD23B5DBEE for ; Mon, 3 Oct 2011 23:44:02 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 81391-02 for ; Tue, 4 Oct 2011 02:43:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-qw0-f46.google.com (mail-qw0-f46.google.com [209.85.216.46]) by mail.postgresql.org (Postfix) with ESMTP id E43EDB5DBE4 for ; Mon, 3 Oct 2011 23:43:55 -0300 (ADT) Received: by qadb15 with SMTP id b15so16682qad.19 for ; Mon, 03 Oct 2011 19:43:56 -0700 (PDT) Received: by 10.224.209.71 with SMTP id gf7mr542491qab.158.1317696234625; Mon, 03 Oct 2011 19:43:54 -0700 (PDT) Received: from ?IPv6:2001:44b8:6109:9f00:2a0:c9ff:fe6e:ed8f? (2001-44b8-6109-9f00-02a0-c9ff-fe6e-ed8f.static.ipv6.internode.on.net. [2001:44b8:6109:9f00:2a0:c9ff:fe6e:ed8f]) by mx.google.com with ESMTPS id du8sm18163257qab.11.2011.10.03.19.43.52 (version=SSLv3 cipher=OTHER); Mon, 03 Oct 2011 19:43:54 -0700 (PDT) Message-ID: <4E8A72E3.9080701@ringerc.id.au> Date: Tue, 04 Oct 2011 10:43:47 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Thunderbird/3.1.9 MIME-Version: 1.0 To: Pavel Holec CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6233: pg_dump hangs with Access Violation C0000005 References: <201109282118.p8SLIwYx099581@wwwmaster.postgresql.org> <4E8422B0.5060404@ringerc.id.au> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201110/21 X-Sequence-Number: 31291 On 03/10/11 19:42, Pavel Holec wrote: > On 09/29/2011 05:18 AM, Holec wrote: >> >> The following bug has been logged online: >> >> Bug reference: 6233 >> Logged by: Holec >> Email address: holec@email.cz >> PostgreSQL version: 8.4.8 >> Operating system: Windows 7 >> Description: pg_dump hangs with Access Violation C0000005 >> Details: >> >> I use pg_dump on Windows 7 with: >> pg_dump -i -h 192.168.2.2 -p 5432 -U user -F c -b -v -f file.backup >> mydb > > >>> Does this crash happen when you back up a different database? Say, if you back up the `template1' database, does it crash then too? > >>> Is this a 32-bit or 64-bit install of Windows 7? If 64-bit, are you using a 32-bit or 64-bit build of PostgreSQL? > >>> Is there any antivirus software on the machine? If so, what type and version? Does the problem still happen if you turn it off and re-test? > >>> -- >>> Craig Ringer > > Can anybody help me please? Honestly, I haven't the foggiest. I didn't see anything dodgy in the DLL list you posted earlier or any of the other info you've provided. To progress, I think you'd need to get a usable backtrace to show how and where the crash happens. Use Visual Studio (or the free Express Edition) or use windbg from Debugging Tools for Windows. Set the symbol path appropriately. Use the debugger to run pg_dump with appropriate arguments, and when it crashes, get a backtrace (stack trace) of the failure. There's some guidance on debugging on Windows here: http://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Windows It's written for getting a stack trace of a BACKEND, and you want to get a stack trace of the CLIENT (pg_dump) so it's not quite the same, but you'll require the same tools and the same initial configuration of the symbol path etc. Instead of attaching to a running postgres.exe though you must run a new pg_dump via the debugger. -- Craig Ringer