Re: RCA for MemoryContextAlloc: invalid request size(Known Issue)

From: "Yogvinder Singh" <yogvinder(at)newgen(dot)co(dot)in>
To: "'Pavan Deolasee'" <pavan(dot)deolasee(at)gmail(dot)com>
Cc: "'Scott Marlowe'" <scott(dot)marlowe(at)gmail(dot)com>, "'Stefan Kaltenbrunner'" <stefan(at)kaltenbrunner(dot)cc>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: RCA for MemoryContextAlloc: invalid request size(Known Issue)
Date: 2009-01-09 10:47:09
Message-ID: 000301c97247$9fca75a0$df5f60e0$@co.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pavan,

What is the possible reason for the data corruption?

Regards,
Yogvinder

-----Original Message-----
From: Pavan Deolasee [mailto:pavan(dot)deolasee(at)gmail(dot)com]
Sent: January 09, 2009 2:59 PM
To: Yogvinder Singh
Cc: Scott Marlowe; Stefan Kaltenbrunner; pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] RCA for MemoryContextAlloc: invalid request
size(Known Issue)

On Fri, Jan 9, 2009 at 2:53 PM, Yogvinder Singh <yogvinder(at)newgen(dot)co(dot)in>
wrote:
> That I'll do but that still won't answer the question : What is the reason
> for the data corruption leading to " MemoryContextAlloc: invalid request
> size"
>

That's because you may read the corrupt data and do further operations
which leads to failure. For example, the tuple length may be corrupted
and you try to copy that tuple to memory. That's when the palloc can
fail with the error.

Thanks,
Pavan

--
Pavan Deolasee
EnterpriseDB http://www.enterprisedb.com

Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ragnar Hafstað 2009-01-09 10:54:19 Re: Question about COPY command
Previous Message Pavan Deolasee 2009-01-09 09:28:30 Re: RCA for MemoryContextAlloc: invalid request size(Known Issue)