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

From: "Michael G(dot) Reed" <reed(at)itd(dot)nrl(dot)navy(dot)mil>
To: pgsql-bugs(at)postgresql(dot)org
Date: 1999-05-27 21:43:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs

                        POSTGRESQL BUG REPORT TEMPLATE

Your name               : Michael Reed
Your email address      : reed(at)itd(dot)nrl(dot)navy(dot)mil

System Configuration
- ---------------------
  Architecture (example: Intel Pentium)         : sun4u

  Operating System (example: Linux 2.0.26 ELF)  : SunOS sun0 5.6 Generic_105181-12 sun4u sparc SUNW,Ultra-4

  PostgreSQL version (example: PostgreSQL-6.4.2)  :   PostgreSQL-6.4.2

  Compiler used (example:  gcc 2.8.0)           : gcc 2.8.1

Please enter a FULL description of your problem:
- ------------------------------------------------

Backend server dies unexpectedly when running at high debug level.
Problem not seen with no debug level specified.

Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible: 
- ----------------------------------------------------------------------

Run server at debug '10' on any solaris 2.6 platform (verified on
multiple machine types).

If you know how this problem might be fixed, list the solution below:
- ---------------------------------------------------------------------

Traced it to a SEGV in postgresql-6.4.2/src/backend/nodes/outfuncs.c
in the function _outResdom (line 671).  The node->resname pointer was
NULL leading to an explosion of the sprintf statement (kinda hard to
do a sprintf of a string with a null pointer as the argument :-) Quick
hack to fix is:

        sprintf(buf, "\"%s\"", node->resname ? node->resname : ""); /* fix for SELECT col AS

instead of:

	sprintf(buf, "\"%s\"", node->resname); /* fix for SELECT col AS

Why/how we are actually getting a NULL pointer in that field I didn't
track down (since this hack fixed the problem).

Version: 2.6.2


pgsql-bugs by date

Next:From: Unprivileged userDate: 1999-05-28 11:32:22
Subject: General Bug Report: prefix stringsearch doesn't return results
Previous:From: Unprivileged userDate: 1999-05-27 18:30:20
Subject: General Bug Report: Server hangs,with backends still running on accept() failure

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