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: ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| ||||
| 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 |