Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MacOS X core dumps - gcc compiler crashes



On 15/6/03 4:04 am, Bill Northcott <email@hidden> wrote:
> Thanks for the thoughts which confirmed that I was using the correct
> syntax.
> Actually you need to check something else as well:
> In the preferences for the Console app there is an option 'Enable crash
> reporting'. If this is selected you will get a crash log entry but no
> core dump regardless of the limit setting.
>
> Even this does not solve my problem.
>
> I am trying to trace a crash in the Apple/Darwin gcc compiler. This
> occurs if you try to compile an Objective-C program containing a main()
> function with the -fgnu-runtime flag enabled. It does not occur in
> compilers built from the FSF sources.
> The crash occurs in cc1obj and it was this that I wanted to crash dump.
> However, cc1obj is driven by gcc and this traps the crash before it gets

If you try compiling using gcc -v compilerbreaker.c, you will see the exact
commandlines that the gcc driver is using to execute cc1obj. Presumably if
you run cc1obj yourself using the identical args, you'll get a nice core
dump...

I say presumably, because trying to use -fgnu-runtime with an Objective-C
program as you described does not crash for me.

Cheers,

Chris
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.