Results 1 to 3 of 3

Thread: Circular includes cause abnormal termination since slice generators

  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

    Circular includes cause abnormal termination since slice generators

    slice executables terminate on circular includes. The fix is easy on the user side, but thought you might like to know since preprocessing files are left hanging around.

    Code:
    josh@mac:/tmp/NullHandle$ slice2py -I. Metadata.ice 
    /private/tmp/NullHandle/API.ice:19: `omero::metadata::TagSetContainerList' is not defined
    terminate called after throwing an instance of 'IceUtil::NullHandleException'
      what():  ../../include/IceUtil/Handle.h:46: IceUtil::NullHandleException
    Abort trap
    Code:
    josh@mac:/tmp/NullHandle$ cat Metadata.ice 
    #ifndef OMERO_METADATA_ICE
    #define OMERO_METADATA_ICE
    #include <API.ice>
    module omero {
      module metadata {
        sequence<string> TagSetContainerList;
      };
    };
    #endif
    Code:
    josh@mac:/tmp/NullHandle$ cat API.ice 
    #ifndef OMERO_API_ICE
    #define OMERO_API_ICE
    #include <Metadata.ice>
    module omero {
        module api {
            ["ami", "amd"] interface IMetadata
            {
                idempotent omero::metadata::TagSetContainerList loadTagSets(long id, bool withObjects);
            };
        };
    };
    #endif

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi Josh,

    Thanks for the bug report, this will be fixed for the next release.

    Cheers,
    Benoit.

  3. #3
    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
    Short update: we're also seeing segfaults on OS X 10.5 with slice2html 3.3.1, and are trying to isolate the problem. ~J.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remote termination of a server
    By KeithP in forum Help Center
    Replies: 2
    Last Post: 11-23-2009, 07:51 AM
  2. Client termination detection
    By KeithP in forum Help Center
    Replies: 2
    Last Post: 11-23-2009, 06:53 AM
  3. Circular Includes
    By slypete in forum Help Center
    Replies: 3
    Last Post: 02-24-2009, 02:05 PM
  4. Circular #include possible?
    By mefoster in forum Help Center
    Replies: 1
    Last Post: 09-26-2006, 06:54 AM
  5. Generating code from slice includes?
    By ctennis in forum Help Center
    Replies: 4
    Last Post: 06-09-2006, 09:26 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
  •