pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Kupershmidt <schmiddy@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: 9.1.1 hot standby startup gets sigbus
Date: Thu, 01 Dec 2011 12:53:56 -0500
Message-ID: <8242.1322762036@sss.pgh.pa.us> (raw)
In-Reply-To: <CAK3UJRGPXAzGO-R5tS40T9d9-FzYNWzdX0MGa4kM4L2D8Q8qNQ@mail.gmail.com>
References: <CAK3UJRG_WncD1jxh+tA9=UXA2oB7Zsspa6bTt6JzDDM7bFs+1Q@mail.gmail.com>
	<5628.1322705838@sss.pgh.pa.us>
	<CAK3UJREzQsnJWZyCQMfxiDgYA+5wHKT7xhKRBO2P4eNcO7ES0A@mail.gmail.com>
	<7793.1322711436@sss.pgh.pa.us>
	<CAK3UJRGPXAzGO-R5tS40T9d9-FzYNWzdX0MGa4kM4L2D8Q8qNQ@mail.gmail.com>

Josh Kupershmidt <schmiddy@gmail.com> 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



view thread (7+ messages)  latest in thread

Message-ID: <8242.1322762036@sss.pgh.pa.us>
Permalink:  ../8242.1322762036@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8242.1322762036@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, schmiddy@gmail.com
  Subject: Re: 9.1.1 hot standby startup gets sigbus
  In-Reply-To: <8242.1322762036@sss.pgh.pa.us>
  References: <CAK3UJRG_WncD1jxh+tA9=UXA2oB7Zsspa6bTt6JzDDM7bFs+1Q@mail.gmail.com> <5628.1322705838@sss.pgh.pa.us> <CAK3UJREzQsnJWZyCQMfxiDgYA+5wHKT7xhKRBO2P4eNcO7ES0A@mail.gmail.com> <7793.1322711436@sss.pgh.pa.us> <CAK3UJRGPXAzGO-R5tS40T9d9-FzYNWzdX0MGa4kM4L2D8Q8qNQ@mail.gmail.com> <8242.1322762036@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox