Results 1 to 2 of 2

Thread: UUID patch for Ice 2.0.0

  1. #1
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294

    UUID patch for Ice 2.0.0

    On all platforms except Windows, IceUtil::generateUUID() uses /dev/urandom to generate UUIDs.

    Unfortunately concurrent reads to /dev/urandom on Linux (at least up to 2.6.9smp) can return the same value. I posted a test-case on the linux-kernel mailing list that you could use to check /dev/urandom on your OS:
    http://www.uwsg.indiana.edu/hypermai...11.3/0875.html
    http://www.uwsg.indiana.edu/hypermai...12.0/1541.html

    This bug will be fixed in the next 2.6 release; however until everybody upgrades to a kernel with the fix (which won't be soon) a work-around in IceUtil::generateUUID() is necessary.

    You can apply the attached patch on a 2.0.0 distribution as follows:
    $ gunzip patch.gz
    $ cd $ICE_HOME
    $ patch -p0 <~/patch

    It changes the generateUUID() implementation, and improves the UUID test.
    On Windows, generateUUID() is using the Windows-provided UUID generator, so you don't need this patch.

    Cheers,
    Bernard
    Attached Files Attached Files

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    The underlying /dev/urandom bug is fixed in Linux 2.6.10:
    http://www.kernel.org/pub/linux/kern...angeLog-2.6.10

    Cheers,
    Bernard

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Does exists in slice language the UUID type?
    By dashie in forum Help Center
    Replies: 4
    Last Post: 12-18-2007, 10:24 AM
  2. Ice.Patch.Application and Ice.Patch.Server
    By richardma in forum Help Center
    Replies: 1
    Last Post: 11-15-2007, 09:52 AM
  3. Arbitrary (UUID) Identity and findObjectById
    By kishore in forum Help Center
    Replies: 3
    Last Post: 05-03-2007, 10:53 AM
  4. Replies: 1
    Last Post: 08-01-2006, 06:26 AM
  5. uuid.h not found
    By Bruce in forum Help Center
    Replies: 7
    Last Post: 02-20-2003, 08:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •