Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiprocessing and UUID bug on Mac OSX #53002

Closed
GavinRoy mannequin opened this issue May 18, 2010 · 1 comment
Closed

Multiprocessing and UUID bug on Mac OSX #53002

GavinRoy mannequin opened this issue May 18, 2010 · 1 comment
Assignees
Labels

Comments

@GavinRoy
Copy link
Mannequin

GavinRoy mannequin commented May 18, 2010

BPO 8756
Nosy @ronaldoussoren
Superseder
  • bpo-8621: uuid.uuid4() generates non-unique values on OSX
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/ronaldoussoren'
    closed_at = <Date 2010-05-18.18:52:59.752>
    created_at = <Date 2010-05-18.18:38:15.470>
    labels = ['OS-mac']
    title = 'Multiprocessing and UUID bug on Mac OSX'
    updated_at = <Date 2010-05-18.18:52:59.751>
    user = 'https://bugs.python.org/GavinRoy'

    bugs.python.org fields:

    activity = <Date 2010-05-18.18:52:59.751>
    actor = 'r.david.murray'
    assignee = 'ronaldoussoren'
    closed = True
    closed_date = <Date 2010-05-18.18:52:59.752>
    closer = 'r.david.murray'
    components = ['macOS']
    creation = <Date 2010-05-18.18:38:15.470>
    creator = 'Gavin.Roy'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 8756
    keywords = []
    message_count = 1.0
    messages = ['105997']
    nosy_count = 2.0
    nosy_names = ['ronaldoussoren', 'Gavin.Roy']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '8621'
    type = None
    url = 'https://bugs.python.org/issue8756'
    versions = ['Python 2.6']

    @GavinRoy
    Copy link
    Mannequin Author

    GavinRoy mannequin commented May 18, 2010

    import multiprocessing
    import uuid
    
    def test():
        print str(uuid.uuid4())
    
    p = multiprocessing.Pool(processes=4)
    for x in xrange(0, 4):
      p.apply_async(test)

    In MacOS:

    Gavin-M-Roys-Office-iMac:kvpbench gmr$ python
    Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) 
    [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    >>> 
    >>> 
    >>> import multiprocessing
    >>> import uuid
    >>> 
    >>> def test():
    ...     print str(uuid.uuid4())
    ... 
    >>> p = multiprocessing.Pool(processes=4)
    >>> for x in xrange(0, 4):
    ...   p.apply_async(test)
    ... 
    <multiprocessing.pool.ApplyResult object at 0x10056bb90>
    <multiprocessing.pool.ApplyResult object at 0x10064e690>
    <multiprocessing.pool.ApplyResult object at 0x10064e750>
    <multiprocessing.pool.ApplyResult object at 0x10064e710>
    >>> 62c76035-e340-41c4-86b4-908660b73bb7
    62c76035-e340-41c4-86b4-908660b73bb7
    62c76035-e340-41c4-86b4-908660b73bb7
    62c76035-e340-41c4-86b4-908660b73bb7

    In Linux:

    gmr@binti ~ $ python
    Python 2.6.4 (r264:75706, Mar  9 2010, 17:27:45) 
    [GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import multiprocessing
    >>> import uuid
    >>> 
    >>> def test():
    ...     print str(uuid.uuid4())
    ... 
    >>> p = multiprocessing.Pool(processes=4)
    >>> for x in xrange(0, 4):
    ...   p.apply_async(test)
    ... 
    <multiprocessing.pool.ApplyResult object at 0x7dd990>
    <multiprocessing.pool.ApplyResult object at 0x86d310>
    <multiprocessing.pool.ApplyResult object at 0x86d390>
    <multiprocessing.pool.ApplyResult object at 0x86d410>
    >>> 6121782c-008d-42db-9df5-bbf619fb6568
    ee7d3ef8-1c54-4ab5-bf06-1eddf5bcf2cb
    40efe282-65a5-4160-96ee-b4cc0d14029d
    9eb799f2-a46c-41e8-901f-423177f3467d

    @GavinRoy GavinRoy mannequin assigned ronaldoussoren May 18, 2010
    @GavinRoy GavinRoy mannequin added the OS-mac label May 18, 2010
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants