public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "Frank Ch. Eigler" <fche@redhat.com>
To: Mark Wielaard <mark@klomp.org>
Cc: elfutils-devel@sourceware.org
Subject: Re: [PATCH] PR25756 more debuginfod metrics
Date: Wed, 21 Oct 2020 10:01:37 -0400	[thread overview]
Message-ID: <20201021140137.GB21776@redhat.com> (raw)
In-Reply-To: <3c64403615775c0fb846967822305cad0e54c652.camel@klomp.org>

Hi -

> I found this somewhat hard to review since the indenting isn't
> following the (GNU) style used in the rest of the file. Please place
> curly brackets on their own line when possible.

OK.

> > +2020-10-20  Frank Ch. Eigler  <fche@redhat.com>
> > +
> > +	PR26756: more prometheus metrics
> > +	* debuginfod.cxx (*_exception): Add counters for error occurrences.
> > +	(fdcache::*): Add counters for fdcache operations and status.
> 
> Also a new public set_metrics() function.

OK.

> In general these changes look correct.
> Unfortunately the test crashes on my RHEL7 with DTS9 system:
> [...]
> #11 0x00007f924ecb7ce9 in __run_exit_handlers (status=0, 
>     listp=0x7f924f0456c8 <__exit_funcs>, 
>     run_list_atexit=run_list_atexit@entry=true) at exit.c:77
> #12 0x00007f924ecb7d37 in __GI_exit (status=<optimized out>) at exit.c:99
> #13 0x00007f924eca055c in __libc_start_main (
>     main=0x40ad40 <main(int, char**)>, argc=10, argv=0x7ffc8ebaf6a8, 
>     init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, 
>     stack_end=0x7ffc8ebaf698) at ../csu/libc-start.c:300
> #14 0x000000000040c3e5 in _start ()
>     at /opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_tree.h:211
> Which seems to be caused by the libarchive_fdcache destructor calling
> limit (0,0) triggering the new inc_metric which somehow cannot use the
> metrics map?

Ah it's a global variable destructor sequencing issue.
Hmm what a pain, ok will think of a solution.


> > +# create a 000 empty .rpm file to evoke a metric-visible error
> > +touch R/nothing.rpm
> > +chmod 000 R/nothing.rpm
> > +
> 
> Does this cause any issues during cleanup?
> I would have expected something like:
> 
> if [ -f R/nothing.rpm ]; then chmod 644 R/nothing.rpm; fi
> 
> in cleanup(). But maybe the rm -f takes care of that?

There's a "rm -rf R" in cleanup, so is covered.


- FChE


  reply	other threads:[~2020-10-21 14:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-21  0:44 Frank Ch. Eigler
2020-10-21 12:30 ` Mark Wielaard
2020-10-21 14:01   ` Frank Ch. Eigler [this message]
2020-10-21 19:22     ` [PATCH v2] " Frank Ch. Eigler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201021140137.GB21776@redhat.com \
    --to=fche@redhat.com \
    --cc=elfutils-devel@sourceware.org \
    --cc=mark@klomp.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).