Re: "bogus aset link"

From: ntinos(at)aueb(dot)gr
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: "bogus aset link"
Date: 2005-01-03 08:43:04
Message-ID: courier.41D90598.0000666C@red.servers.aueb.gr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Thanks!
Your advice helped me find what caused the problem immediately. It was a
wrong 'palloc' as you suspected (and as usual for me ;-) ).

Ntinos Katsaros

Tom Lane writes:

> ntinos(at)aueb(dot)gr writes:
>> While writting some code for the backend (some SPI-like functions for a
>> project) I saw this message:
>
>> "WARNING: problem in alloc set ExecutorState: bogus aset link in block
>> 0x8301270, chunk 0x8304458"
>
>> I think there is something wrong with some of the memory allocations I do,
>> but this message is not helping me much in finding the exact error.
>
> The most likely bet is that your code wrote past the end of a memory
> chunk it had palloc'd, and thereby clobbered the bookkeeping info for
> the next physically adjacent chunk.
>
> You could home in on the location of the clobber by sprinkling
> "MemoryContextCheck(TopMemoryContext)" calls through your code.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thierry Missimilly 2005-01-03 08:43:20 [Fwd: How to use LISTEN / NOTIFY in a Perl program]
Previous Message Mike Mascari 2005-01-03 07:57:29 Re: function in postgres

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonathan Barnhart 2005-01-03 12:16:39 Any chance of a merge module?
Previous Message Bruce Momjian 2005-01-03 05:46:07 CVS is very slow