Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id E633C914537 for ; Thu, 1 Dec 2011 13:54:13 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RWApl-00005J-So for pgsql-bugs@postgresql.org; Thu, 01 Dec 2011 17:54:13 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pB1HruTq008243; Thu, 1 Dec 2011 12:53:56 -0500 (EST) To: Josh Kupershmidt cc: Pg Bugs Subject: Re: 9.1.1 hot standby startup gets sigbus In-reply-to: References: <5628.1322705838@sss.pgh.pa.us> <7793.1322711436@sss.pgh.pa.us> Comments: In-reply-to Josh Kupershmidt message dated "Thu, 01 Dec 2011 09:06:57 -0500" Date: Thu, 01 Dec 2011 12:53:56 -0500 Message-ID: <8242.1322762036@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201112/9 X-Sequence-Number: 31820 Josh Kupershmidt writes: > Here's a backtrace from 9.1 tip with CFLAGS="-O0", server logs are as before: > Program received signal SIGBUS, Bus error. > 0x00c9716b in ?? () from /lib/i386-linux-gnu/libc.so.6 > (gdb) bt > #0 0x00c9716b in ?? () from /lib/i386-linux-gnu/libc.so.6 > #1 0x082b3b2f in ReadBuffer_common (smgr=0x9ef68d0, relpersistence=112 'p', > forkNum=MAIN_FORKNUM, blockNum=86781, mode=RBM_ZERO, strategy=0x0, > hit=0xbfc5eeff "") at bufmgr.c:435 > #2 0x082b3722 in ReadBufferWithoutRelcache (rnode=..., forkNum=MAIN_FORKNUM, > blockNum=86781, mode=RBM_ZERO, strategy=0x0) at bufmgr.c:272 > #3 0x080df3a0 in XLogReadBufferExtended (rnode=..., forknum=MAIN_FORKNUM, > blkno=86781, mode=RBM_ZERO) at xlogutils.c:296 > #4 0x080d0bab in RestoreBkpBlocks (lsn=..., record=0x9eed480, > cleanup=0 '\000') at xlog.c:3589 > #5 0x080eb1b8 in gin_redo (lsn=..., record=0x9eed480) at ginxlog.c:678 [ scratches head... ] Well, that proves the previous backtrace wasn't lying to us, but it's hard to see how this happens. AFAICT this could only mean that the buffer pointer returned by BufHdrGetBlock is bad, and how could that happen? I'm suspicious that there must be something broken about your VM environment. Can you reproduce it outside the VM, or even better create a reproducible test case? regards, tom lane