Re: ERROR: invalid memory alloc request size

Поиск
Список
Период
Сортировка
От Matteo Beccati
Тема Re: ERROR: invalid memory alloc request size
Дата
Msg-id 43609FC5.2010008@beccati.com
обсуждение исходный текст
Ответ на Re: ERROR: invalid memory alloc request size  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: ERROR: invalid memory alloc request size  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Hi Martijn,

> Backtrace would be nice. I don't suppose your backend is compiled with
> debugging? If so, try attaching to the backend and do:
> 
> break MemoryContextAlloc if size > 1000000000
> 
> Obviously something is trying to allocate and negative number of
> bytes... 4291419108 = -3548188

Here is the backtrace, hoping I did it correctly:


Breakpoint 1, Mem
oryContextAlloc (context=0xbfbfd5d0, size=3217020368) at mcxt.c:501
501     {
(gdb) bt
#0  MemoryContextAlloc (context=0xbfbfd5d0, size=3217020368) at mcxt.c:501
#1  0x0812a586 in initStringInfo (str=0xbfbfd5d0) at stringinfo.c:50
#2  0x081303e5 in pq_beginmessage (buf=0xbfbfd5d0, msgtype=84 'T') at 
pqformat.c:92
#3  0x080778b5 in SendRowDescriptionMessage (typeinfo=0x8311420, 
targetlist=0xbfbfd5d0, formats=0x83df088) at printtup.c:170
#4  0x08117200 in ExecutorRun (queryDesc=0x83df040, 
direction=ForwardScanDirection, count=0) at execMain.c:222
#5  0x0818a16f in PortalRunSelect (portal=0x835f018, forward=32 ' ', 
count=0, dest=0x83a7448) at pquery.c:794
#6  0x0818a60e in PortalRun (portal=0x835f018, count=2147483647, 
dest=0x83a7448, altdest=0x83a7448, completionTag=0xbfbfd830 "") at 
pquery.c:646
#7  0x081868cc in exec_simple_query (query_string=0x8310228 "SELECT * 
FROM gw_queue_get('7')") at postgres.c:1014
#8  0x08188e4f in PostgresMain (argc=4, argv=0x82dd3d0, 
username=0x82dd3a0 "multilevel") at postgres.c:3168
#9  0x08165dbc in ServerLoop () at postmaster.c:2853
#10 0x081672bd in PostmasterMain (argc=3, argv=0xbfbfed3c) at 
postmaster.c:943
#11 0x08131092 in main (argc=3, argv=0xbfbfed3c) at main.c:256


Best regards
--
Matteo Beccati
http://phpadsnew.com
http://phppgads.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: ERROR: invalid memory alloc request size
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: ERROR: invalid memory alloc request size