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



They might have found it uninteresting because it might be already fixed.
As you said you tried the FSF's sources but that is a newer version than
what Apple's compiler is based on.
Also on the FSF gcc mail lists will tell you talk to Apple so it is a modified
version of gcc which crashes.
With the current mainline FSF's sources, there is a way to get a core dump, -dH,
so cc1obj does not eat it.
Actually it is not gcc which traps the error but cc1obj that does.

Hopefully this makes sense.

Thanks,
Andrew Pinski

On Saturday, Jun 14, 2003, at 23:04 US/Eastern, Bill Northcott 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
to dump and just gives you an error message saying report the crash to
Apple. (I did and they classified it as uninteresting!)
There are only a couple of places in the gcc sources where
-fgnu-runtime/-fnext-runtime flags are operative. I am fairly sure the
problem is in gcc/objc-act.c but that is nearly 10,000 lines of C code
with a large number of conditionals on the runtime flags. So I need to
get a little closer.
I think I will try it on the FSF gcc mail lists. Unless somebody here has
some understanding of the compiler.

Bill Northcott


Paul Ripke <email@hidden> wrote on 13/06/2003 10:23:20 PM:

}
ksh$ cc z.c
ksh$ ./a.out
Bus error
ksh$ ls -l /cores/
ksh$ ulimit -c unlimited
ksh$ ./a.out
Bus error (core dumped)
ksh$ ls -l /cores/
total 139712
-r-------- 1 stix wheel 71532544 Jun 13 22:19 core.880
ksh$
_______________________________________________
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.
_______________________________________________
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.