Re: BUG #2195: log_min_messages crash server when in DEBUG3 to

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Milen A(dot) Radev" <milen(at)radev(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2195: log_min_messages crash server when in DEBUG3 to
Date: 2006-01-26 16:00:10
Message-ID: 200601261600.k0QG0AP28747@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches

Milen A. Radev wrote:
> Tom Lane writes:
> > "Jaime Casanova" <systemguards(at)gmail(dot)com> writes:
> >> in my machine (win xp) i was trying to start psql (8.1.1) with
> >> log_min_messages to debug5 (just to see the messages :) but even the
> >> service start i cannot use psql nor pgadmin i receive an error of
> >> server closed the connection unexpectedly
> >
> > Can't reproduce this on Linux using 8.1 branch tip, so either it's
> > Windows-specific or it's been fixed recently ...
> >
>
> Should be windows-specific - I can reproduce it with 8.1.2 on WinXP SP2
> and I can't reproduce it with 8.1.2 on Slackware Linux 9.1 (kernel 2.6.15).
>
> By the way I have the crash report files Windows created -
> postgres.exe.hdmp, postgres.exe.mdmp, appcompat.txt and manifest.txt.

I was able to reproduce this on Unix by adding -DEXEC_BACKEND to the
compile line. It errors out on DEBUG3 and higher. I assume the problem
is that the debug system is not initialized properly in the EXEC_BACKEND
case. Win32 uses -DEXEC_BACKEND so that is why Win32 is failing.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-01-26 16:06:43 Re: BUG #2195: log_min_messages crash server when in DEBUG3 to 5
Previous Message Sokolov Yura 2006-01-26 13:04:47 BUG #2215: Cannot restore backup cause of view's representaion

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-01-26 16:06:43 Re: BUG #2195: log_min_messages crash server when in DEBUG3 to 5
Previous Message Peter Eisentraut 2006-01-26 10:36:15 Re: Adding a --quiet option to initdb