Bug 889739 - sealert -l hangs for multiple minutes
Summary: sealert -l hangs for multiple minutes
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: setroubleshoot
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-23 04:21 UTC by Ambarish Sridharanarayanan
Modified: 2013-04-24 19:37 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-24 19:37:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
sealert -l running under strace, killed when stuck on poll() (525.63 KB, text/plain)
2012-12-23 04:21 UTC, Ambarish Sridharanarayanan
no flags Details

Description Ambarish Sridharanarayanan 2012-12-23 04:21:53 UTC
Created attachment 667938 [details]
sealert -l running under strace, killed when stuck on poll()

Description of problem:

This probably belongs to setroubleshoot-server, but I couldn't find the component above. When troubleshooting an SElinux AVC denial, I ran sealert -l <guid>. The command took multiple minutes to return. I thought it had hung, so I ran it again under strace. I saw it stuck on a poll(), so I killed it. I ran it again, and it eventually completed in 3-4 minutes. strace log attached (stuck on poll unt il I killed it).

Version-Release number of selected component (if applicable):

3.1.15-1.fc17

How reproducible:

Repro'ed for me multiple times until I let it finish. It doesn't repro anymore (caching results?)

Actual results:

Hangs for a while

Expected results:

Completes soon

Additional info:

Attached strace.

Comment 1 Daniel Walsh 2012-12-27 16:34:24 UTC
Strange, I have no idea why this would take a long time, and I have never seen it before. If you kill setroubleshootd, do you see the same behaviour?


killall -9 setroubleshootd
sealert -l <guid>.

I guess if you have a massive /var/lib/setroubleshoot/setroubleshoot_database.xml

Comment 2 Ambarish Sridharanarayanan 2012-12-27 18:44:17 UTC
Unfortunately, as I said above, once I let command run to completion, I couldn't get the issue to repro anymore.

And my setroubleshoot_database.xml is only 158076 bytes; I'm not sure that's massive.

Does my strace help in any way? Any reason to be stuck on the poll()? Could it somehow be a network timeout?

Comment 3 Daniel Walsh 2012-12-27 19:34:18 UTC
sealert is really not doing much network, or at least should not, It is possibly connecting to X.  But it should connect to setroubleshootd and dump its output to the screen, or to an X Window Browser.


Note You need to log in before you can comment on or make changes to this bug.