|
From: <kin...@us...> - 2003-12-20 12:05:43
|
Update of /cvsroot/teem/teem/src/hest In directory sc8-pr-cvs1:/tmp/cvs-serv5214/hest Modified Files: parseHest.c Log Message: documenting debugging of mysterious segfaults on hammerhead.ucsd.edu, an ia64 machine Index: parseHest.c =================================================================== RCS file: /cvsroot/teem/teem/src/hest/parseHest.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** parseHest.c 23 Jul 2003 01:20:27 -0000 1.11 --- parseHest.c 20 Dec 2003 12:05:40 -0000 1.12 *************** *** 900,903 **** --- 900,904 ---- case 5: /* -------- multiple optional parameters -------- */ + /* hammerhead problems in this case */ if (prms[op] && vP) { if (1 == _hestCase(opt, udflt, nprm, appr, op)) { *************** *** 938,942 **** for (p=0; p<=nprm[op]-1; p++) { tok = airStrtok(!p ? prmsCopy : NULL, " ", &last); ! strcpy(cberr, ""); ret = opt[op].CB->parse(cP + p*size, tok, cberr); if (ret) { --- 939,947 ---- for (p=0; p<=nprm[op]-1; p++) { tok = airStrtok(!p ? prmsCopy : NULL, " ", &last); ! /* hammerhead problems went away when this line ! was replaced by the following one: ! strcpy(cberr, ""); ! */ ! cberr[0] = 0; ret = opt[op].CB->parse(cP + p*size, tok, cberr); if (ret) { *************** *** 1019,1023 **** airArray *mop; hestParm *parm; ! numOpts = _hestNumOpts(opt); --- 1024,1028 ---- airArray *mop; hestParm *parm; ! numOpts = _hestNumOpts(opt); *************** *** 1097,1100 **** --- 1102,1106 ---- _hestPrintArgv(argc, argv); */ + /* -------- extract flags and their associated parameters from argv */ if (parm->verbosity) printf("%s: #### calling hestExtractFlagged\n", me); *************** *** 1109,1112 **** --- 1115,1119 ---- _hestPrintArgv(argc, argv); */ + /* -------- extract args for unflagged options */ if (parm->verbosity) printf("%s: #### calling hestExtractUnflagged\n", me); *************** *** 1128,1132 **** } - /* -------- learn defaults */ if (parm->verbosity) printf("%s: #### calling hestDefaults\n", me); --- 1135,1138 ---- *************** *** 1139,1142 **** --- 1145,1149 ---- /* -------- now, the actual parsing of values */ + /* hammerhead problems in _hestSetValues */ if (parm->verbosity) printf("%s: #### calling hestSetValues\n", me); ret = _hestSetValues(prms, udflt, nprm, appr, *************** *** 1146,1149 **** --- 1153,1157 ---- airMopError(mop); return ret; } + if (parm->verbosity) printf("%s: #### hestSetValues done!\n", me); |