Bug 56611 - lslk displays nothing on RH7.2
Summary: lslk displays nothing on RH7.2
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lslk
Version: 7.2
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-11-21 23:22 UTC by Jesse Michael
Modified: 2008-05-01 15:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-11-22 12:10:06 UTC
Embargoed:


Attachments (Terms of Use)

Description Jesse Michael 2001-11-21 23:22:33 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5+) Gecko/20011003

Description of problem:
Running lslk on a RH7.2 system displays no results even if there are locks
in /proc/locks.

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

How reproducible:
Always

Steps to Reproduce:
1. Run "lslk".

Actual Results:  No results are returned.

Expected Results:  Should have displayed a list of locks based on the
contents of /proc/locks.

Additional info:

Rebuilding from the SRPM results in the same behavior.

However, if I extract the source files from the SRPM and build it manually
by running "./Configure -n linux; make", it works correctly.

Comment 1 Ngo Than 2001-11-22 10:22:12 UTC
Jakub, rebuild lslk with "-O" "-O1" it works fine, but does not work if it's
rebuild with "-O2". It's a gcc bug ?

Comment 2 Jakub Jelinek 2001-11-22 10:26:27 UTC
Might be, might even more probably be lslk bug.
Try e.g. -O2 -fno-strict-aliasing, if that works, all bets lslk doesn't care
about C standard, try -O2 -fno-optimize-sibling-calls (if that works, chances
are for gcc bug), etc.
Also, you could do a binary search - rebuild some objects with -O2 and some with
-O1, see which one matters.

Comment 3 Ngo Than 2001-11-22 12:01:48 UTC
It works fine with -O2 -fno-strict-aliasing. but does not work with -O2
-fno-optimize-sibling-calls.



Comment 4 Jakub Jelinek 2001-11-22 12:10:00 UTC
Then it is 99% lslk bug. Look for invalid type punning in the source
(e.g. stuff like
int x, y;
*(float *)&x = 1.0;
y = x;
etc.). info gcc on -fstrict-aliasing might be helpful.
Also, you might save some time by seeing which .o file matters (ie.
compile everything -O2 and replace only some .o files with -O2 -fno-strict-aliasing
up to the point where you have all -O2 but one -O2 -fno-strict-aliasing
which works as expected). Then check that source and its headers, then look
for similar things in the entire package.

Comment 5 Than Ngo 2001-12-19 16:02:03 UTC
it's fixed in lslk-1.28-2.


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