Compiler error when attempting to use garbage collection

  • I have an application which was running fine until I tried enabled
    garbage collection (fobjc-gc).  Now, the compiler stops at the end of
    one of my classes with the error:

    internal compiler error: Segmentation fault

    Does anyone have any idea what's going on here?  If I shut off garbage
    collection the error disappears.

    - Jason
  • On 17 Dec 2007, at 05:18, Jason Horn wrote:

    > I have an application which was running fine until I tried enabled
    > garbage collection (fobjc-gc).  Now, the compiler stops at the end
    > of one of my classes with the error:
    >
    > internal compiler error: Segmentation fault
    >
    > Does anyone have any idea what's going on here?  If I shut off
    > garbage collection the error disappears.

    It's a compiler bug.  You should file a bug report <http://bugreport.apple.com>, ideally including a project that triggers the bug (you may want to
    cut the code down to the minimum necessary to trigger it, depending on
    the project you're working on).

    Kind regards,

    Alastair.

    --
    http://alastairs-place.net
  • it might not be a compiler bug. For instance, there are cases where
    the collector will not see a reference (like when it is stored in a
    void*). If this is the case, the instance will be collected earlier
    than you might be expecting, leading to a situation like the OP's.

    On 12/17/07, Alastair Houghton <alastair...> wrote:
    > On 17 Dec 2007, at 05:18, Jason Horn wrote:
    >
    >> I have an application which was running fine until I tried enabled
    >> garbage collection (fobjc-gc).  Now, the compiler stops at the end
    >> of one of my classes with the error:
    >>
    >> internal compiler error: Segmentation fault
    >>
    >> Does anyone have any idea what's going on here?  If I shut off
    >> garbage collection the error disappears.
    >
    > It's a compiler bug.  You should file a bug report
    > <http://bugreport.apple.com
    >  >, ideally including a project that triggers the bug (you may want to
    > cut the code down to the minimum necessary to trigger it, depending on
    > the project you're working on).
    >
    > Kind regards,
    >
    > Alastair.
    >
    > --
    > http://alastairs-place.net
    >

    --
    Clark S. Cox III
    <clarkcox3...>
  • Scratch that. I missed that the error came from the compiler itself.
    By all means, file a bug.

    Clark Cox III
    <Clark.cox...>
    Sent from my iPhone

    On Dec 17, 2007, at 6:52 AM, "Clark Cox" <clarkcox3...> wrote:

    > it might not be a compiler bug. For instance, there are cases where
    > the collector will not see a reference (like when it is stored in a
    > void*). If this is the case, the instance will be collected earlier
    > than you might be expecting, leading to a situation like the OP's.
    >
    > On 12/17/07, Alastair Houghton <alastair...> wrote:
    >> On 17 Dec 2007, at 05:18, Jason Horn wrote:
    >>
    >>> I have an application which was running fine until I tried enabled
    >>> garbage collection (fobjc-gc).  Now, the compiler stops at the end
    >>> of one of my classes with the error:
    >>>
    >>> internal compiler error: Segmentation fault
    >>>
    >>> Does anyone have any idea what's going on here?  If I shut off
    >>> garbage collection the error disappears.
    >>
    >> It's a compiler bug.  You should file a bug report
    >> <http://bugreport.apple.com
    >>> , ideally including a project that triggers the bug (you may want to
    >> cut the code down to the minimum necessary to trigger it, depending
    >> on
    >> the project you're working on).
    >>
    >> Kind regards,
    >>
    >> Alastair.
    >>
    >> --
    >> http://alastairs-place.net
    >>
    >
    >
    > --
    > Clark S. Cox III
    > <clarkcox3...>
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today