Results 1 to 5 of 5

Thread: slice2html coredumps on Mac Snow Leopard

  1. #1
    uwe.arzt is offline Registered User
    Name: Uwe Arzt
    Organization: Uwe Arzt
    Project: Home Automation
    Join Date
    Nov 2008
    Posts
    9

    slice2html coredumps on Mac Snow Leopard

    Hi,

    just as an info, for the MacPorts Snow Leopard Portfile i have added the patch

    Code:
    --- src/system.H	2008-02-27 14:26:31.000000000 +0100
    +++ src/system.H.patched	2009-09-10 17:17:35.000000000 +0200
    @@ -284,7 +284,7 @@
     #define PRESTD_RESCAN_LIMIT 0x100
     #endif
     #ifndef NBUFF
    -#define NBUFF               0x10000     /* Must be NWORK <= NBUFF   */
    +#define NBUFF               0x20000     /* Must be NWORK <= NBUFF   */
     #endif
     #ifndef NWORK
     #define NWORK               NBUFF       /* 0x1000, 0x4000, 0x10000, ..  */
    to mcpp. This was done, because slice2html ended with an segfault during the ice-cpp buildprocess (even with your patch for mcpp installed).

    :q! Uwe

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    I just built the doc using OS X 10.6 without problems.

    It's strange that you see this crash but I don't. Which version of mcpp are you using. (I'm using mcpp 2.7 here.)

    Are you generating only the doc in the Ice source tree or are there other Slice files involved as well?

    From the change you made to mcpp, it certainly looks like slice2html blows some internal limit. But I'd like to know why it fails for you and works for me before adding yet another patch to mcpp.

    Cheers,

    Michi.

  3. #3
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    I just checked the source for my mcpp build, and I have

    #define NBUFF 0x10000

    The comment in system.H says:

    Code:
     * NBUFF        Input buffer size after line concatenation by <backslash>
     *              <newline>.
    I don't think we have any place in our Slice files where we do line concatenation, so I don't see how this setting would affect building of our doc with slice2html.

    Cheers,

    Michi.

  4. #4
    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
    We're also seeing slice2html segfaults on OS X 10.5 as well as Windows: [ome-users] Omero Build Error on WinXP

    I was assuming it was related to our includes: Circular includes cause abnormal termination since slice generators

  5. #5
    uwe.arzt is offline Registered User
    Name: Uwe Arzt
    Organization: Uwe Arzt
    Project: Home Automation
    Join Date
    Nov 2008
    Posts
    9
    Hi Michi,

    Quote Originally Posted by michi View Post
    It's strange that you see this crash but I don't. Which version of mcpp are you using. (I'm using mcpp 2.7 here.)

    Are you generating only the doc in the Ice source tree or are there other Slice files involved as well?

    Michi.
    Please see

    #21275 (ice-cpp segfault during build) – MacPorts

    there you have a logfile from the ice build, and a callstack from slice2html. That was my first time debugging mcpp and it looks like that this things are a little bit different when mcpp is used as a lib.

    The crash only happens with that very long commandline. If you call it with some slice Files less, everything works fine. So i decided to go the easy way and increse the buffer size (which doesn't fix the "real" bug, but works at the moment).

    mcpp is Version 2.7.2 installed with macports.

    The complete install is done with MacPorts by me, so you can install MacPorts and run "sudo port install ice-cpp". You should see the core, because the fix isn't commited yet.

    Uwe

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Ice 3.4.1 for PHP on Mac Os Snow Leopard
    By oksanat in forum Help Center
    Replies: 7
    Last Post: 01-13-2011, 11:12 PM
  2. Compiling Ice v3.4.0 on OSX/Snow Leopard
    By jsgoecke in forum Help Center
    Replies: 2
    Last Post: 03-29-2010, 04:03 PM
  3. slice2html and constants
    By mspycher in forum Help Center
    Replies: 2
    Last Post: 09-19-2007, 06:27 PM
  4. slice2html v3.2.0 aborts
    By mspycher in forum Bug Reports
    Replies: 1
    Last Post: 06-27-2007, 09:33 PM
  5. slice2html missing
    By UserXYZ in forum Help Center
    Replies: 0
    Last Post: 05-04-2007, 01:04 PM

Posting Permissions

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