pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedERROR: invalid memory alloc request size 0
43+ messages / 14 participants
[nested] [flat]
* ERROR: invalid memory alloc request size 0
@ 2004-04-07 21:43 John Hagstrand <john.hagstrand@interageresearch.com>
0 siblings, 1 reply; 43+ messages in thread
From: John Hagstrand @ 2004-04-07 21:43 UTC (permalink / raw)
To: pgsql-general
Hello,
I'm getting the following error when I try to update or insert into a table.
This just started happening today. The table has been working fine up to
now. The table has 27,000 rows and 24 columns.
ERROR: invalid memory alloc request size 0
Why does this happen? And how can I work around it?
Thanks
John
John Hagstrand
Interage Research, Inc.
18733 State Line Road
Antioch, IL 60002
847 838 5371
john.hagstrand@interageresearch.com
Information Technology Consulting
www.interageresearch.com
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 0
@ 2004-04-08 01:29 Tom Lane <tgl@sss.pgh.pa.us>
parent: John Hagstrand <john.hagstrand@interageresearch.com>
0 siblings, 0 replies; 43+ messages in thread
From: Tom Lane @ 2004-04-08 01:29 UTC (permalink / raw)
To: John Hagstrand <john.hagstrand@interageresearch.com>; +Cc: pgsql-general
"John Hagstrand" <john.hagstrand@interageresearch.com> writes:
> I'm getting the following error when I try to update or insert into a table.
> This just started happening today. The table has been working fine up to
> now. The table has 27,000 rows and 24 columns.
> ERROR: invalid memory alloc request size 0
What PG version is this, and what exactly is the table schema (and how
did you change it recently)? And let's see an exact example of a
failing query. It'd be even nicer if you could get a stack trace from
the errfinish call.
The only recent bugs of this ilk that I can recall had to do with
operations on zero-column tables. Probably you've found some new
corner case, but there's not enough info here to guess what.
regards, tom lane
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 0
@ 2004-04-08 18:38 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 43+ messages in thread
From: Tom Lane @ 2004-04-08 18:38 UTC (permalink / raw)
To: John Hagstrand <john.hagstrand@interageresearch.com>; +Cc: pgsql-general
"John Hagstrand" <john.hagstrand@interageresearch.com> writes:
> How do I get a stack trace?
Assuming you're using a system that has gdb ---
Start psql in one terminal window. Determine the PID of the backend
process attached to it (ps and/or the pg_stat_activity view will help
you here). In another window, become the postgres user, and run gdb
to attach to the process:
gdb /path/to/postgres-executable PID-of-process
... gdb prints a bunch of junk and then prompts for a command ...
gdb>
At this point issue two commands:
b errfinish
cont
Now go back to the psql window and issue the troublesome command. gdb
should pop up reporting a breakpoint stop at errfinish (and your psql
session will be hung). In gdb issue a "bt" command to get a backtrace.
Copy and paste the output, send it along. Issue "quit" to gdb to get
out of it, or "cont" if you want to inspect more errors.
A typical example gdb session is attached. Note that you won't get this
detailed a trace unless you compiled with --enable-debug. However, if
you don't see any routine names at all (just numbers) then you've got an
executable that was "stripped" of all symbolic information. Such a
trace will be useless, unfortunately; you'd have to recompile at least
an unstripped binary to tell me anything.
regards, tom lane
$ gdb /home/postgres/testversion/bin/postgres 16088
Attaching to program: /home/postgres/testversion/bin/postgres, process 16088
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.
warning: Can't find file postmaster referenced in dld_list.
Reading symbols from /usr/lib/libc.1...done.
Reading symbols from /usr/local/lib/libz.sl...done.
Reading symbols from /usr/lib/libdld.1...done.
0xc0142dd8 in ?? () from /usr/lib/libc.1
(gdb) b errfinish
Breakpoint 1 at 0x2a194c: file elog.c, line 311.
(gdb) cont
Continuing.
Breakpoint 1, errfinish (dummy=0) at elog.c:311
311 int elevel = edata->elevel;
(gdb) bt
#0 errfinish (dummy=0) at elog.c:311
#1 0x24dc80 in int4div (fcinfo=0x0) at int.c:650
#2 0x18c83c in ExecMakeFunctionResult (fcache=0x400fcec0,
econtext=0x400fd050, isNull=0x7b03bcc0 "@\013\233\220", isDone=0x0)
at execQual.c:1050
#3 0x18cf58 in ExecEvalFunc (fcache=0x400fcec0, econtext=0x400fd050,
isNull=0x7b03bcc0 "@\013\233\220", isDone=0x0) at execQual.c:1431
#4 0x18e778 in ExecEvalExprSwitchContext (expression=0x400fcec0,
econtext=0x400fd050, isNull=0x7b03bcc0 "@\013\233\220", isDone=0x0)
at execQual.c:2520
#5 0x1e3bb8 in evaluate_expr (expr=0x400fcec0, result_type=23)
at clauses.c:2213
#6 0x1e33fc in evaluate_function (funcid=154, result_type=23,
args=0x400b9cf0, func_tuple=0xc0064b70) at clauses.c:1806
#7 0x1e3298 in simplify_function (funcid=154, result_type=23,
args=0x400b9cf0, allow_inline=1 '\001', active_fns=0x0) at clauses.c:1732
#8 0x1e282c in eval_const_expressions_mutator (node=0x400b9480,
active_fns=0x0) at clauses.c:1141
#9 0x1e4b8c in expression_tree_mutator (node=0x400b9bb0,
mutator=0x40011eca <DINFINITY+2954>, context=0x0) at clauses.c:2986
#10 0x1e300c in eval_const_expressions_mutator (node=0x400b9bb0,
active_fns=0x0) at clauses.c:1574
#11 0x1e4afc in expression_tree_mutator (node=0x400b9bd0,
---Type <return> to continue, or q <return> to quit---
mutator=0x40011eca <DINFINITY+2954>, context=0x0) at clauses.c:2973
#12 0x1e300c in eval_const_expressions_mutator (node=0x400b9bd0,
active_fns=0x0) at clauses.c:1574
#13 0x1e26f8 in eval_const_expressions (node=0x0) at clauses.c:1069
#14 0x1d92d0 in preprocess_expression (parse=0x400b9140, expr=0x0, kind=1)
at planner.c:401
#15 0x1d9070 in subquery_planner (parse=0x400b9140, tuple_fraction=0)
at planner.c:228
#16 0x1d8edc in planner (parse=0x400b9140, isCursor=0 '\000', cursorOptions=0)
at planner.c:119
#17 0x21fccc in pg_plan_query (querytree=0x400b9140) at postgres.c:651
#18 0x21fd6c in pg_plan_queries (querytrees=0x0, needSnapshot=0 '\000')
at postgres.c:718
#19 0x21ffb0 in exec_simple_query (query_string=0x400b8c80 "select 1/0;")
at postgres.c:876
#20 0x222d54 in PostgresMain (argc=4, argv=0x4000d888,
username=0x40050a00 "postgres") at postgres.c:2981
#21 0x1ee51c in BackendRun (port=0x4005cef0) at postmaster.c:2697
#22 0x1edcfc in BackendStartup (port=0x4005cef0) at postmaster.c:2330
#23 0x1ec470 in ServerLoop () at postmaster.c:1167
#24 0x1ebf18 in PostmasterMain (argc=3, argv=0x7b03ab10) at postmaster.c:928
#25 0x1ac358 in main (argc=3, argv=0x7b03ab10) at main.c:257
#26 0xc0065784 in ?? () from /usr/lib/libc.1
(gdb) quit
The program is running. Quit anyway (and detach it)? (y or n) y
Detaching from program: /home/postgres/testversion/bin/postgres, process 16088
$
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 0
@ 2004-04-08 19:34 John Hagstrand <john.hagstrand@interageresearch.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 43+ messages in thread
From: John Hagstrand @ 2004-04-08 19:34 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general
Hello Tom,
Thanks for your help. I ran a backtrace as you suggested. Following is the
output of the gdb session.
John
---------------------------
[root@interage bin]# gdb /usr/bin/postgres 31699
GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(no debugging symbols found)...Using host libthread_db library
"/lib/tls/libthread_db.so.1".
Attaching to program: /usr/bin/postgres, process 31699
Reading symbols from /lib/libpam.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpam.so.0
Reading symbols from /lib/libssl.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libssl.so.4
Reading symbols from /lib/libcrypto.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /usr/lib/libkrb5.so.3...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /lib/libcom_err.so.2...(no debugging symbols found)...
done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libreadline.so.4...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libreadline.so.4
Reading symbols from /lib/libtermcap.so.2...(no debugging symbols found)...
done.
Loaded symbols for /lib/libtermcap.so.2
Reading symbols from /lib/libcrypt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libresolv.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
---Type <return> to continue, or q <return> to quit---
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/tls/libm.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /usr/lib/libgssapi_krb5.so.2...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libk5crypto.so.3...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols
found)...
done.
Loaded symbols for /lib/libnss_files.so.2
0x00847c32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) b errfinish
Breakpoint 1 at 0x81e6056
(gdb) cont
Continuing.
Breakpoint 1, 0x081e6056 in errfinish ()
(gdb) bt
#0 0x081e6056 in errfinish ()
#1 0x081e6e66 in elog_finish ()
#2 0x081f5112 in MemoryContextAlloc ()
#3 0x080758d0 in gistinsert ()
#4 0x08073bac in gistinsert ()
#5 0x0807396c in gistinsert ()
#6 0x0807396c in gistinsert ()
#7 0x08073865 in gistinsert ()
#8 0x08073732 in gistinsert ()
#9 0x081ead7b in OidFunctionCall6 ()
#10 0x080831c5 in index_insert ()
#11 0x0810f1ea in ExecInsertIndexTuples ()
#12 0x081092e4 in ExecEndPlan ()
#13 0x08108aca in ExecEndPlan ()
#14 0x08107c38 in ExecutorRun ()
#15 0x0817e00d in ProcessQuery ()
#16 0x0817eaf7 in PortalRun ()
#17 0x0817e47f in PortalRun ()
#18 0x0817ad54 in pg_plan_queries ()
#19 0x0817d2c0 in PostgresMain ()
#20 0x08157345 in ClosePostmasterPorts ()
#21 0x08156d43 in ClosePostmasterPorts ()
#22 0x08155218 in PostmasterMain ()
---Type <return> to continue, or q <return> to quit---
#23 0x081548a4 in PostmasterMain ()
#24 0x08124dc6 in main ()
(gdb)
-----------------------------
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 0
@ 2004-04-09 03:19 Tom Lane <tgl@sss.pgh.pa.us>
parent: John Hagstrand <john.hagstrand@interageresearch.com>
0 siblings, 1 reply; 43+ messages in thread
From: Tom Lane @ 2004-04-09 03:19 UTC (permalink / raw)
To: John Hagstrand <john.hagstrand@interageresearch.com>; +Cc: pgsql-general
"John Hagstrand" <john.hagstrand@interageresearch.com> writes:
> (gdb) bt
> #0 0x081e6056 in errfinish ()
> #1 0x081e6e66 in elog_finish ()
> #2 0x081f5112 in MemoryContextAlloc ()
> #3 0x080758d0 in gistinsert ()
> #4 0x08073bac in gistinsert ()
> #5 0x0807396c in gistinsert ()
> #6 0x0807396c in gistinsert ()
> #7 0x08073865 in gistinsert ()
> #8 0x08073732 in gistinsert ()
> #9 0x081ead7b in OidFunctionCall6 ()
> #10 0x080831c5 in index_insert ()
Well, that makes it a GIST index bug ... since you hadn't mentioned the
existence of any indexes on this table, I feel I've been shorted some
critical info ;-). What exactly are you doing with GIST on this table?
regards, tom lane
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 0
@ 2004-04-09 09:49 John Hagstrand <john.hagstrand@interageresearch.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 43+ messages in thread
From: John Hagstrand @ 2004-04-09 09:49 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general
Tom,
There are two indexes on the table, defined like this.
CREATE INDEX idx_geo_property ON property USING gist (geom)
CREATE UNIQUE INDEX idx_property_acct_ln ON property USING btree (acct, ln)
John
> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Sent: Thursday, April 08, 2004 10:19 PM
> To: John Hagstrand
> Cc: pgsql-general@postgresql.org
> Subject: Re: [GENERAL] ERROR: invalid memory alloc request size 0
>
>
> "John Hagstrand" <john.hagstrand@interageresearch.com> writes:
> > (gdb) bt
> > #0 0x081e6056 in errfinish ()
> > #1 0x081e6e66 in elog_finish ()
> > #2 0x081f5112 in MemoryContextAlloc ()
> > #3 0x080758d0 in gistinsert ()
> > #4 0x08073bac in gistinsert ()
> > #5 0x0807396c in gistinsert ()
> > #6 0x0807396c in gistinsert ()
> > #7 0x08073865 in gistinsert ()
> > #8 0x08073732 in gistinsert ()
> > #9 0x081ead7b in OidFunctionCall6 ()
> > #10 0x080831c5 in index_insert ()
>
> Well, that makes it a GIST index bug ... since you hadn't mentioned the
> existence of any indexes on this table, I feel I've been shorted some
> critical info ;-). What exactly are you doing with GIST on this table?
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 0
@ 2004-04-09 12:11 Tom Lane <tgl@sss.pgh.pa.us>
parent: John Hagstrand <john.hagstrand@interageresearch.com>
0 siblings, 0 replies; 43+ messages in thread
From: Tom Lane @ 2004-04-09 12:11 UTC (permalink / raw)
To: John Hagstrand <john.hagstrand@interageresearch.com>; +Cc: pgsql-general
"John Hagstrand" <john.hagstrand@interageresearch.com> writes:
> CREATE INDEX idx_geo_property ON property USING gist (geom)
This must be the culprit. I seem to have deleted your prior mail that
would tell me the datatype of the geom column :-( ... what was it again?
And which GIST operator class are you using here?
regards, tom lane
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 0
@ 2004-04-15 02:40 John Hagstrand <john.hagstrand@interageresearch.com>
0 siblings, 1 reply; 43+ messages in thread
From: John Hagstrand @ 2004-04-15 02:40 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general
Hi Tom,
OK. We recompiled with --enable-debug.
Here is a more detailed backtrace.
Thanks
John
------------------------------------------------
[root@interage jhagstrand]# gdb /usr/bin/postgres 21153
GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".
Attaching to program: /usr/bin/postgres, process 21153
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libreadline.so.4...done.
Loaded symbols for /usr/lib/libreadline.so.4
Reading symbols from /lib/libtermcap.so.2...done.
Loaded symbols for /lib/libtermcap.so.2
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
0x00847c32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) b errfinish
Breakpoint 1 at 0x81a799d: file elog.c, line 319.
(gdb) cont
Continuing.
Breakpoint 1, errfinish (dummy=0) at elog.c:319
319 ErrorData *edata = &errordata[errordata_stack_depth];
(gdb) bt
#0 errfinish (dummy=0) at elog.c:319
#1 0x081a85de in elog_finish (elevel=20,
fmt=0x8231d80 "invalid memory alloc request size %lu") at elog.c:853
#2 0x081b3dd6 in MemoryContextAlloc (context=0x9f10598, size=0) at
mcxt.c:482
#3 0x0807411d in gistSplit (r=0xbe9a1938, buffer=805, itup=0x9f25128,
len=0xbfec3eac, giststate=0xbfec4070, res=0xbfec402c) at gist.c:1348
#4 0x080725bb in gistlayerinsert (r=0xbe9a1938, blkno=143, itup=0xbfec3fe4,
len=0xbfec3fe8, res=0xbfec402c, giststate=0xbfec4070) at gist.c:522
#5 0x080723be in gistlayerinsert (r=0xbe9a1938, blkno=188, itup=0xbfec3fe4,
len=0xbfec3fe8, res=0xbfec402c, giststate=0xbfec4070) at gist.c:470
#6 0x080723be in gistlayerinsert (r=0xbe9a1938, blkno=0, itup=0xbfec3fe4,
len=0xbfec3fe8, res=0xbfec402c, giststate=0xbfec4070) at gist.c:470
#7 0x080722e5 in gistdoinsert (r=0xbe9a1938, itup=0x9f225d8,
res=0xbfec402c,
giststate=0xbfec4070) at gist.c:425
#8 0x080721dc in gistinsert (fcinfo=0x9ec6ea8) at gist.c:348
#9 0x081ab6c9 in OidFunctionCall6 (functionId=775, arg1=166489768,
arg2=166489768, arg3=166489768, arg4=166489768, arg5=166489768,
arg6=166489768) at fmgr.c:1345
#10 0x0807f789 in index_insert (indexRelation=0xbe9a1938, datums=0xbfec5730,
nulls=0xbfec5710 " \003", heap_t_ctid=0x9f24d04,
heapRelation=0xbf5fa308,
check_uniqueness=0 '\0') at indexam.c:226
#11 0x080f5cd3 in ExecInsertIndexTuples (slot=0x0, tupleid=0x9f24d04,
estate=0x9f21540, is_vacuum=0 '\0') at execUtils.c:877
#12 0x080f0d21 in ExecUpdate (slot=0x9f217d0, tupleid=0xbfec5870,
estate=0x9f21540) at execMain.c:1629
#13 0x080f06cc in ExecutePlan (estate=0x9f21540, planstate=0x9f217f0,
operation=CMD_UPDATE, numberTuples=0, direction=166489768,
dest=0x9f12c88)
at execMain.c:1211
#14 0x080efa8e in ExecutorRun (queryDesc=0x9f21138,
direction=ForwardScanDirection, count=0) at execMain.c:249
#15 0x0815140a in ProcessQuery (parsetree=0x9ec6ea8, plan=0x9f21138,
params=0x9ec6ea8, dest=0x9f10598, completionTag=0xbfec59e0 "")
at pquery.c:139
#16 0x08151d44 in PortalRunMulti (portal=0x9f1ef98, dest=0x9f12c88,
altdest=0x9f12c88, completionTag=0xbfec59e0 "") at pquery.c:846
#17 0x081517e0 in PortalRun (portal=0x9f1ef98, count=2147483647,
dest=0x9f12c88,
altdest=0x9f12c88, completionTag=0xbfec59e0 "") at pquery.c:483
#18 0x0814ea67 in exec_simple_query (
query_string=0x9f125c8 "update property set salestatus = '4' where
salestatus = '3'") at postgres.c:873
#19 0x081508a5 in PostgresMain (argc=4, argv=0x9ec7318,
username=0x9ec72e8 "jhagstrand") at postgres.c:2868
#20 0x08130e36 in BackendFork (port=0x9ed5750) at postmaster.c:2558
#21 0x08130932 in BackendStartup (port=0x9ed5750) at postmaster.c:2201
#22 0x0812f257 in ServerLoop () at postmaster.c:1113
#23 0x0812ec36 in PostmasterMain (argc=5, argv=0x9ec6468) at
postmaster.c:891
#24 0x0810689e in main (argc=5, argv=0xbfec6a54) at main.c:214
(gdb) Quit
------------------------------------------------
> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Sent: Friday, April 09, 2004 8:03 AM
> To: John Hagstrand
> Cc: pgsql-general@postgresql.org
> Subject: Re: [GENERAL] ERROR: invalid memory alloc request size 0
>
>
> "John Hagstrand" <john.hagstrand@interageresearch.com> writes:
> > (gdb) bt
> > #0 0x081e6056 in errfinish ()
> > #1 0x081e6e66 in elog_finish ()
> > #2 0x081f5112 in MemoryContextAlloc ()
> > #3 0x080758d0 in gistinsert ()
> > #4 0x08073bac in gistinsert ()
> > #5 0x0807396c in gistinsert ()
> > #6 0x0807396c in gistinsert ()
> > #7 0x08073865 in gistinsert ()
> > #8 0x08073732 in gistinsert ()
> > #9 0x081ead7b in OidFunctionCall6 ()
> > #10 0x080831c5 in index_insert ()
>
> BTW, I took a quick look through gist.c and saw no smoking gun, in the
> form of an obvious candidate for doing palloc(0). gistreadbuffer()
> could do it if called on an empty page, but it doesn't look like it
> would be. So we need more data.
>
> The above trace is misleading since gistinsert() is not recursive.
> I think what's really going on is that the executable has been stripped
> of static-function names and gdb is just reporting the nearest global
> function name. So we're somewhere in that nest of little static
> functions called by gistinsert(), but it's hard to be sure where.
>
> Could I pester you to recompile with --enable-debug so we can get a more
> useful backtrace? I was originally hoping to duplicate the problem
> here, but I now suspect it's an odd corner case that will be hard to
> replicate.
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 0
@ 2004-04-15 03:53 Tom Lane <tgl@sss.pgh.pa.us>
parent: John Hagstrand <john.hagstrand@interageresearch.com>
0 siblings, 0 replies; 43+ messages in thread
From: Tom Lane @ 2004-04-15 03:53 UTC (permalink / raw)
To: John Hagstrand <john.hagstrand@interageresearch.com>; +Cc: pgsql-general@postgresql.org, Paul Ramsey <pramsey@refractions.net>; postgis-users@postgis.refractions.net
"John Hagstrand" <john.hagstrand@interageresearch.com> writes:
> Here is a more detailed backtrace.
> (gdb) bt
> #0 errfinish (dummy=0) at elog.c:319
> #1 0x081a85de in elog_finish (elevel=20,
> fmt=0x8231d80 "invalid memory alloc request size %lu") at elog.c:853
> #2 0x081b3dd6 in MemoryContextAlloc (context=0x9f10598, size=0) at
> mcxt.c:482
> #3 0x0807411d in gistSplit (r=0xbe9a1938, buffer=805, itup=0x9f25128,
> len=0xbfec3eac, giststate=0xbfec4070, res=0xbfec402c) at gist.c:1348
Okay, this makes it pretty clear that the problem is the picksplit
function is setting v.spl_nleft to zero. In other words it's failed
to "split" the page at all (everything in the original index page has
gone into the righthand child). This seems to me to be necessarily
a bug in the index opclass's picksplit function.
You previously said that the column in question is a PostGIS Geometry
column, so I'm of the opinion this is a PostGIS bug. (Paul, any
suggestions about how to probe deeper?)
regards, tom lane
^ permalink raw reply [nested|flat] 43+ messages in thread
* ERROR: invalid memory alloc request size, and others
@ 2007-01-09 19:38 Jonathan Hedstrom <jhedstrom@desc.org>
0 siblings, 1 reply; 43+ messages in thread
From: Jonathan Hedstrom @ 2007-01-09 19:38 UTC (permalink / raw)
To: pgsql-general; +Cc: Ken Tanzer <ktanzer@desc.org>
We recently upgraded from 8.1.4 to 8.2.0 on Fedora Core 6, and are now
seeing a few rather ominous-looking messages.
The problem started with this one, during an update involving a rather
complex view:
ERROR: invalid memory alloc request size 1174405120
Then, when attempting to re-run the same update statement:
PANIC: cannot abort transaction 8682091, it was already committed
and then again:
PANIC: right sibling's left-link doesn't match
I ran reindex on the tables in question, which fixed the problem in the
short term and allowed the update to complete, but then I got the memory
allocation error and these overnight:
ERROR: invalid page header in block 3362 of relation
"index_clin_dal_staff_id"
ERROR: invalid page header in block 2325 of relation "index_clin_dal_batch"
I will gladly provide additional information to help track down and
hopefully solve this problem, but at this point I'm not sure what else
to include.
Any help would be much appreciated.
Thanks,
Jonathan
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size, and others
@ 2007-01-09 20:01 Scott Marlowe <smarlowe@g2switchworks.com>
parent: Jonathan Hedstrom <jhedstrom@desc.org>
0 siblings, 2 replies; 43+ messages in thread
From: Scott Marlowe @ 2007-01-09 20:01 UTC (permalink / raw)
To: Jonathan Hedstrom <jhedstrom@desc.org>; +Cc: pgsql-general; Ken Tanzer <ktanzer@desc.org>
On Tue, 2007-01-09 at 13:38, Jonathan Hedstrom wrote:
> We recently upgraded from 8.1.4 to 8.2.0 on Fedora Core 6, and are now
> seeing a few rather ominous-looking messages.
>
> The problem started with this one, during an update involving a rather
> complex view:
>
> ERROR: invalid memory alloc request size 1174405120
>
> Then, when attempting to re-run the same update statement:
>
> PANIC: cannot abort transaction 8682091, it was already committed
>
> and then again:
>
> PANIC: right sibling's left-link doesn't match
>
>
> I ran reindex on the tables in question, which fixed the problem in the
> short term and allowed the update to complete, but then I got the memory
> allocation error and these overnight:
>
> ERROR: invalid page header in block 3362 of relation
> "index_clin_dal_staff_id"
> ERROR: invalid page header in block 2325 of relation "index_clin_dal_batch"
>
> I will gladly provide additional information to help track down and
> hopefully solve this problem, but at this point I'm not sure what else
> to include.
First step, update to 8.2.1, it came out yesterday, and there were a few
bugs that got stomped. Don't know if they are related to your problem,
but having the latest version is usually a "good thing".
Also, schedule some maintenance window for your server to run memtest86
and possibly something to check for bad blocks on your drives. Often
errors like the invalid memory alloc request size you're seeing, and the
link doesn't match one are caused by bad hardware.
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size, and others
@ 2007-01-09 21:13 Jonathan Hedstrom <jhedstrom@desc.org>
parent: Scott Marlowe <smarlowe@g2switchworks.com>
1 sibling, 1 reply; 43+ messages in thread
From: Jonathan Hedstrom @ 2007-01-09 21:13 UTC (permalink / raw)
To: pgsql-general; +Cc: Scott Marlowe <smarlowe@g2switchworks.com>; Ken Tanzer <ktanzer@desc.org>
Scott Marlowe wrote:
> On Tue, 2007-01-09 at 13:38, Jonathan Hedstrom wrote:
>
>> We recently upgraded from 8.1.4 to 8.2.0 on Fedora Core 6, and are now
>> seeing a few rather ominous-looking messages.
>>
>> The problem started with this one, during an update involving a rather
>> complex view:
>>
>> ERROR: invalid memory alloc request size 1174405120
>>
>> Then, when attempting to re-run the same update statement:
>>
>> PANIC: cannot abort transaction 8682091, it was already committed
>>
>> and then again:
>>
>> PANIC: right sibling's left-link doesn't match
>>
>>
>> I ran reindex on the tables in question, which fixed the problem in the
>> short term and allowed the update to complete, but then I got the memory
>> allocation error and these overnight:
>>
>> ERROR: invalid page header in block 3362 of relation
>> "index_clin_dal_staff_id"
>> ERROR: invalid page header in block 2325 of relation "index_clin_dal_batch"
>>
>> I will gladly provide additional information to help track down and
>> hopefully solve this problem, but at this point I'm not sure what else
>> to include.
>>
>
> First step, update to 8.2.1, it came out yesterday, and there were a few
> bugs that got stomped. Don't know if they are related to your problem,
> but having the latest version is usually a "good thing".
>
>
I noticed that 8.2.1 had been released shortly after I sent off my
initial email. I've upgraded and hopefully that will take care of it.
> Also, schedule some maintenance window for your server to run memtest86
> and possibly something to check for bad blocks on your drives. Often
> errors like the invalid memory alloc request size you're seeing, and the
> link doesn't match one are caused by bad hardware.
I'll try to run these tests soon, but this is a production server, so
scheduling downtime takes a bit of planning. I should also mention that
this is the exact same server we've been running 8.1.4 on for about 6
months without a problem (doing the same nightly update causing the
problem etc), so I'm a bit skeptical about having suddenly developed
hardware issues.
Thanks,
Jonathan
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size, and others
@ 2007-01-09 21:24 Tom Lane <tgl@sss.pgh.pa.us>
parent: Scott Marlowe <smarlowe@g2switchworks.com>
1 sibling, 1 reply; 43+ messages in thread
From: Tom Lane @ 2007-01-09 21:24 UTC (permalink / raw)
To: Scott Marlowe <smarlowe@g2switchworks.com>; +Cc: Jonathan Hedstrom <jhedstrom@desc.org>; pgsql-general; Ken Tanzer <ktanzer@desc.org>
Scott Marlowe <smarlowe@g2switchworks.com> writes:
> On Tue, 2007-01-09 at 13:38, Jonathan Hedstrom wrote:
>> We recently upgraded from 8.1.4 to 8.2.0 on Fedora Core 6, and are now
>> seeing a few rather ominous-looking messages.
> First step, update to 8.2.1, it came out yesterday, and there were a few
> bugs that got stomped.
Definitely good advice, although none of these messages look related to
the known fixes.
> Also, schedule some maintenance window for your server to run memtest86
> and possibly something to check for bad blocks on your drives.
+1 ... I have not seen any instance of "invalid page header" that could
be traced to a Postgres bug. The cases I've been able to study all
seemed to involve either flaky hardware or kernel-level bugs (such as
dumping a fragment of some unrelated file into a Postgres table :-()
regards, tom lane
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size, and others
@ 2007-01-09 22:12 Jonathan Hedstrom <jhedstrom@desc.org>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 2 replies; 43+ messages in thread
From: Jonathan Hedstrom @ 2007-01-09 22:12 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Scott Marlowe <smarlowe@g2switchworks.com>; pgsql-general; Ken Tanzer <ktanzer@desc.org>
Tom Lane wrote:
> Scott Marlowe <smarlowe@g2switchworks.com> writes:
>
>> Also, schedule some maintenance window for your server to run memtest86
>> and possibly something to check for bad blocks on your drives.
>>
>
> +1 ... I have not seen any instance of "invalid page header" that could
> be traced to a Postgres bug. The cases I've been able to study all
> seemed to involve either flaky hardware or kernel-level bugs (such as
> dumping a fragment of some unrelated file into a Postgres table :-()
>
> regards, tom lane
>
Since it sounds like this is either a hardware or a kernel issue, we're
wondering if our downtime would be better spent rebooting to the
standard FC6 kernel, or trying some of the aforementioned hardware tests...
We are running a xen kernel: 2.6.18-1.2798.fc6xen
and getting these kernel errors in our logs:
Jan 7 18:51:23 ws116 kernel: SKB BUG: Invalid truesize (4012)
len=16384, sizeof(sk_buff)=172
Jan 7 18:51:23 ws116 kernel: SKB BUG: Invalid truesize (4012)
len=16384, sizeof(sk_buff)=172
Jan 9 08:52:12 ws116 kernel: SKB BUG: Invalid truesize (4012)
len=16384, sizeof(sk_buff)=172
Jan 9 13:07:35 ws116 kernel: SKB BUG: Invalid truesize (4012)
len=16384, sizeof(sk_buff)=172
(The memory alloc error first occured early in the morning on the 8th).
Thanks,
Jonathan
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size, and others
@ 2007-01-09 22:16 Andrew Kroeger <andrew@sprocks.gotdns.com>
parent: Jonathan Hedstrom <jhedstrom@desc.org>
0 siblings, 0 replies; 43+ messages in thread
From: Andrew Kroeger @ 2007-01-09 22:16 UTC (permalink / raw)
To: Jonathan Hedstrom <jhedstrom@desc.org>; +Cc: pgsql-general; Scott Marlowe <smarlowe@g2switchworks.com>; Ken Tanzer <ktanzer@desc.org>
Jonathan Hedstrom wrote:
> Scott Marlowe wrote:
>> On Tue, 2007-01-09 at 13:38, Jonathan Hedstrom wrote:
>>
>>> We recently upgraded from 8.1.4 to 8.2.0 on Fedora Core 6, and are now
>>> seeing a few rather ominous-looking messages.
[ SNIP ]
>> Also, schedule some maintenance window for your server to run memtest86
>> and possibly something to check for bad blocks on your drives. Often
>> errors like the invalid memory alloc request size you're seeing, and the
>> link doesn't match one are caused by bad hardware.
>
> I'll try to run these tests soon, but this is a production server, so
> scheduling downtime takes a bit of planning. I should also mention that
> this is the exact same server we've been running 8.1.4 on for about 6
> months without a problem (doing the same nightly update causing the
> problem etc), so I'm a bit skeptical about having suddenly developed
> hardware issues.
Not having experienced any of the above issues myself, the following are
totally off-the-cuff:
You indicated you are now running Fedora Core 6, and that your previous
8.1.4 configuration was running for ~6 months prior to upgrading. I
assume that because it is a production server, the FC 6 upgrade was
performed at the same time as the 8.2 upgrade. You indicated that
you're running on the exact same hardware as before, so unless you
opened the machine, relocated it, etc. as part of the upgrade, hardware
issues would seem unlikely.
FC 6 brings a number of changes to the table -- the biggest one being
the 2.6.18 Linux kernel. The 2.6.18 kernel updates were released for FC
5 in the middle of October, but as you are talking about a production
server, I would imagine you did not upgrade at that time.
Have you applied all current FC 6 updates? I definitely recommend
making sure you are current with all updates. A quick check shows that
FC 6 has released almost as many package updates as since its release as
FC 5 has since it was released (6 months more time). I know there were
a number of issues that were queued up and released right after the FC 6
release, to avoid slipping the release date any further than it had
already slipped.
If you can't attribute the issues to any software problems, I would
definitely start looking at the hardware, as Scott & Tom suggested. As
unlikely as hardware issues might seem, that seems to be the most
frequent time those little buggers manage to show their teeth :^)
Hope this helps...
Andrew
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size, and others
@ 2007-01-09 22:31 Tom Lane <tgl@sss.pgh.pa.us>
parent: Jonathan Hedstrom <jhedstrom@desc.org>
1 sibling, 1 reply; 43+ messages in thread
From: Tom Lane @ 2007-01-09 22:31 UTC (permalink / raw)
To: Jonathan Hedstrom <jhedstrom@desc.org>; +Cc: Scott Marlowe <smarlowe@g2switchworks.com>; pgsql-general; Ken Tanzer <ktanzer@desc.org>
Jonathan Hedstrom <jhedstrom@desc.org> writes:
> We are running a xen kernel: 2.6.18-1.2798.fc6xen
When did you start doing that ... any relation to the time when the
problems started?
I've heard some unkind remarks about the stability of Xen, though
I have no direct knowledge about it.
regards, tom lane
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size, and others
@ 2007-01-09 22:39 Andrew Kroeger <andrew@sprocks.gotdns.com>
parent: Jonathan Hedstrom <jhedstrom@desc.org>
1 sibling, 1 reply; 43+ messages in thread
From: Andrew Kroeger @ 2007-01-09 22:39 UTC (permalink / raw)
To: Jonathan Hedstrom <jhedstrom@desc.org>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Scott Marlowe <smarlowe@g2switchworks.com>; pgsql-general; Ken Tanzer <ktanzer@desc.org>
Jonathan Hedstrom wrote:
> Tom Lane wrote:
>> Scott Marlowe <smarlowe@g2switchworks.com> writes:
>>
>>> Also, schedule some maintenance window for your server to run memtest86
>>> and possibly something to check for bad blocks on your drives.
>>>
>> +1 ... I have not seen any instance of "invalid page header" that could
>> be traced to a Postgres bug. The cases I've been able to study all
>> seemed to involve either flaky hardware or kernel-level bugs (such as
>> dumping a fragment of some unrelated file into a Postgres table :-()
>>
>> regards, tom lane
>>
> Since it sounds like this is either a hardware or a kernel issue, we're
> wondering if our downtime would be better spent rebooting to the
> standard FC6 kernel, or trying some of the aforementioned hardware tests...
>
> We are running a xen kernel: 2.6.18-1.2798.fc6xen
This is the base Xen kernel from the FC 6 release. There have been 3
updates released since then (most recently 01-Jan). I see a number of
Xen fixes in the changelog, and I know that the major factor in the
slippage of the FC 6 release was getting Xen into the distro -- so I
would definitely expect some Xen bugs in the initial cut from the release.
Simplest advice I can think of: if you don't need Xen, go back to the
stock (albeit most recent update) kernel. If you do need Xen, try the
most recent update of the stock kernel anyway. If the problems persist,
you've at least eliminated one variable. If they go away, you've got
the culprit.
Note that I don't use Xen, so I'm not completely up-to-date... Last I
knew there were issues preventing Xen from being included in the
upstream Linux kernel (vendors are patching it in individually), and
that speaks volumes as to the "newness" of the technology.
Andrew
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size, and others
@ 2007-01-09 23:35 Jonathan Hedstrom <jhedstrom@desc.org>
parent: Andrew Kroeger <andrew@sprocks.gotdns.com>
0 siblings, 1 reply; 43+ messages in thread
From: Jonathan Hedstrom @ 2007-01-09 23:35 UTC (permalink / raw)
To: Andrew Kroeger <andrew@sprocks.gotdns.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Scott Marlowe <smarlowe@g2switchworks.com>; pgsql-general; Ken Tanzer <ktanzer@desc.org>
Andrew Kroeger wrote:
> This is the base Xen kernel from the FC 6 release. There have been 3
> updates released since then (most recently 01-Jan). I see a number of
> Xen fixes in the changelog, and I know that the major factor in the
> slippage of the FC 6 release was getting Xen into the distro -- so I
> would definitely expect some Xen bugs in the initial cut from the
> release.
>
We had downloaded the kernel updates, but after doing so, forgot to
reboot in order to use the updated kernel...
> Simplest advice I can think of: if you don't need Xen, go back to the
> stock (albeit most recent update) kernel. If you do need Xen, try the
> most recent update of the stock kernel anyway. If the problems
> persist, you've at least eliminated one variable. If they go away,
> you've got the culprit.
>
We downloaded the most recent stock FC6 kernel and rebooted to that.
Hopefully this will take care of the issue.
I reindexed the tables related to the failing update. Other than that,
is there any cleanup work I should do relating to these errors?
Thanks for all the quick responses.
-Jonathan
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size, and others
@ 2007-01-10 00:05 Jonathan Hedstrom <jhedstrom@desc.org>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 43+ messages in thread
From: Jonathan Hedstrom @ 2007-01-10 00:05 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general; Ken Tanzer <ktanzer@desc.org>
Tom Lane wrote:
> Jonathan Hedstrom <jhedstrom@desc.org> writes:
>
>> We are running a xen kernel: 2.6.18-1.2798.fc6xen
>>
>
> When did you start doing that ... any relation to the time when the
> problems started?
>
We started using the xen kernel on the 3rd, and there wasn't any
indication of a problem until the 8th, so that means the update ran w/o
problem on the 4th and 5th (it doesn't run over the weekend). We have
decided to run the stock fc6 kernel for now.
-Jonathan
Attachments:
jhedstrom.vcf (text/x-vcard, 234B) download
begin:vcard
fn:Jonathan Hedstrom
n:Hedstrom;Jonathan
org:Downtown Emergency Service Center;Information Services
email;internet:jhedstrom@desc.org
title:Data Systems Administrator
tel;work:(206) 464-1570 ext. 3014
version:2.1
end:vcard
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size, and others
@ 2007-01-11 19:32 Jonathan Hedstrom <jhedstrom@desc.org>
parent: Jonathan Hedstrom <jhedstrom@desc.org>
0 siblings, 0 replies; 43+ messages in thread
From: Jonathan Hedstrom @ 2007-01-11 19:32 UTC (permalink / raw)
To: pgsql-general; +Cc: Andrew Kroeger <andrew@sprocks.gotdns.com>; Tom Lane <tgl@sss.pgh.pa.us>; Scott Marlowe <smarlowe@g2switchworks.com>; Ken Tanzer <ktanzer@desc.org>
Jonathan Hedstrom wrote:
> We downloaded the most recent stock FC6 kernel and rebooted to that.
> Hopefully this will take care of the issue.
We've been up and running for 2 days now on the stock kernel, and
haven't seen any of these errors. I'm thinking the issue is resolved.
Thanks again for all the replies.
-Jonathan
^ permalink raw reply [nested|flat] 43+ messages in thread
* ERROR: invalid memory alloc request size 1073741824
@ 2018-01-30 17:35 Stefan Blanke <stefan.blanke@framestore.com>
0 siblings, 2 replies; 43+ messages in thread
From: Stefan Blanke @ 2018-01-30 17:35 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hello,
We've tripped over an error when doing a "COPY.. TO STDOUT WITH BINARY"
query.
"ERROR: invalid memory alloc request size 1073741824"
(exactly 1GB)
So a palloc() call is failing on the AllocSizeIsValid() check.
Does anyone know if this a safety catch we are tripping with a bad query
- or whether this check is something that should never be hit (i.e. a bug).
This has been some discussion before about making a change before the
9.5beta1:
https://www.postgresql.org/message-id/flat/9A28C8860F777E439AA12E8AEA7694F8010F6F3F%40BPXM15GP.gisp....
https://www.postgresql.org/message-id/flat/CAKJS1f_sxPyBHF6%3DnEYwPJdKKDNjVDP91b_EJApfyGTei%3DViDw%4...
postgresql 9.5.4 (2PGDG.rhel6)
work_mem = 256MB
Thanks,
Stefan
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 1073741824
@ 2018-01-30 20:56 Tomas Vondra <tomas.vondra@2ndquadrant.com>
parent: Stefan Blanke <stefan.blanke@framestore.com>
1 sibling, 0 replies; 43+ messages in thread
From: Tomas Vondra @ 2018-01-30 20:56 UTC (permalink / raw)
To: Stefan Blanke <stefan.blanke@framestore.com>; pgsql-general@lists.postgresql.org
On 01/30/2018 06:35 PM, Stefan Blanke wrote:
> Hello,
>
> We've tripped over an error when doing a "COPY.. TO STDOUT WITH BINARY"
> query.
>
> "ERROR: invalid memory alloc request size 1073741824"
> (exactly 1GB)
>
> So a palloc() call is failing on the AllocSizeIsValid() check.
>
> Does anyone know if this a safety catch we are tripping with a bad
> query - or whether this check is something that should never be hit
> (i.e. a bug).
>
That very much depends on where exactly the failure happens - it might
be both (or relying on an assumption that changed over). It's not clear
if it fails during query execution or formatting the output (I seem to
remember there were/are issues with rows containing multiple large bytea
values, for example).
Can you attach gdb to the backend, set breakpoint on that elog and share
the backtrace? Then we can investigate further.
In case you don't have experience with doing that, here's a howto on the
community wiki:
https://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_PostgreSQL_backend_on_Linux/BSD
> This has been some discussion before about making a change before the
> 9.5beta1:
>
> https://www.postgresql.org/message-id/flat/9A28C8860F777E439AA12E8AEA7694F8010F6F3F%40BPXM15GP.gisp....
>
> https://www.postgresql.org/message-id/flat/CAKJS1f_sxPyBHF6%3DnEYwPJdKKDNjVDP91b_EJApfyGTei%3DViDw%4...
>
Both of those threads are about a hashjoin issue, which should have been
fixed in 9.5. Moreover, you haven't shared the query and it's query
plan, so it's unclear if it's doing hash joins at all. That would be
useful for investigating this issue, BTW.
>
> postgresql 9.5.4 (2PGDG.rhel6)
> work_mem = 256MB
>
FWIW you're missing more than a year of bugfixes
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 1073741824
@ 2018-01-30 21:43 Jan Wieck <jan@wi3ck.info>
parent: Stefan Blanke <stefan.blanke@framestore.com>
1 sibling, 1 reply; 43+ messages in thread
From: Jan Wieck @ 2018-01-30 21:43 UTC (permalink / raw)
To: Stefan Blanke <stefan.blanke@framestore.com>; +Cc: pgsql-general@lists.postgresql.org
On Tue, Jan 30, 2018 at 12:35 PM, Stefan Blanke <
stefan.blanke@framestore.com> wrote:
> Hello,
>
> We've tripped over an error when doing a "COPY.. TO STDOUT WITH BINARY"
> query.
>
> "ERROR: invalid memory alloc request size 1073741824"
> (exactly 1GB)
>
I have my money on a corrupted TOAST entry. Is this happening on
trustworthy hardware or beige box with no ECC or RAID?
Regards, Jan
>
> So a palloc() call is failing on the AllocSizeIsValid() check.
>
> Does anyone know if this a safety catch we are tripping with a bad query -
> or whether this check is something that should never be hit (i.e. a bug).
>
> This has been some discussion before about making a change before the
> 9.5beta1:
>
> https://www.postgresql.org/message-id/flat/9A28C8860F777E439
> AA12E8AEA7694F8010F6F3F%40BPXM15GP.gisp.nec.co.jp
>
> https://www.postgresql.org/message-id/flat/CAKJS1f_sxPyBHF6%
> 3DnEYwPJdKKDNjVDP91b_EJApfyGTei%3DViDw%40mail.gmail.com
>
> postgresql 9.5.4 (2PGDG.rhel6)
> work_mem = 256MB
>
> Thanks,
> Stefan
>
>
--
Jan Wieck
Senior Postgres Architect
http://pgblog.wi3ck.info
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 1073741824
@ 2018-01-30 22:00 Tomas Vondra <tomas.vondra@2ndquadrant.com>
parent: Jan Wieck <jan@wi3ck.info>
0 siblings, 1 reply; 43+ messages in thread
From: Tomas Vondra @ 2018-01-30 22:00 UTC (permalink / raw)
To: Jan Wieck <jan@wi3ck.info>; Stefan Blanke <stefan.blanke@framestore.com>; +Cc: pgsql-general@lists.postgresql.org
On 01/30/2018 10:43 PM, Jan Wieck wrote:
>
>
> On Tue, Jan 30, 2018 at 12:35 PM, Stefan Blanke
> <stefan.blanke@framestore.com <mailto:stefan.blanke@framestore.com>> wrote:
>
> Hello,
>
> We've tripped over an error when doing a "COPY.. TO STDOUT WITH
> BINARY" query.
>
> "ERROR: invalid memory alloc request size 1073741824"
> (exactly 1GB)
>
>
> I have my money on a corrupted TOAST entry. Is this happening on
> trustworthy hardware or beige box with no ECC or RAID?
>
I'll bet you it's not that. It's quite unlikely that would fail with
exactly 1GB request size. It seems much more like a buffer that we keep
to be power of 2. The question is which one.
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 1073741824
@ 2018-01-31 17:32 Stefan Blanke <stefan.blanke@framestore.com>
parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
0 siblings, 1 reply; 43+ messages in thread
From: Stefan Blanke @ 2018-01-31 17:32 UTC (permalink / raw)
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>; Jan Wieck <jan@wi3ck.info>; +Cc: pgsql-general@lists.postgresql.org
> That very much depends on where exactly the failure happens - it might
> be both (or relying on an assumption that changed over). It's not clear
> if it fails during query execution or formatting the output (I seem to
> remember there were/are issues with rows containing multiple large bytea
> values, for example).
>
> Can you attach gdb to the backend, set breakpoint on that elog and share
> the backtrace? Then we can investigate further.
I can't easily get a meaningful query plan (i.e. from the live system)
as the query that failed is based on a temporary table built by some
pl/pgsql (the database is more of a conveyor belt than a long term store).
Unfortunately it's difficult to reproduce the ERROR. This has only
occurred a couple of times on a live system in the last year and these
queries run frequently.
I think we will move to 9.5.10 and see if it ever happens again; then if
it does get a backtrace on that newer version. Incidentally we never saw
this error on 8.4 where this code was running from 2009 until 2017.
> I'll bet you it's not that. It's quite unlikely that would fail with
> exactly 1GB request size. It seems much more like a buffer that we keep
> to be power of 2. The question is which one.
I had dismissed corruption before writing in. It's exactly 1GB every
time this has happened - and we can dump the full dataset periodically
without issue.
>> I have my money on a corrupted TOAST entry. Is this happening on
>> trustworthy hardware or beige box with no ECC or RAID?
It's good quality commercial hardware in our colo - no exactly sure what.
Thanks for taking the time to look at this!
Stefan
On 01/30/18 22:00, Tomas Vondra wrote:
>
>
> On 01/30/2018 10:43 PM, Jan Wieck wrote:
>>
>>
>> On Tue, Jan 30, 2018 at 12:35 PM, Stefan Blanke
>> <stefan.blanke@framestore.com <mailto:stefan.blanke@framestore.com>> wrote:
>>
>> Hello,
>>
>> We've tripped over an error when doing a "COPY.. TO STDOUT WITH
>> BINARY" query.
>>
>> "ERROR: invalid memory alloc request size 1073741824"
>> (exactly 1GB)
>>
>>
>> I have my money on a corrupted TOAST entry. Is this happening on
>> trustworthy hardware or beige box with no ECC or RAID?
>>
>
> I'll bet you it's not that. It's quite unlikely that would fail with
> exactly 1GB request size. It seems much more like a buffer that we keep
> to be power of 2. The question is which one.
>
>
> regards
>
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 1073741824
@ 2018-01-31 20:51 Jan Wieck <jan@wi3ck.info>
parent: Stefan Blanke <stefan.blanke@framestore.com>
0 siblings, 1 reply; 43+ messages in thread
From: Jan Wieck @ 2018-01-31 20:51 UTC (permalink / raw)
To: Stefan Blanke <stefan.blanke@framestore.com>; +Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>; pgsql-general@lists.postgresql.org
On Wed, Jan 31, 2018 at 12:32 PM, Stefan Blanke <
stefan.blanke@framestore.com> wrote:
> >
> > I'll bet you it's not that. It's quite unlikely that would fail with
> > exactly 1GB request size. It seems much more like a buffer that we keep
> > to be power of 2. The question is which one.
>
> I had dismissed corruption before writing in. It's exactly 1GB every time
> this has happened - and we can dump the full dataset periodically without
> issue.
>
> >> I have my money on a corrupted TOAST entry. Is this happening on
> >> trustworthy hardware or beige box with no ECC or RAID?
>
> It's good quality commercial hardware in our colo - no exactly sure what.
>
If it is a sporadic issue and you can dump the full dataset, then I just
lost my money (Tomas, you coming to PGConf in Jersey City?).
But then, if this is a plain COPY to stdout ... I am wondering what could
possibly be in that path that wants to allocate 1GB. Or is this not so
plain but rather a COPY ... SELECT ...?
Regards, Jan
>
>
> Thanks for taking the time to look at this!
> Stefan
>
>
>
>
>
> On 01/30/18 22:00, Tomas Vondra wrote:
>
>>
>>
>> On 01/30/2018 10:43 PM, Jan Wieck wrote:
>>
>>>
>>>
>>> On Tue, Jan 30, 2018 at 12:35 PM, Stefan Blanke
>>> <stefan.blanke@framestore.com <mailto:stefan.blanke@framestore.com>>
>>> wrote:
>>>
>>> Hello,
>>>
>>> We've tripped over an error when doing a "COPY.. TO STDOUT WITH
>>> BINARY" query.
>>>
>>> "ERROR: invalid memory alloc request size 1073741824"
>>> (exactly 1GB)
>>>
>>>
>>> I have my money on a corrupted TOAST entry. Is this happening on
>>> trustworthy hardware or beige box with no ECC or RAID?
>>>
>>>
>> I'll bet you it's not that. It's quite unlikely that would fail with
>> exactly 1GB request size. It seems much more like a buffer that we keep
>> to be power of 2. The question is which one.
>>
>>
>> regards
>>
>>
--
Jan Wieck
Senior Postgres Architect
http://pgblog.wi3ck.info
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 1073741824
@ 2018-01-31 21:23 Tomas Vondra <tomas.vondra@2ndquadrant.com>
parent: Jan Wieck <jan@wi3ck.info>
0 siblings, 1 reply; 43+ messages in thread
From: Tomas Vondra @ 2018-01-31 21:23 UTC (permalink / raw)
To: Jan Wieck <jan@wi3ck.info>; Stefan Blanke <stefan.blanke@framestore.com>; +Cc: pgsql-general@lists.postgresql.org
On 01/31/2018 09:51 PM, Jan Wieck wrote:
>
>
> On Wed, Jan 31, 2018 at 12:32 PM, Stefan Blanke
> <stefan.blanke@framestore.com <mailto:stefan.blanke@framestore.com>> wrote:
>
> >
> > I'll bet you it's not that. It's quite unlikely that would fail with
> > exactly 1GB request size. It seems much more like a buffer that we keep
> > to be power of 2. The question is which one.
>
> I had dismissed corruption before writing in. It's exactly 1GB every
> time this has happened - and we can dump the full dataset
> periodically without issue.
>
> >> I have my money on a corrupted TOAST entry. Is this happening on
> >> trustworthy hardware or beige box with no ECC or RAID?
>
> It's good quality commercial hardware in our colo - no exactly sure
> what.
>
>
> If it is a sporadic issue and you can dump the full dataset, then I just
> lost my money (Tomas, you coming to PGConf in Jersey City?).
>
Unfortunately no, but I'm sure there will be other opportunities to buy
me a beer ;-) Like pgcon, for example.
>
> But then, if this is a plain COPY to stdout ... I am wondering what
> could possibly be in that path that wants to allocate 1GB. Or is this
> not so plain but rather a COPY ... SELECT ...?
>
That's what I've been guessing, and why I was asking for a query plan.
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 1073741824
@ 2020-03-11 15:26 Stefan Blanke <stefan.blanke@framestore.com>
parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
0 siblings, 1 reply; 43+ messages in thread
From: Stefan Blanke @ 2020-03-11 15:26 UTC (permalink / raw)
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>; Jan Wieck <jan@wi3ck.info>; +Cc: pgsql-general@lists.postgresql.org
Hi,
We've upgraded to PostgreSQL 11.5 (postgresql.org rhel 6 rpm) and I have
had another occurrence of this invalid alloc of 1GB. Apologies for never
providing a query plan when discussing this two years ago; we decided to
move to a newer PostgreSQL to see if the issue went away but took a
while to complete the move.
The invalid alloc still only occurs occasionally every few months on a
query that we run every minute; so unfortunately we still don't have a
contained reproducible test case.
This is the SQL we are running with a query plan - the query plan is
from an new empty database so the planner has no stats.
CREATE OR REPLACE FUNCTION
create_table()
RETURNS TABLE (a INTEGER, b INTEGER)
AS $$
UPDATE y
SET c = true,
d = false
WHERE e IS NOT true
AND f IS NOT true
AND g = 1
AND h = 0
AND i = 0
AND (j IS NULL
OR j > 0)
RETURNING y.a, y.b;
$$ LANGUAGE SQL;
-- Prepared statement (PQprepare)
CREATE TEMPORARY TABLE temp_table AS
SELECT * FROM create_table()
-- Prepared statement (PQprepare)
SELECT y.a, y.b,
x.k,
x.l,
y.m,
y.n,
y.o
FROM temp_table
INNER JOIN y ON temp_table.b = y.b
AND temp_table.a = y.a
INNER JOIN x ON x.a = y.a
-- The two prepared statements are executed one after another
-- in the order shown many times an hour.
The query plan for the second prepared statement is:
Nested Loop (cost=17.14..64.38 rows=16 width=112)
-> Hash Join (cost=17.00..61.47 rows=16 width=80)
Hash Cond: ((temp_table.b = y.b) AND (temp_table.a = y.a))
-> Seq Scan on temp_table (cost=0.00..32.60 rows=2260 width=8)
-> Hash (cost=12.80..12.80 rows=280 width=76)
-> Seq Scan on y (cost=0.00..12.80 rows=280 width=76)
-> Index Scan using x_pkey on x (cost=0.14..0.18 rows=1 width=40)
Index Cond: (a = temp_table.a)
Thanks,
Stefan
On 31/01/2018 21:23, Tomas Vondra wrote:
>
>
> On 01/31/2018 09:51 PM, Jan Wieck wrote:
>>
>>
>> On Wed, Jan 31, 2018 at 12:32 PM, Stefan Blanke
>> <stefan.blanke@framestore.com <mailto:stefan.blanke@framestore.com>> wrote:
>>
>> >
>> > I'll bet you it's not that. It's quite unlikely that would fail with
>> > exactly 1GB request size. It seems much more like a buffer that we keep
>> > to be power of 2. The question is which one.
>>
>> I had dismissed corruption before writing in. It's exactly 1GB every
>> time this has happened - and we can dump the full dataset
>> periodically without issue.
>>
>> >> I have my money on a corrupted TOAST entry. Is this happening on
>> >> trustworthy hardware or beige box with no ECC or RAID?
>>
>> It's good quality commercial hardware in our colo - no exactly sure
>> what.
>>
>>
>> If it is a sporadic issue and you can dump the full dataset, then I just
>> lost my money (Tomas, you coming to PGConf in Jersey City?).
>>
>
> Unfortunately no, but I'm sure there will be other opportunities to buy
> me a beer ;-) Like pgcon, for example.
>
>>
>> But then, if this is a plain COPY to stdout ... I am wondering what
>> could possibly be in that path that wants to allocate 1GB. Or is this
>> not so plain but rather a COPY ... SELECT ...?
>>
>
> That's what I've been guessing, and why I was asking for a query plan.
>
>
> regards
>
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 1073741824
@ 2020-03-11 15:37 Tom Lane <tgl@sss.pgh.pa.us>
parent: Stefan Blanke <stefan.blanke@framestore.com>
0 siblings, 1 reply; 43+ messages in thread
From: Tom Lane @ 2020-03-11 15:37 UTC (permalink / raw)
To: Stefan Blanke <stefan.blanke@framestore.com>; +Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>; Jan Wieck <jan@wi3ck.info>; pgsql-general@lists.postgresql.org
Stefan Blanke <stefan.blanke@framestore.com> writes:
> We've upgraded to PostgreSQL 11.5 (postgresql.org rhel 6 rpm) and I have
> had another occurrence of this invalid alloc of 1GB. Apologies for never
> providing a query plan when discussing this two years ago; we decided to
> move to a newer PostgreSQL to see if the issue went away but took a
> while to complete the move.
> The invalid alloc still only occurs occasionally every few months on a
> query that we run every minute; so unfortunately we still don't have a
> contained reproducible test case.
Given the lack of stats, I wonder whether the issue could be related
to the plan sometimes being horribly bad, eg due to the temp table
being much larger than expected. (A possible mechanism would be
hash table bloat, perhaps, but that's getting way ahead of the
evidence.)
Could you adjust your process to log the actual temp table size
each time, ie "select count(*) from temp_table" in between the
two steps, and then note whether the failures are correlated
with unusual temp table sizes?
regards, tom lane
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 1073741824
@ 2020-03-13 14:29 Stefan Blanke <stefan.blanke@framestore.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 43+ messages in thread
From: Stefan Blanke @ 2020-03-13 14:29 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>; Jan Wieck <jan@wi3ck.info>; pgsql-general@lists.postgresql.org
> Could you adjust your process to log the actual temp table size
> each time, ie "select count(*) from temp_table" in between the
> two steps, and then note whether the failures are correlated
> with unusual temp table sizes?
Thanks, I'll add a count there and come back with a number when we next
hit the "invalid memory alloc".
Stefan
On 11/03/2020 15:37, Tom Lane wrote:
> Stefan Blanke <stefan.blanke@framestore.com> writes:
>> We've upgraded to PostgreSQL 11.5 (postgresql.org rhel 6 rpm) and I have
>> had another occurrence of this invalid alloc of 1GB. Apologies for never
>> providing a query plan when discussing this two years ago; we decided to
>> move to a newer PostgreSQL to see if the issue went away but took a
>> while to complete the move.
>
>> The invalid alloc still only occurs occasionally every few months on a
>> query that we run every minute; so unfortunately we still don't have a
>> contained reproducible test case.
>
> Given the lack of stats, I wonder whether the issue could be related
> to the plan sometimes being horribly bad, eg due to the temp table
> being much larger than expected. (A possible mechanism would be
> hash table bloat, perhaps, but that's getting way ahead of the
> evidence.)
>
> Could you adjust your process to log the actual temp table size
> each time, ie "select count(*) from temp_table" in between the
> two steps, and then note whether the failures are correlated
> with unusual temp table sizes?
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 43+ messages in thread
* ERROR: invalid memory alloc request size 18446744073709551613
@ 2020-06-22 14:13 Flaris Feller <flaris.feller@gmail.com>
0 siblings, 2 replies; 43+ messages in thread
From: Flaris Feller @ 2020-06-22 14:13 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hello all,
When using Postgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" on
Intel x86_64 I noticed "invalid memory alloc request size" error at
PostgreSQL logs.
This is the postgresq.log file's fragment of log where the error was found.
2020-06-22 00:29:18 BRT [16987]: [1-1] db=bxs,user=postgres ERRO: invalid
memory alloc request size 18446744073709551613
2020-06-22 00:29:18 BRT [16987]: [2-1] db=bxs,user=postgres COMANDO: COPY
public.cham_chamada....
PostgreSQL was installed using official PGDG repository through yum.
This is the list of postgresql.conf settings used in the cluster.
listen_addresses = '*'
log_destination = 'stderr'
logging_collector = on
log_directory = 'pg_log'
log_filename = 'postgresql-%a.log'
log_truncate_on_rotation = on
log_rotation_age = 1d
log_rotation_size = 0
autovacuum = off
datestyle = 'iso, mdy'
lc_messages = 'pt_BR'
lc_monetary = 'pt_BR'
lc_numeric = 'pt_BR'
lc_time = 'pt_BR'
default_text_search_config = 'pg_catalog.portuguese'
max_connections=150
shared_buffers=2GB
effective_cache_size=4GB
work_mem=13981kB
maintenance_work_mem=256MB
log_min_duration_statement = 300000
log_line_prefix = '%t [%p]: [%l-1] db=%d,user=%u '
log_lock_waits = on
timezone='America/Sao_paulo'
log_timezone = 'Brazil/East'
min_wal_size = 1GB
max_wal_size = 2GB
Looking at previous list's messages I've found this could be a data
corruption issue and I've followed the recommended procedures.
But even removing the corrupted records, doing a vacuum full and
re-indexing the table the problem keep going recurrently.
So I would like some guidance to find the root cause of the table
corruption on the database.
Any help would be appreciated.
Thanks in advance,
Flaris Feller.
--
Flaris Roland Feller
https://www.linkedin.com/in/flarisfeller
flaris.feller@gmail.com
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 18446744073709551613
@ 2020-06-22 14:28 Rob Sargent <robjsargent@gmail.com>
parent: Flaris Feller <flaris.feller@gmail.com>
1 sibling, 1 reply; 43+ messages in thread
From: Rob Sargent @ 2020-06-22 14:28 UTC (permalink / raw)
To: Flaris Feller <flaris.feller@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
> On Jun 22, 2020, at 8:13 AM, Flaris Feller <flaris.feller@gmail.com> wrote:
>
> Hello all,
>
> When using Postgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" on Intel x86_64 I noticed "invalid memory alloc request size" error at PostgreSQL logs.
> This is the postgresq.log file's fragment of log where the error was found.
>
> 2020-06-22 00:29:18 BRT [16987]: [1-1] db=bxs,user=postgres ERRO: invalid memory alloc request size 18446744073709551613
> 2020-06-22 00:29:18 BRT [16987]: [2-1] db=bxs,user=postgres COMANDO: COPY public.cham_chamada....
>
> PostgreSQL was installed using official PGDG repository through yum.
> This is the list of postgresql.conf settings used in the cluster.
>
> listen_addresses = '*'
> log_destination = 'stderr'
> logging_collector = on
> log_directory = 'pg_log'
> log_filename = 'postgresql-%a.log'
> log_truncate_on_rotation = on
> log_rotation_age = 1d
> log_rotation_size = 0
> autovacuum = off
> datestyle = 'iso, mdy'
> lc_messages = 'pt_BR'
> lc_monetary = 'pt_BR'
> lc_numeric = 'pt_BR'
> lc_time = 'pt_BR'
> default_text_search_config = 'pg_catalog.portuguese'
> max_connections=150
> shared_buffers=2GB
> effective_cache_size=4GB
> work_mem=13981kB
> maintenance_work_mem=256MB
> log_min_duration_statement = 300000
> log_line_prefix = '%t [%p]: [%l-1] db=%d,user=%u '
> log_lock_waits = on
> timezone='America/Sao_paulo'
> log_timezone = 'Brazil/East'
> min_wal_size = 1GB
> max_wal_size = 2GB
>
> Looking at previous list's messages I've found this could be a data corruption issue and I've followed the recommended procedures.
> But even removing the corrupted records, doing a vacuum full and re-indexing the table the problem keep going recurrently.
> So I would like some guidance to find the root cause of the table corruption on the database.
> Any help would be appreciated.
>
> Thanks in advance,
> Flaris Feller.
I there an application generating this value perhaps?
1111111111111111111111111111111111111111111111111111111111111101
Looks a little like a signed/un-signed mismatch
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 18446744073709551613
@ 2020-06-22 15:33 Peter J. Holzer <hjp-pgsql@hjp.at>
parent: Flaris Feller <flaris.feller@gmail.com>
1 sibling, 2 replies; 43+ messages in thread
From: Peter J. Holzer @ 2020-06-22 15:33 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 2020-06-22 11:13:33 -0300, Flaris Feller wrote:
> When using Postgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" on Intel
> x86_64 I noticed "invalid memory alloc request size" error at PostgreSQL logs.
> This is the postgresq.log file's fragment of log where the error was found.
>
> 2020-06-22 00:29:18 BRT [16987]: [1-1] db=bxs,user=postgres ERRO: invalid
> memory alloc request size 18446744073709551613
That's 2**64 - 3. So probably the size of some object is (erroneously)
computed as -3 bytes.
> 2020-06-22 00:29:18 BRT [16987]: [2-1] db=bxs,user=postgres COMANDO: COPY
> public.cham_chamada....
Does this always happen in conjunction with a COPY command or sometimes
with other commands, too? If the former, are you copying into the
database or out of it?
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 18446744073709551613
@ 2020-06-22 16:44 Flaris Feller <flaris.feller@gmail.com>
parent: Peter J. Holzer <hjp-pgsql@hjp.at>
1 sibling, 1 reply; 43+ messages in thread
From: Flaris Feller @ 2020-06-22 16:44 UTC (permalink / raw)
To: Peter J. Holzer <hjp-pgsql@hjp.at>; +Cc: pgsql-general@lists.postgresql.org
Hi Peter,
The error happens with SELECT command too and the COPY command was used to
extract data out of the database.
Thanks in advance,
Flaris Feller.
Em seg., 22 de jun. de 2020 às 12:33, Peter J. Holzer <hjp-pgsql@hjp.at>
escreveu:
> On 2020-06-22 11:13:33 -0300, Flaris Feller wrote:
> > When using Postgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" on
> Intel
> > x86_64 I noticed "invalid memory alloc request size" error at PostgreSQL
> logs.
> > This is the postgresq.log file's fragment of log where the error was
> found.
> >
> > 2020-06-22 00:29:18 BRT [16987]: [1-1] db=bxs,user=postgres ERRO:
> invalid
> > memory alloc request size 18446744073709551613
>
> That's 2**64 - 3. So probably the size of some object is (erroneously)
> computed as -3 bytes.
>
> > 2020-06-22 00:29:18 BRT [16987]: [2-1] db=bxs,user=postgres COMANDO:
> COPY
> > public.cham_chamada....
>
> Does this always happen in conjunction with a COPY command or sometimes
> with other commands, too? If the former, are you copying into the
> database or out of it?
>
> hp
>
> --
> _ | Peter J. Holzer | Story must make more sense than reality.
> |_|_) | |
> | | | hjp@hjp.at | -- Charles Stross, "Creative writing
> __/ | http://www.hjp.at/ | challenge!"
>
--
Flaris Roland Feller
48-999811781
https://www.linkedin.com/in/flarisfeller
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 18446744073709551613
@ 2020-06-22 16:54 Tom Lane <tgl@sss.pgh.pa.us>
parent: Flaris Feller <flaris.feller@gmail.com>
0 siblings, 1 reply; 43+ messages in thread
From: Tom Lane @ 2020-06-22 16:54 UTC (permalink / raw)
To: Flaris Feller <flaris.feller@gmail.com>; +Cc: Peter J. Holzer <hjp-pgsql@hjp.at>; pgsql-general@lists.postgresql.org
Flaris Feller <flaris.feller@gmail.com> writes:
> Em seg., 22 de jun. de 2020 às 12:33, Peter J. Holzer <hjp-pgsql@hjp.at>
> escreveu:
>> On 2020-06-22 11:13:33 -0300, Flaris Feller wrote:
>>> When using Postgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" on
>>> Intel x86_64 I noticed "invalid memory alloc request size" error at PostgreSQL
>>> logs.
>> That's 2**64 - 3. So probably the size of some object is (erroneously)
>> computed as -3 bytes.
Yeah. I don't recall the bit-level details offhand, but this is an
extremely common symptom of a corrupted length word in a variable-length
field.
The usual approach is to try to isolate which row or rows contains corrupt
data and then delete it. I'm not aware of any tools for doing that
automatically, but you can usually home in on a bad row by a process of
binary search, eg testing how many rows you can fetch without seeing the
error. Also "select * from mytab where ctid = '(m,n)'" is useful for
probing individual rows, once you get close to the problem area.
regards, tom lane
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 18446744073709551613
@ 2020-08-11 02:00 Flaris Roland Feller <flaris.feller@gmail.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 43+ messages in thread
From: Flaris Roland Feller @ 2020-08-11 02:00 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Peter J. Holzer <hjp-pgsql@hjp.at>; pgsql-general@lists.postgresql.org
Hello all,
I’ve got successfully isolate and delete the corrupted rows at the table, but what would caused that? How to prevent it?
Thanks in advance,
Flaris.
Flaris R. Feller
48-999811781
flaris.feller@gmail.com
http://linkedin.com/in/flarisfeller
> Em 22 de jun de 2020, à(s) 13:54, Tom Lane <tgl@sss.pgh.pa.us> escreveu:
>
> Flaris Feller <flaris.feller@gmail.com> writes:
>>> Em seg., 22 de jun. de 2020 às 12:33, Peter J. Holzer <hjp-pgsql@hjp.at>
>>> escreveu:
>>> On 2020-06-22 11:13:33 -0300, Flaris Feller wrote:
>>>> When using Postgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" on
>>>> Intel x86_64 I noticed "invalid memory alloc request size" error at PostgreSQL
>>>> logs.
>
>>> That's 2**64 - 3. So probably the size of some object is (erroneously)
>>> computed as -3 bytes.
>
> Yeah. I don't recall the bit-level details offhand, but this is an
> extremely common symptom of a corrupted length word in a variable-length
> field.
>
> The usual approach is to try to isolate which row or rows contains corrupt
> data and then delete it. I'm not aware of any tools for doing that
> automatically, but you can usually home in on a bad row by a process of
> binary search, eg testing how many rows you can fetch without seeing the
> error. Also "select * from mytab where ctid = '(m,n)'" is useful for
> probing individual rows, once you get close to the problem area.
>
> regards, tom lane
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 18446744073709551613
@ 2020-08-11 02:22 Flaris Roland Feller <flaris.feller@gmail.com>
parent: Rob Sargent <robjsargent@gmail.com>
0 siblings, 0 replies; 43+ messages in thread
From: Flaris Roland Feller @ 2020-08-11 02:22 UTC (permalink / raw)
To: Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
Hello Rob,
You mean, an insert or update carrying this value? No, it doesn’t.
Thanks,
Flaris.
Flaris R. Feller
flaris.feller@gmail.com
http://linkedin.com/in/flarisfeller
> Em 22 de jun de 2020, à(s) 11:28, Rob Sargent <robjsargent@gmail.com> escreveu:
>
>
>
>> On Jun 22, 2020, at 8:13 AM, Flaris Feller <flaris.feller@gmail.com> wrote:
>>
>> Hello all,
>>
>> When using Postgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" on Intel x86_64 I noticed "invalid memory alloc request size" error at PostgreSQL logs.
>> This is the postgresq.log file's fragment of log where the error was found.
>>
>> 2020-06-22 00:29:18 BRT [16987]: [1-1] db=bxs,user=postgres ERRO: invalid memory alloc request size 18446744073709551613
>> 2020-06-22 00:29:18 BRT [16987]: [2-1] db=bxs,user=postgres COMANDO: COPY public.cham_chamada....
>>
>> PostgreSQL was installed using official PGDG repository through yum.
>> This is the list of postgresql.conf settings used in the cluster.
>>
>> listen_addresses = '*'
>> log_destination = 'stderr'
>> logging_collector = on
>> log_directory = 'pg_log'
>> log_filename = 'postgresql-%a.log'
>> log_truncate_on_rotation = on
>> log_rotation_age = 1d
>> log_rotation_size = 0
>> autovacuum = off
>> datestyle = 'iso, mdy'
>> lc_messages = 'pt_BR'
>> lc_monetary = 'pt_BR'
>> lc_numeric = 'pt_BR'
>> lc_time = 'pt_BR'
>> default_text_search_config = 'pg_catalog.portuguese'
>> max_connections=150
>> shared_buffers=2GB
>> effective_cache_size=4GB
>> work_mem=13981kB
>> maintenance_work_mem=256MB
>> log_min_duration_statement = 300000
>> log_line_prefix = '%t [%p]: [%l-1] db=%d,user=%u '
>> log_lock_waits = on
>> timezone='America/Sao_paulo'
>> log_timezone = 'Brazil/East'
>> min_wal_size = 1GB
>> max_wal_size = 2GB
>>
>> Looking at previous list's messages I've found this could be a data corruption issue and I've followed the recommended procedures.
>> But even removing the corrupted records, doing a vacuum full and re-indexing the table the problem keep going recurrently.
>> So I would like some guidance to find the root cause of the table corruption on the database.
>> Any help would be appreciated.
>>
>> Thanks in advance,
>> Flaris Feller.
>
> I there an application generating this value perhaps?
> 1111111111111111111111111111111111111111111111111111111111111101
> Looks a little like a signed/un-signed mismatch
>
>
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size 18446744073709551613
@ 2020-08-11 02:30 Flaris Roland Feller <flaris.feller@gmail.com>
parent: Peter J. Holzer <hjp-pgsql@hjp.at>
1 sibling, 0 replies; 43+ messages in thread
From: Flaris Roland Feller @ 2020-08-11 02:30 UTC (permalink / raw)
To: Peter J. Holzer <hjp-pgsql@hjp.at>; +Cc: pgsql-general@lists.postgresql.org
Hello Peter,
In this case, It was a COPY for a table to out of the database, but the error occurs with other commands like a SELECT.
Thanks in advance,
Flaris.
Flaris R. Feller
flaris.feller@gmail.com
http://linkedin.com/in/flarisfeller
> Em 22 de jun de 2020, à(s) 12:33, Peter J. Holzer <hjp-pgsql@hjp.at> escreveu:
>
> On 2020-06-22 11:13:33 -0300, Flaris Feller wrote:
>> When using Postgres 9.6.15 on "CentOS Linux release 7.5.1804 (Core)" on Intel
>> x86_64 I noticed "invalid memory alloc request size" error at PostgreSQL logs.
>> This is the postgresq.log file's fragment of log where the error was found.
>>
>> 2020-06-22 00:29:18 BRT [16987]: [1-1] db=bxs,user=postgres ERRO: invalid
>> memory alloc request size 18446744073709551613
>
> That's 2**64 - 3. So probably the size of some object is (erroneously)
> computed as -3 bytes.
>
>> 2020-06-22 00:29:18 BRT [16987]: [2-1] db=bxs,user=postgres COMANDO: COPY
>> public.cham_chamada....
>
> Does this always happen in conjunction with a COPY command or sometimes
> with other commands, too? If the former, are you copying into the
> database or out of it?
>
> hp
>
> --
> _ | Peter J. Holzer | Story must make more sense than reality.
> |_|_) | |
> | | | hjp@hjp.at | -- Charles Stross, "Creative writing
> __/ | http://www.hjp.at/ | challenge!"
^ permalink raw reply [nested|flat] 43+ messages in thread
* ERROR: invalid memory alloc request size when committing transaction
@ 2021-08-12 01:06 Michael Harris <michael.harris@ericsson.com>
0 siblings, 2 replies; 43+ messages in thread
From: Michael Harris @ 2021-08-12 01:06 UTC (permalink / raw)
To: 'pgsql-general@lists.postgresql.org' <pgsql-general@lists.postgresql.org>
Hello Experts
We have a large-ish (16T) database cluster which were are performing the following sequence on.
- First we upgrade the whole cluster from pg11 to pg13, using pg_upgrade (this succeeds)
- Next we run a migration script on each database in the cluster. The migration script
converts a large number of tables from inheritance based partitioning to declarative
partitioning. Unfortunately I am not at liberty to share the migration script.
The second step succeeds for most of the databases in the cluster but fails on one of them.
The migration is performed inside a transaction, and during the process of committing the
transaction the following error is thrown:
[2021-08-11 11:27:50 CEST] aue_75@218006 218015@[local] db_vrqv1 ERROR: invalid memory alloc request size 1073741824
[2021-08-11 11:27:50 CEST] aue_75@218006 218015@[local] db_vrqv1 STATEMENT: commit
[2021-08-11 11:27:50 CEST] aue_75@218006 218015@[local] db_vrqv1 WARNING: AbortTransaction while in COMMIT state
The transaction is rolled back.
I have looked into the error message - it is very low level from the memory manager and
occurs when a memory allocation of >= 1GB is requested. Most of the hits on google for this
error indicate database corruption, however I am not sure this is the case for us as
we have been able to do a complete pg_dump on the database without errors.
We repeated the migration with all postgres debug logging enabled - however this did not
provide any more detail than above.
Luckily this has occurred while we were testing the procedure on a replica of the production
system, not on the actual production system.
We are using pg 13.0. We are currently re-testing this with huge pages disabled (on a hunch)
and after that we plan to re-test it on 13.3.
Any ideas as to what could be causing this problem, or any suggestions for troubleshooting steps
we could take?
Many thanks in advance,
Cheers
Mike.
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size when committing transaction
@ 2021-08-12 03:40 Tom Lane <tgl@sss.pgh.pa.us>
parent: Michael Harris <michael.harris@ericsson.com>
1 sibling, 0 replies; 43+ messages in thread
From: Tom Lane @ 2021-08-12 03:40 UTC (permalink / raw)
To: Michael Harris <michael.harris@ericsson.com>; +Cc: 'pgsql-general@lists.postgresql.org' <pgsql-general@lists.postgresql.org>
Michael Harris <michael.harris@ericsson.com> writes:
> - Next we run a migration script on each database in the cluster. The migration script
> converts a large number of tables from inheritance based partitioning to declarative
> partitioning. Unfortunately I am not at liberty to share the migration script.
How many is "a large number"?
> The migration is performed inside a transaction, and during the process of committing the
> transaction the following error is thrown:
> [2021-08-11 11:27:50 CEST] aue_75@218006 218015@[local] db_vrqv1 ERROR: invalid memory alloc request size 1073741824
> [2021-08-11 11:27:50 CEST] aue_75@218006 218015@[local] db_vrqv1 STATEMENT: commit
> [2021-08-11 11:27:50 CEST] aue_75@218006 218015@[local] db_vrqv1 WARNING: AbortTransaction while in COMMIT state
It's impossible to do more than speculate with this amount of information.
However, a plausible speculation is that you're processing so many objects
in one transaction as to overrun the limit on how large a WAL commit record,
or something related to that, can be. Can you adjust your migration
script to break it into multiple transactions that process fewer tables
per transaction?
regards, tom lane
^ permalink raw reply [nested|flat] 43+ messages in thread
* RE: ERROR: invalid memory alloc request size when committing transaction
@ 2021-08-12 05:42 Michael Harris <michael.harris@ericsson.com>
parent: Michael Harris <michael.harris@ericsson.com>
1 sibling, 2 replies; 43+ messages in thread
From: Michael Harris @ 2021-08-12 05:42 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: 'pgsql-general@lists.postgresql.org' <pgsql-general@lists.postgresql.org>
Thanks Tom,
> How many is "a large number"?
377k approx.
I thought we had logged all the SQL statements last time we ran this, but we forgot to set log_statement. We'll do that next time so we can get a figure on exactly how many of different types of statement are in the transaction.
> Can you adjust your migration script to break it into multiple transactions that process fewer tables per transaction?
We are considering this. It is not ideal, because if conversion fails for any reason we would like the database to roll back to the pre-migration state, but maybe that's not possible with a database of this size.
I am surprised by the error message though - I thought that if we'd hit some limit on a transaction we would get a more specific error.
Cheers
Mike
-----Original Message-----
From: Tom Lane <tgl@sss.pgh.pa.us>
Sent: Thursday, August 12, 2021 1:41 PM
To: Michael Harris <michael.harris@ericsson.com>
Cc: 'pgsql-general@lists.postgresql.org' <pgsql-general@lists.postgresql.org>
Subject: Re: ERROR: invalid memory alloc request size when committing transaction
Michael Harris <michael.harris@ericsson.com> writes:
> - Next we run a migration script on each database in the cluster. The migration script
> converts a large number of tables from inheritance based partitioning to declarative
> partitioning. Unfortunately I am not at liberty to share the migration script.
How many is "a large number"?
> The migration is performed inside a transaction, and during the
> process of committing the transaction the following error is thrown:
> [2021-08-11 11:27:50 CEST] aue_75@218006 218015@[local] db_vrqv1
> ERROR: invalid memory alloc request size 1073741824
> [2021-08-11 11:27:50 CEST] aue_75@218006 218015@[local] db_vrqv1
> STATEMENT: commit
> [2021-08-11 11:27:50 CEST] aue_75@218006 218015@[local] db_vrqv1
> WARNING: AbortTransaction while in COMMIT state
It's impossible to do more than speculate with this amount of information.
However, a plausible speculation is that you're processing so many objects in one transaction as to overrun the limit on how large a WAL commit record, or something related to that, can be. Can you adjust your migration script to break it into multiple transactions that process fewer tables per transaction?
regards, tom lane
^ permalink raw reply [nested|flat] 43+ messages in thread
* Re: ERROR: invalid memory alloc request size when committing transaction
@ 2021-08-12 09:19 Simon Riggs <simon.riggs@enterprisedb.com>
parent: Michael Harris <michael.harris@ericsson.com>
1 sibling, 0 replies; 43+ messages in thread
From: Simon Riggs @ 2021-08-12 09:19 UTC (permalink / raw)
To: Michael Harris <michael.harris@ericsson.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
On Thu, 12 Aug 2021 at 06:42, Michael Harris
<michael.harris@ericsson.com> wrote:
>
> Thanks Tom,
>
> > How many is "a large number"?
>
> 377k approx.
I'm going to guess that it is the invalidation messages for all the
DDL that is causing the memory allocation error. If you set wal_level
= minimal then this might work.
The total number indicates you are using too many partitions and
should probably lower that by a factor of about 100.
If you do that, you probably won't need to set wal_level.
--
Simon Riggs http://www.EnterpriseDB.com/
^ permalink raw reply [nested|flat] 43+ messages in thread
* RE: ERROR: invalid memory alloc request size when committing transaction
@ 2021-08-15 22:41 Michael Harris <michael.harris@ericsson.com>
parent: Michael Harris <michael.harris@ericsson.com>
1 sibling, 0 replies; 43+ messages in thread
From: Michael Harris @ 2021-08-15 22:41 UTC (permalink / raw)
To: Simon Riggs <simon.riggs@enterprisedb.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Thanks Simon
Setting wal_level to minimal has indeed allowed it to work. Thanks for the suggestion!
We aren't easily able to change the number of partitions - it consists of a large number of partitioned tables each having a reasonable number of partitions, but they multiply up to a huge number. Probably it needs to be broken into multiple smaller databases, but that's easier said than done.
Thanks again
Cheers
Mike
-----Original Message-----
From: Simon Riggs <simon.riggs@enterprisedb.com>
Sent: Thursday, August 12, 2021 7:19 PM
To: Michael Harris <michael.harris@ericsson.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-general@lists.postgresql.org
Subject: Re: ERROR: invalid memory alloc request size when committing transaction
On Thu, 12 Aug 2021 at 06:42, Michael Harris <michael.harris@ericsson.com> wrote:
>
> Thanks Tom,
>
> > How many is "a large number"?
>
> 377k approx.
I'm going to guess that it is the invalidation messages for all the DDL that is causing the memory allocation error. If you set wal_level = minimal then this might work.
The total number indicates you are using too many partitions and should probably lower that by a factor of about 100.
If you do that, you probably won't need to set wal_level.
--
Simon Riggs http://www.EnterpriseDB.com/
^ permalink raw reply [nested|flat] 43+ messages in thread
end of thread, other threads:[~2021-08-15 22:41 UTC | newest]
Thread overview: 43+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-04-07 21:43 ERROR: invalid memory alloc request size 0 John Hagstrand <john.hagstrand@interageresearch.com>
2004-04-08 01:29 ` Re: ERROR: invalid memory alloc request size 0 Tom Lane <tgl@sss.pgh.pa.us>
2004-04-08 18:38 Re: ERROR: invalid memory alloc request size 0 Tom Lane <tgl@sss.pgh.pa.us>
2004-04-08 19:34 ` John Hagstrand <john.hagstrand@interageresearch.com>
2004-04-09 03:19 ` Re: ERROR: invalid memory alloc request size 0 Tom Lane <tgl@sss.pgh.pa.us>
2004-04-09 09:49 ` Re: ERROR: invalid memory alloc request size 0 John Hagstrand <john.hagstrand@interageresearch.com>
2004-04-09 12:11 ` Re: ERROR: invalid memory alloc request size 0 Tom Lane <tgl@sss.pgh.pa.us>
2004-04-15 02:40 Re: ERROR: invalid memory alloc request size 0 John Hagstrand <john.hagstrand@interageresearch.com>
2004-04-15 03:53 ` Re: ERROR: invalid memory alloc request size 0 Tom Lane <tgl@sss.pgh.pa.us>
2007-01-09 19:38 ERROR: invalid memory alloc request size, and others Jonathan Hedstrom <jhedstrom@desc.org>
2007-01-09 20:01 ` Re: ERROR: invalid memory alloc request size, and others Scott Marlowe <smarlowe@g2switchworks.com>
2007-01-09 21:13 ` Re: ERROR: invalid memory alloc request size, and others Jonathan Hedstrom <jhedstrom@desc.org>
2007-01-09 22:16 ` Re: ERROR: invalid memory alloc request size, and others Andrew Kroeger <andrew@sprocks.gotdns.com>
2007-01-09 21:24 ` Re: ERROR: invalid memory alloc request size, and others Tom Lane <tgl@sss.pgh.pa.us>
2007-01-09 22:12 ` Re: ERROR: invalid memory alloc request size, and others Jonathan Hedstrom <jhedstrom@desc.org>
2007-01-09 22:31 ` Re: ERROR: invalid memory alloc request size, and others Tom Lane <tgl@sss.pgh.pa.us>
2007-01-10 00:05 ` Re: ERROR: invalid memory alloc request size, and others Jonathan Hedstrom <jhedstrom@desc.org>
2007-01-09 22:39 ` Re: ERROR: invalid memory alloc request size, and others Andrew Kroeger <andrew@sprocks.gotdns.com>
2007-01-09 23:35 ` Re: ERROR: invalid memory alloc request size, and others Jonathan Hedstrom <jhedstrom@desc.org>
2007-01-11 19:32 ` Re: ERROR: invalid memory alloc request size, and others Jonathan Hedstrom <jhedstrom@desc.org>
2018-01-30 17:35 ERROR: invalid memory alloc request size 1073741824 Stefan Blanke <stefan.blanke@framestore.com>
2018-01-30 20:56 ` Re: ERROR: invalid memory alloc request size 1073741824 Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-01-30 21:43 ` Re: ERROR: invalid memory alloc request size 1073741824 Jan Wieck <jan@wi3ck.info>
2018-01-30 22:00 ` Re: ERROR: invalid memory alloc request size 1073741824 Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-01-31 17:32 ` Re: ERROR: invalid memory alloc request size 1073741824 Stefan Blanke <stefan.blanke@framestore.com>
2018-01-31 20:51 ` Re: ERROR: invalid memory alloc request size 1073741824 Jan Wieck <jan@wi3ck.info>
2018-01-31 21:23 ` Re: ERROR: invalid memory alloc request size 1073741824 Tomas Vondra <tomas.vondra@2ndquadrant.com>
2020-03-11 15:26 ` Re: ERROR: invalid memory alloc request size 1073741824 Stefan Blanke <stefan.blanke@framestore.com>
2020-03-11 15:37 ` Re: ERROR: invalid memory alloc request size 1073741824 Tom Lane <tgl@sss.pgh.pa.us>
2020-03-13 14:29 ` Re: ERROR: invalid memory alloc request size 1073741824 Stefan Blanke <stefan.blanke@framestore.com>
2020-06-22 14:13 ERROR: invalid memory alloc request size 18446744073709551613 Flaris Feller <flaris.feller@gmail.com>
2020-06-22 14:28 ` Re: ERROR: invalid memory alloc request size 18446744073709551613 Rob Sargent <robjsargent@gmail.com>
2020-08-11 02:22 ` Re: ERROR: invalid memory alloc request size 18446744073709551613 Flaris Roland Feller <flaris.feller@gmail.com>
2020-06-22 15:33 ` Re: ERROR: invalid memory alloc request size 18446744073709551613 Peter J. Holzer <hjp-pgsql@hjp.at>
2020-06-22 16:44 ` Re: ERROR: invalid memory alloc request size 18446744073709551613 Flaris Feller <flaris.feller@gmail.com>
2020-06-22 16:54 ` Re: ERROR: invalid memory alloc request size 18446744073709551613 Tom Lane <tgl@sss.pgh.pa.us>
2020-08-11 02:00 ` Re: ERROR: invalid memory alloc request size 18446744073709551613 Flaris Roland Feller <flaris.feller@gmail.com>
2020-08-11 02:30 ` Re: ERROR: invalid memory alloc request size 18446744073709551613 Flaris Roland Feller <flaris.feller@gmail.com>
2021-08-12 01:06 ERROR: invalid memory alloc request size when committing transaction Michael Harris <michael.harris@ericsson.com>
2021-08-12 03:40 ` Re: ERROR: invalid memory alloc request size when committing transaction Tom Lane <tgl@sss.pgh.pa.us>
2021-08-12 05:42 ` RE: ERROR: invalid memory alloc request size when committing transaction Michael Harris <michael.harris@ericsson.com>
2021-08-12 09:19 ` Re: ERROR: invalid memory alloc request size when committing transaction Simon Riggs <simon.riggs@enterprisedb.com>
2021-08-15 22:41 ` RE: ERROR: invalid memory alloc request size when committing transaction Michael Harris <michael.harris@ericsson.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox