<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I managed to build a reduced test case:<div><br></div><div>================== foo.m ==================</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(226, 3, 0); "><span style="color: #7f4726">#include </span><Foundation/Foundation.h></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><span style="color: #cc00a2">@interface</span> BaseNode : NSObject <NSCoding, NSCopying> { }</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(204, 0, 162); ">@end</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(204, 0, 162); ">@implementation<span style="color: #000000"> BaseNode</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(204, 0, 162); ">@end</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><span style="color: #cc00a2">int</span> main(<span style="color: #cc00a2">int</span> argc, <span style="color: #cc00a2">char</span> **argv) {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; color: rgb(204, 0, 162); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre"> </span></span>return<span style="color: #000000"> </span><span style="color: #3d00db">0</span><span style="color: #000000">;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">}</div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">==========================================</span></span></font></div><div><br></div><div># clang -o foo -arch i386 -framework Foundation foo.m</div><div><div>foo.m:8:1: warning: incomplete implementation</div><div>@implementation BaseNode</div><div>^</div><div>1 warning generated.</div></div><div># ./foo</div><div><div>Segmentation fault</div><div><br></div><div><div>Program received signal EXC_BAD_ACCESS, Could not access memory.</div><div>Reason: KERN_INVALID_ADDRESS at address: 0x6e697970</div><div><br></div><div>#0 0x913d3348 in _objc_search_builtins ()</div><div>#1 0x913d313e in __sel_registerName ()</div><div>#2 0x913d6269 in map_method_descs ()</div><div>#3 0x913d4094 in _read_images ()</div><div>#4 0x913e9933 in map_images_nolock ()</div><div>#5 0x913d30d9 in map_images ()</div><div>#6 0x8fe03ecc in __dyld__ZN4dyldL18notifyBatchPartialE17dyld_image_statesbPFPKcS0_jPK15dyld_image_infoE ()</div><div>#7 0x8fe04359 in __dyld__ZN4dyld36registerImageStateBatchChangeHandlerE17dyld_image_statesPFPKcS0_jPK15dyld_image_infoE ()</div><div>#8 0x958d3892 in dyld_register_image_state_change_handler ()</div><div>#9 0x913d306d in _objc_init ()</div><div>#10 0x8fe0ed6d in __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE ()</div><div>#11 0x8fe0d31e in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj ()</div><div>#12 0x8fe0d2c2 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj ()</div><div>#13 0x8fe0d2c2 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj ()</div><div>#14 0x8fe0d3d1 in __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextE ()</div><div>#15 0x8fe024a9 in __dyld__ZN4dyld24initializeMainExecutableEv ()</div><div>#16 0x8fe07950 in __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_ ()</div><div>#17 0x8fe018b1 in __dyld__ZN13dyldbootstrap5startEPK12macho_headeriPPKcl ()</div><div>#18 0x8fe01057 in __dyld__dyld_start ()</div><div><br></div></div></div><div><br></div><div><div>Le 26 avr. 2010 à 10:13, Jean-Daniel Dupas a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>After commit 102300, any obj-c software compiled with clang crashes at launch time with the following stack trace.<br>Reverting this specific commit fix the issue.<br><br>------------------------------------------------------------------------------------------------<br>Date/Time: 2010-04-26 10:07:01.630 +0200<br>OS Version: Mac OS X 10.6.3 (10D573)<br>Report Version: 6<br><br>Interval Since Last Report: 333376 sec<br>Crashes Since Last Report: 5<br>Per-App Crashes Since Last Report: 1<br>Anonymous UUID: C67EBC9D-4A73-4DA7-B067-E5006618C178<br><br>Exception Type: EXC_BAD_ACCESS (SIGSEGV)<br>Exception Codes: KERN_INVALID_ADDRESS at 0x0000000074696e55<br>Crashed Thread: 0 Dispatch queue: com.apple.main-thread<br><br>Thread 0 Crashed: Dispatch queue: com.apple.main-thread<br>0 libobjc.A.dylib <span class="Apple-tab-span" style="white-space:pre"> </span>0x913d3348 _objc_search_builtins + 299<br>1 libobjc.A.dylib <span class="Apple-tab-span" style="white-space:pre"> </span>0x913d313e __sel_registerName + 44<br>2 libobjc.A.dylib <span class="Apple-tab-span" style="white-space:pre"> </span>0x913d6269 map_method_descs + 47<br>3 libobjc.A.dylib <span class="Apple-tab-span" style="white-space:pre"> </span>0x913d4094 _read_images + 2116<br>4 libobjc.A.dylib <span class="Apple-tab-span" style="white-space:pre"> </span>0x913e9933 map_images_nolock + 1545<br>5 libobjc.A.dylib <span class="Apple-tab-span" style="white-space:pre"> </span>0x913d30d9 map_images + 72<br>6 dyld <span class="Apple-tab-span" style="white-space:pre"> </span>0x8fe03ecc dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) + 698<br>7 dyld <span class="Apple-tab-span" style="white-space:pre"> </span>0x8fe04359 dyld::registerImageStateBatchChangeHandler(dyld_image_states, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) + 452<br>8 libSystem.B.dylib <span class="Apple-tab-span" style="white-space:pre"> </span>0x958d3892 dyld_register_image_state_change_handler + 98<br>9 libobjc.A.dylib <span class="Apple-tab-span" style="white-space:pre"> </span>0x913d306d _objc_init + 77<br>10 dyld <span class="Apple-tab-span" style="white-space:pre"> </span>0x8fe0ed6d ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 235<br>11 dyld <span class="Apple-tab-span" style="white-space:pre"> </span>0x8fe0d31e ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 246<br>12 dyld <span class="Apple-tab-span" style="white-space:pre"> </span>0x8fe0d2c2 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 154<br>13 dyld <span class="Apple-tab-span" style="white-space:pre"> </span>0x8fe0d2c2 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 154<br>14 dyld <span class="Apple-tab-span" style="white-space:pre"> </span>0x8fe0d2c2 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int) + 154<br>15 dyld <span class="Apple-tab-span" style="white-space:pre"> </span>0x8fe0d3d1 ImageLoader::runInitializers(ImageLoader::LinkContext const&) + 61<br>16 dyld <span class="Apple-tab-span" style="white-space:pre"> </span>0x8fe024a9 dyld::initializeMainExecutable() + 134<br>17 dyld <span class="Apple-tab-span" style="white-space:pre"> </span>0x8fe07950 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**) + 4189<br>18 dyld <span class="Apple-tab-span" style="white-space:pre"> </span>0x8fe018b1 dyldbootstrap::start(macho_header const*, int, char const**, long) + 779<br>19 dyld <span class="Apple-tab-span" style="white-space:pre"> </span>0x8fe01057 _dyld_start + 39<br><br><br><br>-- Jean-Daniel<br><br><br><br><br><br>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></div></blockquote></div><br><div>
<div>-- Jean-Daniel</div><div><br></div><div><br></div><br class="Apple-interchange-newline">
</div>
<br></div></body></html>