kern/136226: ipcs -bp doesn't display the shm segsz if it is bigger than 2GB

durga velagapudi dvelagapudi at adaranet.com
Wed Jul 1 17:20:02 UTC 2009


>Number:         136226
>Category:       kern
>Synopsis:       ipcs -bp doesn't display the shm segsz if it is bigger than 2GB
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 01 17:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     durga velagapudi
>Release:        FreeBSD 7.2-RELEASE #0
>Organization:
adara networks
>Environment:
FreeBSD host64-1 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 07:18:07 UTC 2009     root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The process allocates shared memory of size 9GB

When ipcs -bp is executed from command line

Shared Memory:
T           ID          KEY MODE        OWNER    GROUP           SEGSZ         CPID         LPID
m        65541         1296 --rw-rw---- root     wheel               0         1590         1576

The SEGSZ is 9GB allocated but it is shown as 0
>How-To-Repeat:
run a process which requestes shmget() api requesting 9GB. also set the sysctl.shmmax to 10GB
>Fix:
got to change the struct shmid_kernel struct member seg_sz to type size_t or unsigned long.



>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list