Unix Technical Forum

=?utf-8?Q?=22bogus?= aset =?utf-8?Q?link=22?=

This is a discussion on =?utf-8?Q?=22bogus?= aset =?utf-8?Q?link=22?= within the pgsql Hackers forums, part of the PostgreSQL category; --> Hi everybody! While writting some code for the backend (some SPI-like functions for a project) I saw this message: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 03:11 AM
ntinos@aueb.gr
 
Posts: n/a
Default =?utf-8?Q?=22bogus?= aset =?utf-8?Q?link=22?=

Hi everybody!

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. I read
the source code comments but I couldn't understand what this is.

What is this about?

Thanks in advance,
Ntinos Katsaros


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 03:11 AM
Tom Lane
 
Posts: n/a
Default Re: =?utf-8?Q?=22bogus?= aset =?utf-8?Q?link=22?=

ntinos@aueb.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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 03:11 AM
ntinos@aueb.gr
 
Posts: n/a
Default Re: =?utf-8?Q?=22bogus?= aset =?utf-8?Q?link=22?=

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@aueb.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




---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:29 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com