Unix Technical Forum

BUG #2689: pg_ctl status command causes invalid pointer error

This is a discussion on BUG #2689: pg_ctl status command causes invalid pointer error within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2689 Logged by: Chander Ganesan Email address: chander@otg-nc.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 11:17 AM
Chander Ganesan
 
Posts: n/a
Default BUG #2689: pg_ctl status command causes invalid pointer error


The following bug has been logged online:

Bug reference: 2689
Logged by: Chander Ganesan
Email address: chander@otg-nc.com
PostgreSQL version: 8.2beta1
Operating system: SUSE-Linux-10.1-DVD-x86_64 (SUSE Linux 10.1)
Description: pg_ctl status command causes invalid pointer error
Details:

Running the following command on PostgreSQL 8.2beta1:
pg_ctl status -D /srv/postgres/cluster1/

Results in the output:
----------------------------------------------------
pg_ctl: server is running (PID: 32012)
/usr/local/pgsql/bin/postgres -D /srv/postgres/cluster1
*** glibc detected *** pg_ctl: free(): invalid pointer: 0x000000000050dab8
***
======= Backtrace: =========
/lib64/libc.so.6[0x2ae1914d439e]
/lib64/libc.so.6(__libc_free+0x6c)[0x2ae1914d59bc]
pg_ctl[0x403566]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x2ae191486154]
pg_ctl[0x4018b9]
======= Memory map: ========
00400000-00407000 r-xp 00000000 08:02 217683
/usr/local/pgsql/bin/pg_ctl
00506000-00507000 rw-p 00006000 08:02 217683
/usr/local/pgsql/bin/pg_ctl
00507000-00529000 rw-p 00507000 00:00 0
[heap]
2ae190876000-2ae190891000 r-xp 00000000 08:02 15595
/lib64/ld-2.4.so
2ae190891000-2ae190893000 rw-p 2ae190891000 00:00 0
2ae190991000-2ae190993000 rw-p 0001b000 08:02 15595
/lib64/ld-2.4.so
2ae190993000-2ae1909b0000 r-xp 00000000 08:02 217644
/usr/local/pgsql/lib/libpq.so.5.0
2ae1909b0000-2ae190ab0000 ---p 0001d000 08:02 217644
/usr/local/pgsql/lib/libpq.so.5.0
2ae190ab0000-2ae190ab2000 rw-p 0001d000 08:02 217644
/usr/local/pgsql/lib/libpq.so.5.0
2ae190ab2000-2ae190ab3000 r--p 00000000 08:02 17255
/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION
2ae190ab3000-2ae190aba000 r--s 00000000 08:02 19229
/usr/lib64/gconv/gconv-modules.cache
2ae190aba000-2ae190abb000 r--p 00000000 08:02 19464
/usr/lib/locale/en_US.utf8/LC_MEASUREMENT
2ae190abb000-2ae190abc000 r--p 00000000 08:02 19462
/usr/lib/locale/en_US.utf8/LC_TELEPHONE
2ae190abc000-2ae190abd000 r--p 00000000 08:02 17254
/usr/lib/locale/en_US.utf8/LC_ADDRESS
2ae190abd000-2ae190abe000 r--p 00000000 08:02 19463
/usr/lib/locale/en_US.utf8/LC_NAME
2ae190abe000-2ae190abf000 r--p 00000000 08:02 19501
/usr/lib/locale/en_US.utf8/LC_PAPER
2ae190abf000-2ae190ac0000 r--p 00000000 08:02 19660
/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
2ae190ac0000-2ae190ac1000 r--p 00000000 08:02 17257
/usr/lib/locale/en_US.utf8/LC_MONETARY
2ae190adb000-2ae190b1b000 r-xp 00000000 08:02 49222
/usr/lib64/libssl.so.0.9.8
2ae190b1b000-2ae190c1b000 ---p 00040000 08:02 49222
/usr/lib64/libssl.so.0.9.8
2ae190c1b000-2ae190c21000 rw-p 00040000 08:02 49222
/usr/lib64/libssl.so.0.9.8
2ae190c21000-2ae190d5e000 r-xp 00000000 08:02 49221
/usr/lib64/libcrypto.so.0.9.8
2ae190d5e000-2ae190e5e000 ---p 0013d000 08:02 49221
/usr/lib64/libcrypto.so.0.9.8
2ae190e5e000-2ae190e80000 rw-p 0013d000 08:02 49221
/usr/lib64/libcrypto.so.0.9.8
2ae190e80000-2ae190e84000 rw-p 2ae190e80000 00:00 0
2ae190e84000-2ae190e98000 r-xp 00000000 08:02 20731
/lib64/libz.so.1.2.3
2ae190e98000-2ae190f97000 ---p 00014000 08:02 20731
/lib64/libz.so.1.2.3
2ae190f97000-2ae190f98000 rw-p 00013000 08:02 20731
/lib64/libz.so.1.2.3
2ae190f98000-2ae190f99000 rw-p 2ae190f98000 00:00 0
2ae190f99000-2ae190fcd000 r-xp 00000000 08:02 22204
/lib64/libreadline.so.5.1
2ae190fcd000-2ae1910cd000 ---p 00034000 08:02 22204
/lib64/libreadline.so.5.1
2ae1910cd000-2ae1910d5000 rw-p 00034000 08:02 22204
/lib64/libreadline.so.5.1
2ae1910d5000-2ae1910d6000 rw-p 2ae1910d5000 00:00 0
2ae1910d6000-2ae1910df000 r-xp 00000000 08:02 15606
/lib64/libcrypt-2.4.so
2ae1910df000-2ae1911de000 ---p 00009000 08:02 15606
/lib64/libcrypt-2.4.so
2ae1911de000-2ae1911e1000 rw-p 00008000 08:02 15606
/lib64/libcrypt-2.4.so
2ae1911e1000-2ae19120f000 rw-p 2ae1911e1000 00:00 0
2ae19120f000-2ae191211000 r-xp 00000000 08:02 15608
/lib64/libdl-2.4.so
2ae191211000-2ae191311000 ---p 00002000 08:02 15608
/lib64/libdl-2.4.so
2ae191311000-2ae191313000 rw-p 00002000 08:02 15608
/lib64/libdl-2.4.so
2ae191313000-2ae191314000 rw-p 2ae191313000 00:00 0
2ae191314000-2ae191368000 r-xp 00000000 08:02 15610
/lib64/libm-2.4.so
2ae191368000-2ae191467000 ---p 00054000 08:02 15610
/lib64/libm-2.4.so
2ae191467000-2ae191469000 rw-p 00053000 08:02 15610
/lib64/libm-2.4.so
2ae191469000-2ae19158f000 r-xp 00000000 08:02 15602
/lib64/libc-2.4.so
2ae19158f000-2ae19168f000 ---p 00126000 08:02 15602
/lib64/libc-2.4.so
2ae19168f000-2ae191692000 r--p 00126000 08:02 15602
/lib64/libc-2.4.so
2ae191692000-2ae191694000 rw-p 00129000 08:02 15602
/lib64/libc-2.4.so
2ae191694000-2ae191699000 rw-p 2ae191694000 00:00 0
2ae191699000-2ae1916e9000 r-xp 00000000 08:02 20329
/lib64/libncurses.so.5.5
2ae1916e9000-2ae1917e8000 ---p 00050000 08:02 20329
/lib64/libncurses.so.5.5
2ae1917e8000-2ae1917fb000 rw-p 0004f000 08:02 20329
/lib64/libncurses.so.5.5
2ae1917fb000-2ae1917fe000 rw-p 2ae1917fb000 00:00 0
2ae1917fe000-2ae1918d5000 r--p 00000000 08:02 19696
/usr/lib/locale/en_US.utf8/LC_COLLATE
2ae1918d5000-2ae1918d6000 r--pAborted
--------------------------------------------------------

The pg_config command outputs:
------------------------------------------------------
postgres@linux-hrrl:/tmp> pg_config
BINDIR = /usr/local/pgsql/bin
DOCDIR = /usr/local/pgsql/doc
INCLUDEDIR = /usr/local/pgsql/include
PKGINCLUDEDIR = /usr/local/pgsql/include
INCLUDEDIR-SERVER = /usr/local/pgsql/include/server
LIBDIR = /usr/local/pgsql/lib
PKGLIBDIR = /usr/local/pgsql/lib
LOCALEDIR =
MANDIR = /usr/local/pgsql/man
SHAREDIR = /usr/local/pgsql/share
SYSCONFDIR = /usr/local/pgsql/etc
PGXS = /usr/local/pgsql/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--with-openssl'
CC = gcc
CPPFLAGS = -D_GNU_SOURCE
CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
CFLAGS_SL = -fpic
LDFLAGS = -Wl,-rpath,'/usr/local/pgsql/lib'
LDFLAGS_SL =
LIBS = -lpgport -lssl -lcrypto -lz -lreadline -lcrypt -ldl -lm
VERSION = PostgreSQL 8.2beta1
------------------------------------------------------

This error does not seem to occur with the same OS and PostgreSQL 8.1.4
(same libraries, etc.).

chander

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 11:17 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #2689: pg_ctl status command causes invalid pointer error

"Chander Ganesan" <chander@otg-nc.com> writes:
> Description: pg_ctl status command causes invalid pointer error


Fixed, thanks for the report!

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com