X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 40E53529B6 for ; Fri, 8 Jul 2005 22:58:16 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13193-01 for ; Sat, 9 Jul 2005 01:58:02 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 8E0D5529B4 for ; Fri, 8 Jul 2005 22:58:00 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j691w0Ig099770 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 8 Jul 2005 19:58:03 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j691w07o011831; Fri, 8 Jul 2005 19:58:00 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j691w0je011830; Fri, 8 Jul 2005 19:58:00 -0600 (MDT) (envelope-from mfuhr) Date: Fri, 8 Jul 2005 19:58:00 -0600 From: Michael Fuhr To: Tim Jackson Cc: pgsql-interfaces@postgresql.org Subject: Re: C set return function differences on 8.0? Message-ID: <20050709015800.GA11641@winnie.fuhr.org> References: <42CDCFB4.2030908@ints.com> <20050708152339.GA81341@winnie.fuhr.org> <42CF168A.4080007@ints.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42CF168A.4080007@ints.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/17 X-Sequence-Number: 5653 [Please copy the mailing list on replies so others can contribute to and learn from the discussion.] On Fri, Jul 08, 2005 at 05:12:58PM -0700, Tim Jackson wrote: > Michael Fuhr wrote: > > What do you mean by "abort" -- does the backend crash? If so, and > > if you get a core dump, then it might be useful to see a stack trace. > > > The backend crashes, in pgadmin attempting to display the view simple > says aborting. There is no core dump, and the log only seems to reflect > the standard > WARNING: terminating connection because of crash of another server process Where did you look for a core dump? If one was made then it'll probably be somewhere under $PGDATA (e.g., $PGDATA/base/XXX/core) unless your system is configured to put core dumps elsewhere. If there isn't a core dump then you could add some debugging ereport() calls to your code so you can find out where the crash is happening. Another possibility might be to attach a debugger to the backend. > >Could you post a simple, self-contained test case that works in 7.4 > >and fails in 8.0? That is, all SQL, C code, and data that somebody > > > The problem I have is we are using a licensed library to accesss the > target database. We have c code which parses SQLSRF and makes a call to > these 3rd party lib functions which returns strings of data. So your C function calls these library functions, which query some other data source and return strings back to you, right? How are these strings returned -- as char * values? Can you at least post your code? > Today we tried to just hard code some data strings and pass that into > SRF part of the code. We put in values that we expected to cause the > problem and it did not cause the problem. So we are stuck with how to > proceed. 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. -- Michael Fuhr http://www.fuhr.org/~mfuhr/