[uClibc] shm funkiness

David Wuertele dave-gnus at bfnet.com
Thu Jul 31 23:31:40 UTC 2003


I am finding bugs in my apps that use shared memory.  To troubleshoot,
I tried creating one shared memory zone, then run ipcs:

sh-2.05b# ipcs
 
------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0x410901a9 0          root      666        0          1702132066
 
------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0x410901ab 0          root      666        923410464
 
------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages
 
sh-2.05b#

The nattch and nsems can't be right.  How can I troubleshoot this?
My theory is that the apps, uClibc, and the kernel are not using the
same header files, and have a different definition for struct
shmid_ds.  Does this sound possible?  Can anyone give me some clues
about how to determine whether this is the case?

Linux:     linux-2.4.18+many patches
uClibc:    0.9.20
buildroot: CVS snapshot from July 1

Thanks,
Dave




More information about the uClibc mailing list