Bug 60305 - ipcs fails to list all shared memory segments on alpha platform
Summary: ipcs fails to list all shared memory segments on alpha platform
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: util-linux
Version: 7.2
Hardware: alphaev6
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: David Lawrence
URL: http://www.compaq.com/products/softwa...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-02-25 05:11 UTC by Warren Mansur
Modified: 2007-04-18 16:40 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-10-03 22:46:56 UTC
Embargoed:


Attachments (Terms of Use)

Description Warren Mansur 2002-02-25 05:11:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)

Description of problem:
ipcs does not list all of the shared memory segments on any alpha machine 
running Redhat 7.1 or later (versions previous to 7.1 are untested).  It 
appears to only list one or two shared memory segments and not list the rest, 
or sometimes it simply does not list any.  It then becomes impossible to delete 
the shared memory segments that are not shown because getting their key is 
impossible.

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


How reproducible:
Always

Steps to Reproduce:
ON ALPHA PLATFORM
1. Run any program that creates a shared memory segment for a user (the program 
given by the URL above creates a shared memory segment when it initializes)
2. Run the same program with another user
3. Execute 'ipcs -m'
4. Execute 'ipcs -u'

Actual Results:  For #3 in the steps to reproduce, it will either not show any 
memory segments or may show just one.  For #4, it will indicate that there are 
2 outstanding shared memory segments (or more if other programs have some as 
well such as gnome).

Expected Results:  You should see each user's shared memory segments with their 
key and so on after executing #3.  #4's output is correct.

Additional info:

[after executing the steps to reproduce, here is what the output is (with 
username and node name removed for security purposes)].  Note that directly 
listing the shared memory segments shows zero segments, while summarizing the 
shared memory segments indicates there are 2 segments.  There is clearly a 
mismatch here.

[user@computer ~]$ ipcs -m

------ Shared Memory Segments --------
key       shmid     owner     perms     bytes     nattch    status

[user@computer ~]$ ipcs -u

------ Shared Memory Status --------
segments allocated 2
pages allocated 40
pages resident  40
pages swapped   0
Swap performance: 0 attempts     0 successes

------ Semaphore Status --------
used arrays = 0
allocated semaphores = 0

------ Messages: Status --------
allocated queues = 0
used headers = 0
used space = 0 bytes

[user@computer ~]$

Comment 1 Jakub Jelinek 2004-10-03 22:46:56 UTC
ipcs are part of util-linux, not binutils.
But RHL for Alpha platform is not supported anymore.
If you are able to reproduce this with some currently supported
distribution, please reopen.


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