This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/9944] New: ftok returning duplicate keys for different files on same device?


I have encountered an issue using System V IPC and ftok.

I have two files in my /tmp/ dir with inodes 0x70007 and 0x1370007. When call
ftok on these two files I am obtaining the same 32 bit key_t value.

This results in collisions when two unique process using different files try to
obtain SysV IPC objects using ftok().

Should key_t be only a 32 integer? 

I can not find any documentation on 'standard' practice to recover from this
problem so I assume it just may be a bug?

-- 
           Summary: ftok returning duplicate keys for different files on
                    same device?
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: jimdon at sympatico dot ca
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=9944

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]