Skip site navigation (1) Skip section navigation (2)

Re: backend crash following load command

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
Cc: "PgSQL General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: backend crash following load command
Date: 2006-11-28 20:23:36
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
"Merlin Moncure" <mmoncure(at)gmail(dot)com> writes:
> ok, an update on this.  we actually covered up the bug in reducing the
> problem to our test case.  our make system used cp -f to overwite the
> .so file in use by postgresql.

With that I can reproduce it --- I think it is a glibc bug.  The crash
occurs inside dlsym() while trying to look up "_PG_fini".

(gdb) bt
#0  0x0000003bf1a08b31 in do_lookup_x () from /lib64/
#1  0x0000003bf1a08e6f in _dl_lookup_symbol_x ()
   from /lib64/
#2  0x0000003bf1cff5ee in do_sym () from /lib64/
#3  0x0000003bf2101334 in dlsym_doit () from /lib64/
#4  0x0000003bf1a0ca36 in _dl_catch_error () from /lib64/
#5  0x0000003bf210173d in _dlerror_run () from /lib64/
#6  0x0000003bf21012ea in dlsym () from /lib64/
#7  0x000000000061f414 in load_file (filename=Variable "filename" is not available.
) at dfmgr.c:352
#8  0x00000000005a3d4c in PortalRunUtility (portal=0x98a828, query=0x9564f0,
    dest=0x956798, completionTag=0x7fffb624e4e0 "") at pquery.c:1063

I'd suggest putting together a simple stand-alone test case and filing
a bug report against glibc.  You probably just need

	system("cp -f over the .so file");

			regards, tom lane

In response to


pgsql-general by date

Next:From: Martijn van OosterhoutDate: 2006-11-28 20:30:19
Subject: Re: backend crash following load command
Previous:From: Wm.A.StaffordDate: 2006-11-28 20:19:43
Subject: using a sequence as the functional equivalent to Oracle rownum

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group