Skip site navigation (1) Skip section navigation (2)

Re: My investigations of the postmaster Bus error

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Martin Pitt <martin(at)piware(dot)de>, Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: My investigations of the postmaster Bus error
Date: 2005-12-22 13:56:43
Message-ID: 20051222135643.GA21448@surnet.cl (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-patches
[Sorry for copying -patches in my last email, I actually meant to send
it to pgsql-bugs]

Alvaro Herrera wrote:

> I've been playing with the MIPS machine a little and still haven't found
> any _obvious_ cause for the problem.  However I suspect that it may be
> related to unaligned memory access, which _I think_ results in a SIGBUS
> on MIPS.

However, this may turn out to be a red herring, because the variables
are allocated in the data segment and not by malloc, so I think it's
pretty hard to believe there's any unaligned acccess.  A small program
that simulates what Postgres is doing here is attached, and it doesn't
fail with SIGBUS, which is rather what I'd expect.  There may be
something different in the way Postgres does things, but I haven't been
able to find what.  Suggestions welcome.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Attachment: sigbus.c
Description: text/x-csrc (920 bytes)

In response to

pgsql-bugs by date

Next:From: Jaime CasanovaDate: 2005-12-22 16:43:18
Subject: Re: BUG #2121: Problem with backup and query
Previous:From: Alvaro HerreraDate: 2005-12-22 13:03:49
Subject: Re: [BUGS] My investigations of the postmaster Bus error

pgsql-patches by date

Next:From: Euler Taveira de OliveiraDate: 2005-12-22 13:59:35
Subject: Re: to_char and i18n
Previous:From: Alvaro HerreraDate: 2005-12-22 13:03:49
Subject: Re: [BUGS] My investigations of the postmaster Bus error

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group