pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6082: server segfault - pg_stat_reset_shared(null)
5+ messages / 4 participants
[nested] [flat]

* BUG #6082: server segfault - pg_stat_reset_shared(null)
@ 2011-06-29 13:31  Steve Haslam <araqnid@googlemail.com>
  0 siblings, 2 replies; 5+ messages in thread

From: Steve Haslam @ 2011-06-29 13:31 UTC (permalink / raw)
  To: pgsql-bugs


The following bug has been logged online:

Bug reference:      6082
Logged by:          Steve Haslam
Email address:      araqnid@googlemail.com
PostgreSQL version: 9.0.4
Operating system:   Debian GNU/Linux (amd64)
Description:        server segfault - pg_stat_reset_shared(null)
Details: 

=> select pg_stat_reset_shared(null)
*server segfault*

Also occurs with a 9.1b2 build.

To be fair, it *does* reset all the shared statistics.



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #6082: server segfault - pg_stat_reset_shared(null)
@ 2011-06-29 17:38  Magnus Hagander <magnus@hagander.net>
  parent: Steve Haslam <araqnid@googlemail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Magnus Hagander @ 2011-06-29 17:38 UTC (permalink / raw)
  To: Steve Haslam <araqnid@googlemail.com>; +Cc: pgsql-bugs

On Wed, Jun 29, 2011 at 15:31, Steve Haslam <araqnid@googlemail.com> wrote:
>
> The following bug has been logged online:
>
> Bug reference:      6082
> Logged by:          Steve Haslam
> Email address:      araqnid@googlemail.com
> PostgreSQL version: 9.0.4
> Operating system:   Debian GNU/Linux (amd64)
> Description:        server segfault - pg_stat_reset_shared(null)
> Details:
>
> => select pg_stat_reset_shared(null)
> *server segfault*
>
> Also occurs with a 9.1b2 build.

Thanks for the report - fixed, and will be in next releases.


> To be fair, it *does* reset all the shared statistics.

Not in a very nice way though...

-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #6082: server segfault - pg_stat_reset_shared(null)
@ 2011-06-29 21:52  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Magnus Hagander <magnus@hagander.net>
  0 siblings, 1 reply; 5+ messages in thread

From: Tom Lane @ 2011-06-29 21:52 UTC (permalink / raw)
  To: Magnus Hagander <magnus@hagander.net>; +Cc: Steve Haslam <araqnid@googlemail.com>; pgsql-bugs

Magnus Hagander <magnus@hagander.net> writes:
> On Wed, Jun 29, 2011 at 15:31, Steve Haslam <araqnid@googlemail.com> wrote:
>> => select pg_stat_reset_shared(null)
>> *server segfault*

> Thanks for the report - fixed, and will be in next releases.

Seems like the more appropriate fix in HEAD is to mark the function
strict in pg_proc.h.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #6082: server segfault - pg_stat_reset_shared(null)
@ 2011-07-03 11:19  Magnus Hagander <magnus@hagander.net>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Magnus Hagander @ 2011-07-03 11:19 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Steve Haslam <araqnid@googlemail.com>; pgsql-bugs

On Wed, Jun 29, 2011 at 23:52, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> On Wed, Jun 29, 2011 at 15:31, Steve Haslam <araqnid@googlemail.com> wrote:
>>> => select pg_stat_reset_shared(null)
>>> *server segfault*
>
>> Thanks for the report - fixed, and will be in next releases.
>
> Seems like the more appropriate fix in HEAD is to mark the function
> strict in pg_proc.h.

I considered that, but gave it up when I realized it would require a
new initdb and I wanted the same fix everywhere. But agreed that it's
cleaner, so I've reverted my previous patch on HEAD and made this
change instead. Left the old patch on backbranches (including 9.1) so
we don't force an initdb there...


-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: BUG #6082: server segfault - pg_stat_reset_shared(null)
@ 2011-07-12 00:35  Bruce Momjian <bruce@momjian.us>
  parent: Steve Haslam <araqnid@googlemail.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Bruce Momjian @ 2011-07-12 00:35 UTC (permalink / raw)
  To: Steve Haslam <araqnid@googlemail.com>; +Cc: pgsql-bugs

Steve Haslam wrote:
> 
> The following bug has been logged online:
> 
> Bug reference:      6082
> Logged by:          Steve Haslam
> Email address:      araqnid@googlemail.com
> PostgreSQL version: 9.0.4
> Operating system:   Debian GNU/Linux (amd64)
> Description:        server segfault - pg_stat_reset_shared(null)
> Details: 
> 
> => select pg_stat_reset_shared(null)
> *server segfault*
> 
> Also occurs with a 9.1b2 build.
> 
> To be fair, it *does* reset all the shared statistics.

Now that's a RESET!  ;-)

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2011-07-12 00:35 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-06-29 13:31 BUG #6082: server segfault - pg_stat_reset_shared(null) Steve Haslam <araqnid@googlemail.com>
2011-06-29 17:38 ` Magnus Hagander <magnus@hagander.net>
2011-06-29 21:52   ` Tom Lane <tgl@sss.pgh.pa.us>
2011-07-03 11:19     ` Magnus Hagander <magnus@hagander.net>
2011-07-12 00:35 ` Bruce Momjian <bruce@momjian.us>

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