BUG #2689: pg_ctl status command causes invalid pointer error

From: "Chander Ganesan" <chander(at)otg-nc(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2689: pg_ctl status command causes invalid pointer error
Date: 2006-10-11 19:29:19
Message-ID: 200610111929.k9BJTJb5014905@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2689
Logged by: Chander Ganesan
Email address: chander(at)otg-nc(dot)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(at)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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2006-10-11 23:02:01 Re: Minor doc bug in 8.1.4
Previous Message Anastasios Hatzis 2006-10-11 18:45:35 BUG #2688: Building from source with PL/Python fails ("distutils not found")