All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roberts, William C <william.c.roberts at intel.com>
To: tpm2@lists.01.org
Subject: [tpm2] Re: abrmd crashing - how to debug?
Date: Tue, 09 Mar 2021 22:45:10 +0000	[thread overview]
Message-ID: <SN6PR11MB34370249B77688306C648A67B8929@SN6PR11MB3437.namprd11.prod.outlook.com> (raw)
In-Reply-To: OFAC01F3E6.388DCB4F-ON00258693.006F310A-85258693.006F663F@notes.na.collabserv.com

[-- Attachment #1: Type: text/plain, Size: 2732 bytes --]



> -----Original Message-----
> From: Kenneth Goldman <kgoldman(a)us.ibm.com>
> Sent: Tuesday, March 9, 2021 2:17 PM
> Cc: tpm2(a)lists.01.org
> Subject: [tpm2] Re: abrmd crashing - how to debug?
> 
> > From: Tadeusz Struk <tstruk(a)gmail.com>
> > To: Kenneth Goldman <kgoldman(a)us.ibm.com>, tpm2(a)lists.01.org
> > Date: 03/09/2021 02:51 PM
> > Subject: [EXTERNAL] Re: [tpm2] abrmd crashing - how to debug?
> >
> > Hi Ken,
> > On 3/5/21 2:29 PM, Kenneth Goldman wrote:
> > > Ubuntu focal with WSL, abrmd compiled from source
> > >
> > > After about 5 minutes of sending commands, abrmd crashes. I
> > originally found it with keylime, but I can reproduce it with a simple
> > bash loop on pcrread.
> > >
> > > abrmd exits, the tool output is:
> > >
> > > ** (process:21067): CRITICAL **: 17:25:10.862: failed to allocate
> > dbus proxy object: Could not connect: Connection refused
> > > WARNING:tcti:src/tss2-tcti/tctildr.c:79:tcti_from_init() TCTI init
> > for function 0x7ff5f6dbbe10 failed with a0008
> > > WARNING:tcti:src/tss2-tcti/tctildr.c:109:tcti_from_info() Could
> > not initialize TCTI named: tcti-abrmd
> > > ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could
> > not initialize TCTI file: tabrmd
> > > ERROR:tcti:src/tss2-tcti/tctildr.c:416:Tss2_TctiLdr_Initialize_Ex
> > () Failed to instantiate TCTI
> > > ERROR: Could not load tcti, got: "tabrmd:bus_name=com.intel.tss2.Tabrmd"
> > >
> > > How would I debug?
> > >
> > > I would expect that nothing that a single application does should
> > crash abrmd.
> >
> > I think it's not the abrmd that's failing, but the application that is
> > trying to use tcti-abrmd to communicate with abrmd running in the
> > background.
> > It can not get the dbus handler so it just prints an error and fails.
> > Can you look for some system dbus logs to see if there are any errors there?
> 
> Sorry, but abrmd exits - with no error message.  Its window just goes back to the
> command prompt.  I'd call that a crash, assuming it should never exit.

It shouldn't under almost all situations. However, some asserts exist on client state, like this bug:
https://github.com/tpm2-software/tpm2-abrmd/issues/723

But the fact that there's no message seems odd. What's the exit code? I would imagine we would see
Something like a segfault message or something else if it truly crashed.

> 
> If you tell me where 'the system dbus logs' are, I'd be willing to post them.

Since you're just running it as a process from a shell and not a system service, all the logs will be to stderr/stdout.
Can you enable env variable G_MESSAGES_DEBUG=all when you run tpm2-abrmd and send us the output?


> 
> 
> 
> 

             reply	other threads:[~2021-03-09 22:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-09 22:45 Roberts, William C [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-04-15 11:58 [tpm2] Re: abrmd crashing - how to debug? ericc6727
2022-04-13 10:35 jasonadamses
2021-03-11 17:05 Kenneth Goldman
2021-03-09 20:16 Kenneth Goldman
2021-03-09 19:50 Tadeusz Struk

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=SN6PR11MB34370249B77688306C648A67B8929@SN6PR11MB3437.namprd11.prod.outlook.com \
    --to=tpm2@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.