Results 1 to 2 of 2

Thread: "malloc double free" on creating many communicators

  1. #1
    joshmoore is offline Registered User
    Name: Josh Moore
    Organization: Glencoe Software, Inc.
    Project: OMERO, http://trac.openmicroscopy.org.uk/omero
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    115

    "malloc double free" on creating many communicators

    We are trying to debug a "too many files" issue that we're having related to too many communicator's open in a single django process. While testing we ran into this:
    Code:
    6859
    6860
    6861
    6862
    6863
    6864
    6865
    6866
    Python(24600,0xa000d000) malloc: *** error for object 0x845e5890: double free
    Python(24600,0xa000d000) malloc: *** set a breakpoint in szone_error to debug
    Traceback (most recent call last):
      File "oa.py", line 6, in <module>
        ic = Ice.initialize()
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Ice.py", line 368, in initialize
        communicator = IcePy.Communicator(args, data)
    Ice.UnknownException: exception ::Ice::UnknownException
    {
        unknown = Thread.cpp:445: IceUtil::ThreadSyscallException:
    syscall exception: Resource temporarily unavailable
    }
    Code:
    # oa.py
    import Ice
    oas = []
    for i in range(10000):
        print i
        ic = Ice.initialize()
        #oa = ic.createObjectAdapterWithEndpoints("A%s"%i,"tcp -p %s" % (10000+i))
        #oa.activate()
        #oas.append(oa)
        #oa.deactivate()
        #ic.destroy()
    which may or may not be of interest.

    Python: 2.5.4
    Mac OSX: 10.4
    Ice: 3.3.0

    Best wishes,
    ~J.

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Thanks, we'll take a look at that.

    Regards,
    Mark

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 01-31-2011, 07:32 PM
  2. Replies: 1
    Last Post: 06-09-2009, 10:53 PM
  3. Replies: 1
    Last Post: 01-28-2009, 06:15 AM
  4. Replies: 4
    Last Post: 10-26-2006, 11:23 AM
  5. Creating Proxies for "Ice objects" with Python
    By hiasl in forum Help Center
    Replies: 5
    Last Post: 09-13-2005, 10:04 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
  •