pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Jackson <tim.jackson@ints.com>
To: Michael Fuhr <mike@fuhr.org>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: C set return function differences on 8.0?
Date: Mon, 11 Jul 2005 16:09:28 -0700
Message-ID: <42D2FC28.8070908@ints.com> (raw)
In-Reply-To: <20050709015800.GA11641@winnie.fuhr.org>
References: <42CDCFB4.2030908@ints.com>
	<20050708152339.GA81341@winnie.fuhr.org>
	<42CF168A.4080007@ints.com>
	<20050709015800.GA11641@winnie.fuhr.org>


Michael Fuhr wrote:

>
>Let's see if attaching a debugger to the backend or adding some
>ereport() calls can at least tell us where the crash is happening.
>Then maybe we can figure out why.
>  
>
I was able to set gdb to the pid of  psql  session and saw that selects 
on the "bad" views segfaulted on pfree()
The documentation for SRF had a comment that said pfree() was not really 
necessary so I commented that code out and now I can select all the 
views. :) 
Perhaps you can advise me on why pfree() would segfault on 8.0 in but 
not 7.4

Anyway the .so generated views are working now as they were on 7.4.
Thanks for your help. Tim


Not sure what all this means but the following lines were gleaned from 
the core dump

cannot allocate memory for thread-local data: ABORT
result == _rtld_local._dl_tls_max_dtv_idx + 1
result <= _rtld_local._dl_tls_max_dtv_idx + 1
@cnt < _rtld_local._dl_tls_dtv_slotinfo_list->len
_rtld_local._dl_tls_dtv_slotinfo_list->next == ((void *)0)
_rtld_local._dl_tls_dtv_slotinfo_list != ((void *)0)
_rtld_local._dl_tls_max_dtv_idx == 0
_rtld_local._dl_tls_dtv_slotinfo_list == ((void *)0)

(size_t) map->l_tls_offset >= map->l_tls_blocksize

map->l_tls_blocksize >= map->l_tls_initimage_size

../sysdeps/unix/sysv/linux/dl-origin.c

FATAL: cannot determine library version

../sysdeps/generic/dl-sysdep.c

Inconsistency detected by ld.so: %s: %u: %s%sAssertion `%s' failed!

Inconsistency detected by ld.so: %s: %u: %s%sUnexpected error: %s.

And Here is what gdb says about the core

Core was generated by `postgres: postgres lubesoft_tj [local] 
SELECT                     '.
Program terminated with signal 11, Segmentation fault.
#0  0x08222a86 in ?? ()
(no debugging symbols found)...Using host libthread_db library 
"/lib/tls/libthread_db.so.1".






view thread (7+ messages)  latest in thread

Message-ID: <42D2FC28.8070908@ints.com>
Permalink:  ../42D2FC28.8070908@ints.com/
Also on:    postgresql.org/message-id/42D2FC28.8070908@ints.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tim.jackson@ints.com, mike@fuhr.org
  Subject: Re: C set return function differences on 8.0?
  In-Reply-To: <42D2FC28.8070908@ints.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox