<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>How was dtoa compiled?  That code is a fragile part of the run-time system that uses C that breaks with some C compilers.  (See why I hate non-portable C!).</div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><font class="Apple-style-span" color="#0000FF"><font class="Apple-style-span" face="Gill Sans"><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: Gill Sans; "><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: Gill Sans; ">Antony Hosking</span></span></font></font><font class="Apple-style-span" face="Gill Sans"><span class="Apple-style-span" style="font-family: Gill Sans; "><span class="Apple-style-span" style="font-family: Gill Sans; "> | </span></span><span class="Apple-style-span" style="font-family: Gill Sans; "><span class="Apple-style-span" style="font-family: Gill Sans; ">Associate Professor</span></span><span class="Apple-style-span" style="font-family: Gill Sans; "><span class="Apple-style-span" style="font-family: Gill Sans; "> | Computer Science | Purdue University</span></span></font></div><div><font class="Apple-style-span" face="GillSans-Light"><span class="Apple-style-span" style="font-family: GillSans-Light; ">305 N. University Street | West Lafayette | IN 47907 | USA</span></font></div><div><font class="Apple-style-span" color="#0000FF" face="Gill Sans"><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: Gill Sans; "><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: Gill Sans; ">Office</span></span></font><font class="Apple-style-span" face="GillSans-Light"><span class="Apple-style-span" style="font-family: GillSans-Light; "><span class="Apple-style-span" style="font-family: GillSans-Light; "> +1 765 494 6001 | </span></span></font><font class="Apple-style-span" color="#0000FF" face="Gill Sans"><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: Gill Sans; "><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: Gill Sans; ">Mobile</span></span></font><font class="Apple-style-span" face="GillSans-Light"><span class="Apple-style-span" style="font-family: GillSans-Light; "><span class="Apple-style-span" style="font-family: GillSans-Light; "> +1 765 427 5484</span></span></font></div><div><font class="Apple-style-span" face="GillSans-Light"><br class="khtml-block-placeholder"></font></div></span></span></span></span></span></span></span><br class="Apple-interchange-newline"></span></div></span> </div><br><div><div>On Mar 17, 2008, at 6:11 AM, Jay wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">any advise to for debuging..I think I'll just turn off optimization..that fixed it...no patience to debug codegen bugs or anything in dtoa..confusing stuff...<br>This wasn't occuring..but now I can repro it consistently compiling some of m3core/extended*, m3core/real*, m3core/longreal*. The rest of m3core compiles ok..<br> <br>Program received signal SIGSEGV, Segmentation fault.<br>mult (a=0x1426860, b=0x1426880) at ..//src//Csupport//Common/dtoa.h:535<br>535                     *x = 0;<br>(gdb) bt<br>#0  mult (a=0x1426860, b=0x1426880) at ..//src//Csupport//Common/dtoa.h:535<br>#1  0x00626721 in pow5mult (b=0x1426880, k=1185)<br>    at ..//src//Csupport//Common/dtoa.h:620<br>#2  0x00628011 in m3_dtoa (d=4.9406564584124654e-324, mode=2, ndigits=14,<br>    decpt=0x22bc74, sign=0x22bc60, rve=0x22bc68)<br>    at ..//src//Csupport//Common/dtoa.h:2224<br>#3  0x0061534d in Convert__InternalFromLongFloat (M3_CKMnXU_buf=0x22be58,<br>    M3_CtKayy_v=4.9406564584124654e-324, M3_AcxOUs_p=13,<br>    M3_BTpO8m_style=2 '\002', M3_Bkn9rd_exponentChar=88 'X')<br>    at ..\src\convert\Convert.m3:367<br>#4  0x00614c1f in Convert__FromExtended (M3_CKMnXU_buf=0x22be58,<br>    M3_C4YHmT_v=4.9406564584124654e-324, M3_AcxOUs_p=13,<br>    M3_BTpO8m_style=2 '\002') at ..\src\convert\Convert.m3:282<br>#5  0x005bb6ca in M3Buf__PutFloat (M3_DmgyYA_t=0x7fe9d290,<br>    M3_DYj8sa_f=0x7fed4b5c) at ..\src\M3Buf.m3:156<br>#6  0x005760c9 in ReelExpr__GenFPLiteral (M3_DopDyP_p=0x7fed4b4c,<br>    M3_DmgyYA_buf=0x7fe9d290) at ..\src\exprs\ReelExpr.m3:278<br>#7  0x0054bf68 in Expr__GenFPLiteral (M3_ES44mX_t=0x7fed4b4c,<br>    M3_DmgyYA_mbuf=0x7fe9d290) at ..\src\exprs\Expr.m3:224<br>#8  0x005301b2 in Constant__AddFPTag (M3_AjdbKy_t=0x7fed4abc,<br>    M3_BlO1Kl_x=0x22bf68) at ..\src\values\Constant.m3:225<br>#9  0x004cb94c in Value__AddFPTag (M3_EjfEr4_t=0x7fed4abc,<br>    M3_BlO1Kl_x=0x22bf68) at ..\src\values\Value.m3:143<br>#10 0x004cb6e1 in Value__ToFP (M3_D9M1dT__result=0x22bff4,<br>    M3_EjfEr4_t=0x7fed4abc) at ..\src\values\Value.m3:120<br>#11 0x004cbec3 in Value__Declare (M3_EjfEr4_t=0x7fed4abc)<br>    at ..\src\values\Value.m3:202<br>#12 0x004bb7dd in Scope__Enter (M3_DurAC9_t=0x7fed48e0)<br>    at ..\src\misc\Scope.m3:239<br>#13 0x004b2d70 in Module__CompileInterface (M3_DZ1mTg_t=0x7fecf77c)<br>    at ..\src\values\Module.m3:870<br>#14 0x004b2985 in Module__Compile (M3_DZ1mTg_t=0x7fecf77c)<br>    at ..\src\values\Module.m3:836<br>#15 0x0049fd4d in M3Front__DoCompile () at ..\src\misc\M3Front.m3:196<br>#16 0x0049f37a in M3Front__Compile (M3_AT7GN4_input=0x22c1ec,<br>    M3_AUoUsm_env=0x7fec084c, M3_BySCJy_options=0x7ff6415c)<br>    at ..\src\misc\M3Front.m3:64<br>#17 0x0040aad8 in Builder__RunM3 (M3_Bd9FNt_s=0x7ff3de1c,<br>    M3_AXLf8B_u=0x7fecc1dc, M3_Bd56fi_object=0x7ff640e8)<br>    at ..\src\Builder.m3:1454<br>#18 0x0040927b in Builder__PushOneM3 (M3_Bd9FNt_s=0x7ff3de1c,<br>    M3_AXLf8B_u=0x7fecc1dc) at ..\src\Builder.m3:1125<br>#19 0x00408e94 in Builder__CompileM3 (M3_Bd9FNt_s=0x7ff3de1c,<br>    M3_AXLf8B_u=0x7fecc1dc) at ..\src\Builder.m3:1076<br>#20 0x00407b15 in Builder__CompileOne (M3_Bd9FNt_s=0x7ff3de1c,<br>---Type <return> to continue, or q <return> to quit---q<br>M3_AXLf8B_u=0x7fQuit<br>) at ..\src\Builder.m3:911<br>#21 0x00409f46 in Builder__CheckImp (M3_Bd9FNt_s=0x7ff3de1c,<br>    M3_A7mgsK_u=0x7ff79d54, M3_EIVwTa_z=0x7ff79d68, M3_A2QN6Z_kind=1 '\001')<br>    at ..\src\Builder.m3:1292<br>#22 0x00409e45 in Builder__CheckImports (M3_Bd9FNt_s=0x7ff3de1c,<br>    M3_A7mgsK_u=0x7ff79d54) at ..\src\Builder.m3:1279<br>#23 0x00409acf in Builder__M3isStale (M3_Bd9FNt_s=0x7ff3de1c,<br>    M3_AXLf8B_u=0x7fe5c270) at ..\src\Builder.m3:1229<br>#24 0x00408e4b in Builder__CompileM3 (M3_Bd9FNt_s=0x7ff3de1c,<br>    M3_AXLf8B_u=0x7fe5c270) at ..\src\Builder.m3:1071<br>#25 0x00407b15 in Builder__CompileOne (M3_Bd9FNt_s=0x7ff3de1c,<br>    M3_AXLf8B_u=0x7fe5c270) at ..\src\Builder.m3:911<br>#26 0x004077e7 in Builder__CompileEverything (M3_Bd9FNt_s=0x7ff3de1c,<br>    M3_Cw4bpV_schedule=0x7ff247f0) at ..\src\Builder.m3:871<br>#27 0x0040391d in Builder__CompileUnits (M3_Bd56fi_main=0x7ff67014,<br>    M3_EEuw3X_units=0x7ff7e73c, M3_C1FTrk_sys_libs=0x7ff3dd60,<br>    M3_A2QN6Z_info_kind=17 '\021', M3_An02H2_mach=0x7ff7e63c)<br>    at ..\src\Builder.m3:239<br>#28 0x0040250a in Builder__BuildLib (M3_Bd56fi_lib=0x7ff67014,<br>    M3_EEuw3X_units=0x7ff7e73c, M3_C1FTrk_sys_libs=0x7ff3dd60,<br>    M3_AicXUJ_shared=1 '\001', M3_An02H2_m=0x7ff7e63c) at ..\src\Builder.m3:36<br>#29 0x0041afd0 in M3Build__DoLibrary (M3_An02H2_m=0x7ff7e63c,<br>    M3_AcxOUs_n_args=1) at ..\src\M3Build.m3:1365<br>#30 0x00477f27 in QMachine__DoCall (M3_An02H2_t=0x7ff7e63c,<br>    M3_AcxOUs_n_args=1, M3_AicXUJ_isFunc=0 '\0', M3_AicXUJ_outer=0 '\0')<br>    at ..\src\QMachine.m3:529<br>#31 0x00476f1d in QMachine__Eval (M3_An02H2_t=0x7ff7e63c)<br>    at ..\src\QMachine.m3:405<br>#32 0x0047f1f3 in QMachine (M3_An02H2_t=0x7ff7e63c,<br>    M3_Bd56fi_path=0x7ff939b0, M3_AicXUJ_from_code=0 '\0')<br>    at ..\src\QMachine.m3:1660<br>#33 0x0047f038 in QMachine (M3_An02H2_t=0x7ff7e63c, M3_Bd56fi_path=0x7ff939b0)<br>    at ..\src\QMachine.m3:1631<br>#34 0x00417959 in M3Build (M3_ABp1Zk_t=0x7ff7e63c, M3_Bd56fi_file=0x7ff939b0)<br>    at ..\src\M3Build.m3:579<br>#35 0x0041935f in M3Build__DoIncludeDir (M3_An02H2_m=0x7ff7e63c,<br>    M3_AcxOUs_n_args=1) at ..\src\M3Build.m3:954<br>#36 0x00477f27 in QMachine__DoCall (M3_An02H2_t=0x7ff7e63c,<br>    M3_AcxOUs_n_args=1, M3_AicXUJ_isFunc=0 '\0', M3_AicXUJ_outer=0 '\0')<br>    at ..\src\QMachine.m3:529<br>#37 0x00476f1d in QMachine__Eval (M3_An02H2_t=0x7ff7e63c)<br>    at ..\src\QMachine.m3:405<br>#38 0x004756ef in QMachine__Evaluate (M3_An02H2_t=0x7ff7e63c,<br>    M3_CYwAos_s=0x7ff93568) at ..\src\QMachine.m3:154<br>#39 0x00486ad2 in Quake__Run (M3_An02H2_m=0x7ff7e63c,<br>---Type <return> to continue, or q <return> to quit---q<br>M3_Bd56fi_source_file=0x7Quit<br>) at ..\src\Quake.m3:19<br>#40 0x00415ee7 in M3Build__Run (M3_ABp1Zk_t=0x7ff7e63c,<br>    M3_Bd56fi_makefile=0x7ff9243c) at ..\src\M3Build.m3:183<br>#41 0x0042c706 in Main__DoIt () at ..\src\Main.m3:81<br>#42 0x0042c9dc in Main_M3 (M3_AcxOUs_mode=1) at ..\src\Main.m3:195<br>#43 0x005fa1ee in RTLinker__RunMainBody (M3_DjPxE3_m=0x63c020)<br>    at ..\src\runtime\common\RTLinker.m3:399<br>#44 0x005f9719 in RTLinker__AddUnitI (M3_DjPxE3_m=0x63c020)<br>    at ..\src\runtime\common\RTLinker.m3:113<br>#45 0x005f97a0 in RTLinker__AddUnit (M3_DjPxE5_b=0x42c9c7)<br>    at ..\src\runtime\common\RTLinker.m3:122<br>#46 0x00401085 in main (argc=1, argv=0x14218e8, envp=0x1420090)<br>    at _m3main.mc:4<br><br><br><br><br><br><hr>Helping your favorite cause is as easy as instant messaging. You IM, we give.<span class="Apple-converted-space"> </span><a href="http://im.live.com/Messenger/IM/Home/?source=text_hotmail_join" target="_new">Learn more.</a></div></span></blockquote></div><br></body></html>