From lechner@cs.uml.edu Wed Aug 23 02:04:55 2006 Received: from saturn.cs.uml.edu (cs.uml.edu [129.63.8.2]) by earth.cs.uml.edu (8.12.11.20060308/8.11.6) with ESMTP id k7N64sck017391; Wed, 23 Aug 2006 02:04:55 -0400 Received: from saturn.cs.uml.edu (localhost [127.0.0.1]) by saturn.cs.uml.edu (8.12.9/8.12.9) with ESMTP id k7N64sXi261424; Wed, 23 Aug 2006 02:04:54 -0400 (EDT) Received: (from lechner@localhost) by saturn.cs.uml.edu (8.12.9/8.12.9/Submit) id k7N64sPV197372; Wed, 23 Aug 2006 02:04:54 -0400 (EDT) From: Bob Lechner Message-Id: <200608230604.k7N64sPV197372@saturn.cs.uml.edu> Subject: $RBGB/test/bdetestnologlinux060823.0140 FYInfo To: lechner@cs.uml.edu (Bob Lechner) Date: Wed, 23 Aug 2006 02:04:54 -0400 (EDT) Cc: sfrye@cs.uml.edu (Scot Frye) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 18099 Lines: 442 X-Status: X-Keywords: X-UID: 1110 X-Evolution: 000005a4-0000 Status: RO $RBGB/test/bdetestnologlinux060823.0140 saturn.cs.uml.edu(89)> wc $RBGB/test/bdetestnologlinux060823.0140 417 1790 17117 /usr/cs/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/test/bdetestnologlinux060823.0140 saturn.cs.uml.edu(90)> This was extracted from stdout+stderr to NotePad - there are gaps at lines with ... There is not much improvement; bde fails to recognize existence of pr_loaded files and HG-rows, although graphDump.txt called many times appends copies of the incrementaly created HG, CG title and HN rows. Node Move works OK, but Node selection is disabled. Only first HN is selected, regadless of where mouse is clicked. Caption Move over-sizes the distance TBMoved (to twice as far as mouse moved). Not tested: Node or Caption Delete. Earlier tests showed similar ignorance of actual mouse position. Node deletes may occur in the order created (or in LIFO order). ----------------------------------------------------------- $RBGB/test/bdetestnologlinux060823.0140 (gdb) s lut_insert_element (p_lut=0x8092c80, name=0x807c18e "CG") at ../pr_util_nolog/i386-linux/probj/lut.c:249 249 return(test); (gdb) s 280 } /* end lut_insert_element */ (gdb) dump_row (tbl=0x807c18e "CG", viewname=0x807c068 "94sbdeview", dump_fp=0x79d480, file_name=0x807c4ca "stderr", new_version=0, modestr=0x807c4c8 "a") at ../pr_util_nolog/i386-linux/probj/pr_dump.c:240 240 switch(idx) { /* '{' added 060121 - multiple switch(idx) prefixes removed - RJL060120 */ (gdb) n 324 hcg_update_version(&CGcurr->CGid,idx,new_version); (gdb) n 325 DP;decode((char*)dumpkey[0], &CGcurr->CGid); (gdb) n In dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:325 Exit decode at ../pr_util_nolog/i386-linux/probj/pr_load.c:637 326 hcg_update_version(&CGcurr->HGid,HG_idx,new_version); ... In dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:327 Exit decode at ../pr_util_nolog/i386-linux/probj/pr_load.c:637 328 PrintCheck(fprintf(dump_fp, " %-8s %-8s %8.4f %8.4f %8.4f %8.4f\n", (gdb) p dump_fp $16 = (FILE *) 0x79d480 (gdb) s CG000001 HG000001 450.0000 25.0000 200.0000 50.0000 349 LP;} /* end dump_row */ (gdb) s Exit dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:349 CreateNewGraph (widget=0x8712bc0, client_data=0x0, cbs=0xfee3d780) at ../src/fileio.cc:1347 1347 Current language: auto; currently c++ (gdb) p dump_fp $17 = (FILE *) 0x870f4b8 (gdb) n 1350 DP;fprintf(stderr, "CGid = %lux at CG_elt = %p\n", CG_elt->CGid, CG_elt); (gdb) n In CreateNewGraph at ../src/fileio.cc:1350 current_filename = /usr/cs/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/test/jv.dat, HGtitle = 060823.dat 1352 CGcurr = CG_elt; //pre-cond for pr_dump_row: valid CGcurr (gdb) ... gdb) c Continuing. Enter UpdateTitleOfBDEWindow at ../src/fileio.cc:2731 strlen(filename)=78, strlen(graph_title)=10 Exit UpdateTitleOfBDEWindow at ../src/fileio.cc:2753 Enter graphobject at ../src/graphobject.cc:522 Exit graphobject at ../src/graphobject.cc:530 Enter graph at ../src/graphobject.cc:1848 Exit graph at ../src/graphobject.cc:1850 Enter graphobject at ../src/graphobject.cc:522 Exit graphobject at ../src/graphobject.cc:530 Enter caption at ../src/graphobject.cc:739 Exit caption at ../src/graphobject.cc:741 XtIsSensitive(leftmenu) = 1 Exit CreateNewGraph at ../src/fileio.cc:1367 [Prior etype# 2 was repeated 11 more times] EI# 881: ET 6:MotionNotify at =< 71, 19> EI# 882: ET 8:LeaveNotify at =< 71, 19> EI# 883: ET 7:EnterNotify at =< 71, 19> EI# 884: ET 6:MotionNotify at =< 67, 31> EI# 885: ET 8:LeaveNotify at =< 67, 31> EI# 886: ET 7:EnterNotify at =< 67, 31> EI# 887: ET 6:MotionNotify at =< 55, 63> EI# 888: ET12:Expose at =< 55, 63> EI# 889: ET 8:LeaveNotify at =< 55, 63> EI# 890: ET 7:EnterNotify at =< 55, 63> EI# 891: ET18:UnmapNotify at =< 55, 63> EI# 892: ET10:FocusOut at =< 55, 63> EI# 893: ET 9:FocusIn at =< 55, 63> EI# 894: ET12:Expose at =< 55, 63> Enter docanvasexposure at ../src/initClasses.cc:275 Event type 0, name NotUsed In docanvasexposure at ../src/initClasses.cc:297 IGNORED Event type 0, name NotUsed Exit docanvasexposure at ../src/initClasses.cc:299 EI# 895: ET 8:LeaveNotify at =< 55, 63> EI# 896: ET 7:EnterNotify at =< 55, 63> [Prior etype# 7 was repeated 4 more times] EI# 900: ET21:ReparentNotify at =< 55, 63> Default case: Event etype 28: PropertyNotify is not logged EI# 902: ET 4:ButtonPress at =< 60, 428> Enter dobuttonevent at ../src/buttonevent.cc:194 State=12:buttonevent=4; at mouse position x=60, y=428 Enter node_move at ../src/nodeops.cc:478 Enter doDump at ../src/graphobject.cc:1901 tbl_encoding [0..9] = FO,GD,HG,HN,HA,HL,HP,HI,CG,GX Enter PrintGraphObjectList at ../src/graphobject.cc:495 134217729x0 33554433x0 Exit PrintGraphObjectList at ../src/graphobject.cc:506 doDump: currentlp = topobject->subobjects = 0x87140f8x doDump: currenttlp->object->getcurr() = 0x8708dc8x doDump: currenttlp->object->getid() = 134217729x In doDump at ../src/graphobject.cc:1946 doDump: tblabbr = CG; objcount = 1 Breakpoint 1, dump_row (tbl=0x807fbe6 "CG", viewname=0x80941f0 "", dump_fp=0x871c600, file_name=0x8080792 "graphDump.txt", new_version=0, modestr=0x8080790 "a") at ../pr_util_nolog/i386-linux/probj/pr_dump.c:222 222 EP; // crashed in decode - inside encoding? Current language: auto; currently c #0 dump_row (tbl=0x807fbe6 "CG", viewname=0x80941f0 "", dump_fp=0x871c600, file_name=0x8080792 "graphDump.txt", new_version=0, modestr=0x8080790 "a") at ../pr_util_nolog/i386-linux/probj/pr_dump.c:222 #1 0x0805f72f in Ggroup::doDump (this=0x86f7e58) at ../src/graphobject.cc:1974 #2 0x08067869 in node_move (event=0xfee3ddc0, state=18, attribute=0xfee3dae4, button_op=0) at ../src/nodeops.cc:478 (gdb) WHERE IS graphDump.txt closed? . . Exit dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:349 Ggroup::doDump (this=0x86f7e58) at ../src/graphobject.cc:1975 1975 break; Current language: auto; currently c++ (gdb) n 1980 currentlp = currentlp->next; (gdb) n 1944 while(currentlp) { (gdb) p* currentlp $21 = {object = 0x86d3a08, next = 0x0} (gdb) n 1946 DP; (gdb) p* currentlp $22 = {object = 0x86d3a08, next = 0x0} (gdb) n In doDump at ../src/graphobject.cc:1946 1947 ob = (graphobject *) currentlp->object; (gdb) n 1948 assert(ob!= NULL); (gdb) n 1949 rp = (hcg_ptr)(ob->getcurr()); (gdb) n 1950 obid = (hcg_key)(ob->getid()); (gdb) n 1952 tblabbr = get_abbr( (hcg_key*) &obid, abb ); //- RJL051210 (gdb) n 1954 assert (tblabbr!= NULL); (gdb) n 1955 dprints("doDump: tblabbr = %s; ", tblabbr); (gdb) n 1956 dprintd("objcount = %d\n",++objcount); (gdb) n doDump: tblabbr = HG; objcount = 2 1959 const char* tbltypes = "FO GD HG HN HA HL HP HI CG GX"; //bytes[0..29] (gdb) n 1960 tblidx = (int)( (strstr(tbltypes, tblabbr)-strstr(tbltypes, "FO") )/3) ; (gdb) . . . (gdb) n Enter dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:222 223 idx = encoding(tbl); /* identifies table type, to construct XXcurr below */ (gdb) n 240 switch(idx) { /* '{' added 060121 - multiple switch(idx) prefixes removed - RJL060120 */ (gdb) n 261 hcg_update_version(&HGcurr->HGid,idx,new_version); (gdb) n 262 DP;fprintf(stderr, "HGcurr->HGid = %ux\n", (unsigned int)(HGcurr->HGid)); (gdb) n In dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:262 HGcurr->HGid = 33554433x 263 decode((char*)dumpkey[0], &HGcurr->HGid); (gdb) n Exit decode at ../pr_util_nolog/i386-linux/probj/pr_load.c:637 264 PrintCheck(fprintf(dump_fp, " %-8s %-8s %-8s %-12s %-12s %-12s %-60s\n", (gdb) n 349 LP;} /* end dump_row */ (gdb) n Exit dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:349 Ggroup::doDump (this=0x86f7e58) at ../src/graphobject.cc:1966 1966 break; Current language: auto; currently c++ (gdb) n 1980 currentlp = currentlp->next; (gdb) n 1944 while(currentlp) { (gdb) n 1982 fclose(graphdump_fp); // Moved inside 'else' - RJL050831 (gdb) n 1984 LP;return; (gdb) n Exit doDump at ../src/graphobject.cc:1984 1985 } // end doDump (gdb) ======================== dump file closed: 8 -rw------- 1 lechner fac 219 Aug 23 01:26 graphDump.txt saturn.cs.uml.edu(70)> cat graphDump.txt Appending diagram to graphDump.txt CG000001 HG000001 450.0000 25.0000 200.0000 50.0000 HG000001 FS010000 HN010000 lechner 23AUG2006/01 23AUG2006/01 060823.dat (correct- have created only the graph title CG so far.) (gdb) bt 3 #0 Ggroup::doDump (this=0x86f7e58) at ../src/graphobject.cc:1985 #1 0x08067869 in node_move (event=0xfee3ddc0, state=18, attribute=0xfee3dae4, button_op=0) at ../src/nodeops.cc:478 #2 0x0804ce5f in dobuttonevent (w=0x86d0fb0, c=0x0, xevent=0xfee3ddc0) at ../src/buttonevent.cc:251 (More stack frames follow...) (gdb) ============================ After 2 HNs added (but perhaps no fclose): saturn.cs.uml.edu(70)> cat graphDump.txt Appending diagram to graphDump.txt CG000001 HG000001 450.0000 25.0000 200.0000 50.0000 HG000001 FS010000 HN010000 lechner 23AUG2006/01 23AUG2006/01 060823.dat saturn.cs.uml.edu(71)> lg graphDump.txt -rw------- 1 lechner fac 219 Aug 23 01:26 graphDump.txt saturn.cs.uml.edu(72)> cat graphDump.txt Appending diagram to graphDump.txt CG000001 HG000001 450.0000 25.0000 200.0000 50.0000 HG000001 FS010000 HN010000 lechner 23AUG2006/01 23AUG2006/01 060823.dat Appending diagram to graphDump.txt CG000001 HG000001 450.0000 25.0000 200.0000 50.0000 HG000001 FS010000 HN010000 lechner 23AUG2006/01 23AUG2006/01 060823.dat Appending diagram to graphDump.txt CG000001 HG000001 450.0000 25.0000 200.0000 50.0000 HG000001 FS010000 HN010000 lechner 23AUG2006/01 23AUG2006/01 060823.dat Appending diagram to graphDump.txt CG000001 HG000001 450.0000 25.0000 200.0000 50.0000 HG000001 FS010000 HN010000 lechner 23AUG2006/01 23AUG2006/01 060823.dat saturn.cs.uml.edu(73)> lg graphDump.txt -rw------- 1 lechner fac 876 Aug 23 01:30 graphDump.txt saturn.cs.uml.edu(74)> ... doDump: tblabbr = HN; objcount = 2 Breakpoint 1, dump_row (tbl=0x807fbec "HN", viewname=0x80941f0 "", dump_fp=0x874e318, file_name=0x8080792 "graphDump.txt", new_version=0, modestr=0x8080790 "a") at ../pr_util_nolog/i386-linux/probj/pr_dump.c:222 222 EP; // crashed in decode - inside encoding? #0 dump_row (tbl=0x807fbec "HN", viewname=0x80941f0 "", dump_fp=0x874e318, file_name=0x8080792 "graphDump.txt", new_version=0, modestr=0x8080790 "a") at ../pr_util_nolog/i386-linux/probj/pr_dump.c:222 #1 0x0805f6d3 in Ggroup::doDump (this=0x86f7e58) at ../src/graphobject.cc:1968 #2 0x08067869 in node_move (event=0xfee3ddc0, state=18, attribute=0xfee3dae4, button_op=0) at ../src/nodeops.cc:478 (gdb) . . . Node Move tests: seems to be inf-looping: --- Exit highlightrect at ../src/draw.cc:657 Exit highlight at ../src/graphobject.cc:843 Enter changeAttribState at ../src/smselect.cc:611 with new state code is 18 NewSTD:0x12=SMove <---subobjects = 0x86f8fd0x doDump: currenttlp->object->getcurr() = 0x8754110x doDump: currenttlp->object->getid() = 50331650x In doDump at ../src/graphobject.cc:1946 doDump: tblabbr = HN; objcount = 1 Enter dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:222 Exit decode at ../pr_util_nolog/i386-linux/probj/pr_load.c:637 Exit decode at ../pr_util_nolog/i386-linux/probj/pr_load.c:637 Exit dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:349 In doDump at ../src/graphobject.cc:1946 doDump: tblabbr = HN; objcount = 2 Enter dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:222 Exit decode at ../pr_util_nolog/i386-linux/probj/pr_load.c:637 Exit decode at ../pr_util_nolog/i386-linux/probj/pr_load.c:637 Exit dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:349 In doDump at ../src/graphobject.cc:1946 doDump: tblabbr = CG; objcount = 3 Enter dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:222 In dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:325 Exit decode at ../pr_util_nolog/i386-linux/probj/pr_load.c:637 In dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:327 Exit decode at ../pr_util_nolog/i386-linux/probj/pr_load.c:637 Exit dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:349 In doDump at ../src/graphobject.cc:1946 doDump: tblabbr = HG; objcount = 4 Enter dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:222 In dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:262 HGcurr->HGid = 33554433x Exit decode at ../pr_util_nolog/i386-linux/probj/pr_load.c:637 Exit dump_row at ../pr_util_nolog/i386-linux/probj/pr_dump.c:349 Exit doDump at ../src/graphobject.cc:1984 Exit node_move at ../src/nodeops.cc:593 Exit dobuttonevent at ../src/buttonevent.cc:456 ... =============== Node Move affects HN1 only, regardless of where on canvas mouse pointrs. Delta-mouse is pretty accurte. ================ saturn.cs.uml.edu(73)> lg graphDump.txt -rw------- 1 lechner fac 876 Aug 23 01:30 graphDump.txt saturn.cs.uml.edu(74)> lg graphDump.txt -rw------- 1 lechner fac 61882 Aug 23 01:37 graphDump.txt saturn.cs.uml.edu(75)> tail -20 graphDump.txt CG000001 HG000001 450.0000 25.0000 200.0000 50.0000 HG000001 FS010000 HN010000 lechner 23AUG2006/01 23AUG2006/01 060823.dat Appending diagram to graphDump.txt HN000002 HG000001 FS010000 R 123.0000 176.0000 100.0000 50.0000 Fixed 0.0000 0.0000 0 0 HN000001 HG000001 FS010000 R 201.0000 323.0000 100.0000 50.0000 Fixed 0.0000 0.0000 0 0 CG000001 HG000001 450.0000 25.0000 200.0000 50.0000 HG000001 FS010000 HN010000 lechner 23AUG2006/01 23AUG2006/01 060823.dat Appending diagram to graphDump.txt HN000002 HG000001 FS010000 R 123.0000 176.0000 100.0000 50.0000 Fixed 0.0000 0.0000 0 0 HN000001 HG000001 FS010000 R 201.0000 323.0000 100.0000 50.0000 Fixed 0.0000 0.0000 0 0 CG000001 HG000001 450.0000 25.0000 200.0000 50.0000 HG000001 FS010000 HN010000 lechner 23AUG2006/01 23AUG2006/01 060823.dat Appending diagram to graphDump.txt HN000002 HG000001 FS010000 R 123.0000 176.0000 100.0000 50.0000 Fixed 0.0000 0.0000 0 0 HN000001 HG000001 FS010000 R 201.0000 323.0000 100.0000 50.0000 Fixed 0.0000 0.0000 0 0 CG000001 HG000001 450.0000 25.0000 200.0000 50.0000 HG000001 FS010000 HN010000 lechner 23AUG2006/01 23AUG2006/01 060823.dat saturn.cs.uml.edu(76)> ========== CG Move works (scaled-up *2) THis is title caption (empty so far) ... Default case: Event etype 2: KeyPress is not logged Enter file_cb at ../src/menubar_cb.cc:147 Enter dosave at ../src/fileio.cc:2318 In dosave at ../src/fileio.cc:2329 Enter pr_dump at ../pr_util_nolog/i386-linux/probj/pr_dump.c:70 In pr_dump at ../pr_util_nolog/i386-linux/probj/pr_dump.c:87 Writing to dump file named "/usr/cs/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/test/tmp060823.dat1" (dumprow(): hcg_tbl_idx = 0, tslistIndex = 0 (dumprow(): hcg_tbl_idx = 1, tslistIndex = 0 (dumprow(): hcg_tbl_idx = 2, tslistIndex = 0 (dumprow(): hcg_tbl_idx = 3, tslistIndex = 0 (dumprow(): hcg_tbl_idx = 4, tslistIndex = 0 (dumprow(): hcg_tbl_idx = 5, tslistIndex = 0 (dumprow(): hcg_tbl_idx = 6, tslistIndex = 0 (dumprow(): hcg_tbl_idx = 7, tslistIndex = 0 (dumprow(): hcg_tbl_idx = 8, tslistIndex = 0 (dumprow(): hcg_tbl_idx = 9, tslistIndex = 0 Exit pr_dump at ../pr_util_nolog/i386-linux/probj/pr_dump.c:193 Exit dosave at ../src/fileio.cc:2337 Exit file_cb at ../src/menubar_cb.cc:172 -------------- File/Saveas tmp060823.dat above - failed (empty file so far) saturn.cs.uml.edu(76)> lst total 12144 12 drwxr-xr-- 4 lechner 05f523 8192 Aug 23 01:41 . 4 -rw------- 1 lechner fac 0 Aug 23 01:41 tmp060823.dat 4 -rw------- 1 lechner fac 0 Aug 23 01:41 tmp060823.dat1 ---------------- Exit w/o saving - is ignored.???? But stdin is disabled? CTRL-C exited: Program received signal SIGINT, Interrupt. 0x0065d7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 (gdb) ============== mercury(21)> lst lst total 12148 48 -rwxr-xr-- 1 lechner 05f523 42228 Aug 23 01:43 ST_EV_stats.txt 12 drwxr-xr-- 4 lechner 05f523 8192 Aug 23 01:41 . 4 -rw------- 1 lechner fac 0 Aug 23 01:41 tmp060823.dat 4 -rw------- 1 lechner fac 0 Aug 23 01:41 tmp060823.dat1 72 -rw------- 1 lechner fac 63950 Aug 23 01:38 graphDump.txt 8 -rw------- 1 lechner fac 213 Aug 23 01:08 cmds.060823 12 drwxr-xr-x 20 lechner 05f523 8192 Aug 23 00:52 .. 8 -rw-r--r-- 1 lechner fac 123 Aug 20 00:30 cmds.060820 ------------- Save this in bdegen13\bdetestnologlinux060823.0140