Re: [HACKERS] more on out-of-memory

2009-04-07 Thread Heikki Linnakangas
Alvaro Herrera wrote: His question was: is it possible that we're handing a NULL pointer to a %s on fprintf? The involved code looks like this: fprintf(stderr, %s: %lu total in %ld blocks; %lu free (%ld chunks); %lu used\n,

[HACKERS] more on out-of-memory

2009-04-06 Thread Alvaro Herrera
So, the reason I started the thread about postmaster dying on OOM is that somebody asked me on IM what could have caused a backend to die with this backtrace: libc.so.1`_ndoprnt+0x14() libc.so.1`fprintf+0x11d() AllocSetStats+0x15d() MemoryContextStatsInternal+0x1c() MemoryContextStats+0xb()

Re: [HACKERS] more on out-of-memory

2009-04-06 Thread Tom Lane
Alvaro Herrera alvhe...@commandprompt.com writes: So, the reason I started the thread about postmaster dying on OOM is that somebody asked me on IM what could have caused a backend to die with this backtrace: [ of course you realize this is a backend, not the postmaster ] His question was: