pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hvjunk <hvjunk@gmail.com>
To: pgsql-general@postgresql.org
Subject: pg_top error reporting?
Date: Thu, 13 Dec 2018 14:23:46 +0200
Message-ID: <C6A56F66-1052-42A5-B7D2-72FA6A047B32@gmail.com> (raw)

Good day,

 I’m running into a problem with pg_top inside a LXC container (unprivileged on ProxMox).

1) Seems the pgtop “foundry” directory isn’t working?

http://ptop.projects.pgfoundry.org/

Forbidden
You don't have permission to access / on this server.

2) The error is a segmentation fault, looking at strace and ltrace we see the permission and array check error:

strace:
=======
open("5401/io", O_RDONLY)               = 4
read(4, 0x7ffd4c67c360, 4095)           = -1 EACCES (Permission denied)
close(4)                                = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x2} ---
+++ killed by SIGSEGV +++
Segmentation fault

ltrace:
=======

[pid 25433] open("5401/io", 0, 07332762347)                                                                          = 4
[pid 25433] read(4 <no return ...>
error: maximum array length seems negative
, "5401/io", 4095)                                                                                                   = -1
[pid 25433] close(4)                                                                                                 = 0
[pid 25433] strchr("5401/io", ':')                                                                                   = nil
[pid 25433] strchr("\002\003\004\005\006\a\b\t\n\v\f\r\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037 !"..., '\n' <no return ...>
[pid 25433] --- SIGSEGV (Segmentation fault) ---
[pid 25433] +++ killed by SIGSEGV +++

Attachments:

  signature.asc (application/pgp-signature, 487B) download

view thread (2+ messages)  latest in thread

Message-ID: <C6A56F66-1052-42A5-B7D2-72FA6A047B32@gmail.com>
Permalink:  ../C6A56F66-1052-42A5-B7D2-72FA6A047B32@gmail.com/
Also on:    postgresql.org/message-id/C6A56F66-1052-42A5-B7D2-72FA6A047B32@gmail.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: hvjunk@gmail.com
  Subject: Re: pg_top error reporting?
  In-Reply-To: <C6A56F66-1052-42A5-B7D2-72FA6A047B32@gmail.com>
  References: <C6A56F66-1052-42A5-B7D2-72FA6A047B32@gmail.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