X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6871CDA997 for ; Wed, 26 Oct 2005 04:02:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 63842-01 for ; Wed, 26 Oct 2005 07:02:37 +0000 (GMT) Received: from cronos.madness.at (madness.at [217.196.146.217]) by svr1.postgresql.org (Postfix) with ESMTP id 6C03FD6D96 for ; Wed, 26 Oct 2005 04:02:38 -0300 (ADT) Received: from mastermind.kaltenbrunner.cc ([83.215.233.60]) by cronos.madness.at with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52 (FreeBSD)) id 1EUfIv-0008v1-KN; Wed, 26 Oct 2005 09:02:38 +0200 Message-ID: <435F2A08.6040309@kaltenbrunner.cc> Date: Wed, 26 Oct 2005 09:02:32 +0200 From: Stefan Kaltenbrunner User-Agent: Debian Thunderbird 1.0.2 (X11/20050602) X-Accept-Language: en-us, en MIME-Version: 1.0 To: PostgreSQL-development Cc: Seneca Cunningham Subject: Re: memcpy SEGV on AIX 5.3 References: <435D5D60.7040800@ca.afilias.info> <435E7BFB.1090207@madness.at> In-Reply-To: <435E7BFB.1090207@madness.at> X-Enigmail-Version: 0.91.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.057 required=5 tests=[AWL=0.007, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/1126 X-Sequence-Number: 74985 Stefan Kaltenbrunner wrote: > Seneca Cunningham wrote: > >>On an powerPC AIX 5.3 box, initdb from 8.1beta4 segfaults at >>src/backend/utils/hash/dynahash.c:673. No segfaults occur and all 98 >>regression tests pass if a test is added to see if keycopy is memcpy and >>if it is, go through a loop memcpying one byte at a time instead of >>memcpying everything at once. > > > looks like I'm seeing a similiar problem(using -HEAD) on AIX 5.3ML3 > using the IBM AIX c-compiler. initdb just hangs after "selecting default > max_connections ..." in a 100% CPU-loop. yeah this seems to be the very same issue. A backtrace of a stuck initdb-process looks like: (gdb) bt #0 0x10006f10 in bcopy () #1 0x1001d398 in hash_search (hashp=0x1001d85c, keyPtr=0xf020f9fc, action=804399456, foundPtr=0x20029d78 "") at dynahash.c:673 #2 0x100a5e58 in formrdesc (relationName=0x2006bf38 "t\emplat\e1", relationReltype=0, hasoids=0 '\0', natts=0, att=0x200100f8) at relcache.c:1295 #3 0x100a818c in RelationCacheInitialize () at relcache.c:2160 #4 0x102016ec in InitPostgres (dbname=0xd025b7f0 "\200A", username=0x2 "") at postinit.c:424 #5 0x102009e8 in BootstrapMain (argc=271528, argv=0xb0002) at bootstrap.c:445 #6 0x10000578 in main (argc=0, argv=0x0) at main.c:285 #7 0x1000022c in __start () Stefan