dbTalk Databases Forums  

Re: PQexec hangs, stuck on malloc_consolidate

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Re: PQexec hangs, stuck on malloc_consolidate in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom Lane
 
Posts: n/a

Default Re: PQexec hangs, stuck on malloc_consolidate - 01-11-2004 , 02:42 PM






Tor Gunston <tor (AT) tor (DOT) to> writes:
Quote:
4) gdb backtrace shows the process stuck in malloc_consolidate:

#0 0x42074d44 in malloc_consolidate () from /lib/tls/libc.so.6
#1 0x420743c9 in _int_malloc () from /lib/tls/libc.so.6
#2 0x4207378d in malloc () from /lib/tls/libc.so.6
This suggests to me that something has clobbered malloc's internal data
structures. The most common cause of such an error is writing past the
end of a memory block obtained from malloc; other likely causes are
writing on already-freed memory, and ye ever-popular plain old wild store.

Quote:
This seems like a bug in libpq to me, but since this is my first attempt
at using Postgresql, I'm going to assume that I'm the idiot and post it
here.
I think it much more likely to be a bug in your surrounding program.
If you can provide a simple test case that reproduces the problem,
though, we can investigate the possibility of a bug in libpq.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
  #2  
Old   
Tor Gunston
 
Posts: n/a

Default Re: PQexec hangs, stuck on malloc_consolidate - 01-11-2004 , 10:01 PM






You are correct. It was my own fault.

Thanks for your time.

On Sun, 2004-01-11 at 15:42, Tom Lane wrote:
Quote:
This suggests to me that something has clobbered malloc's internal data
structures. The most common cause of such an error is writing past the
end of a memory block obtained from malloc; other likely causes are
writing on already-freed memory, and ye ever-popular plain old wild store.


I think it much more likely to be a bug in your surrounding program.
If you can provide a simple test case that reproduces the problem,
though, we can investigate the possibility of a bug in libpq.
--
Tor Gunston <tor (AT) tor (DOT) to>


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.