From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,9035d88ef92c554d,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-09-17 16:02:48 PST Newsgroups: comp.sys.dec Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!ames!sgi!wdl1!mail!patel!patel From: patel@lds.loral.com (Bharat Patel) Subject: Ultrix 4.2 and Motif Problem. Help! Message-ID: <1993Sep17.190401.10613@lds.loral.com> Keywords: Motif, Hightlight, SelectionBox Sender: news@lds.loral.com Reply-To: patel@lds.loral.com Organization: LORAL Data Systems Date: Fri, 17 Sep 1993 19:04:01 GMT Help! I am having the following problem on DEC Ultrix 4.1 and 4.2 running X11 R4 Motif 1.1 from DEC. The same code does not crash on SunOs, HP UX, or IBM AIX. I suspect this may be a DEC bug! I have the following hierarchy: Top Level Shell, Scrolled Window, Form, Selection Box The S/W fills the Selection Box widget with some lines. My application allows the operator to highlight a line in the widget and perform edits on the line is a popup dialog. Other actions such as database saves occur in the application. When the user tries to highlight another item in the list, the application crashes. The crash is random. That is the same NUMBER of user actions do not necessarily cause a seg fault. Sometimes it occurs right away, and other times it takes a few user actions on the selection box. Since the problem is not repeatable on other platforms, I do not know if it is our application code or DEC Motif. I suspected a memory overwrite problem in our application code, however, running with Sentinel - the debugging environment - on the Sun does not show any memory problems. Of course, I cannot get it to crash on the Sun with Sentinel! The following is a stack trace when the program seg faults. Regardless of the crash, the problem always occurs during a DrawHighlight. If anyone has had problems with the Selection Box on the DEC, your response is appreciated. Thanks in advance. Please email your suggestions directly to patel@lds.loral.com. Bus error [DrawHighlight:2070 +0x20,0x59c3b8] (dbx) where > 0 DrawHighlight(0x7fffad48, 0x1, 0x58b060, 0x1025c364, 0x624610) ["List.c":2070, 0x59c3b8] 1 ListFocusIn(0x7fffad6c, 0x0, 0x7fffa910, 0x1, 0x501cfc) ["List.c":4362, 0x5a0dd8] 2 _XtTranslateEvent(0x1016e278, 0x7fffaf7c, 0x7fffa9b0, 0x7fffa7f8, 0x1016e248) ["TMstate.c":1186, 0x62460c] 3 DispatchEvent(0x64fdd4, 0x10240bc0, 0x61b3f4, 0x53, 0x61f114) ["Event.c":616, 0x61bcdc] 4 _XtSendFocusEvent(0x9, 0x28, 0x61f24c, 0x1025f480, 0x10503008) ["Event.c":1276, 0x61cd9c] 5 AddFocusHandler(0x1016e248, 0x1025f480, 0x10159d6c, 0x0, 0x10159d6c) ["Keyboard.c":699, 0x630a84] 6 XtSetKeyboardFocus(0x1016e248, 0x0, 0x1016e270, 0x1016e2e8, 0x1016e248) ["Keyboard.c":803, 0x630e88] 7 TraverseToChild(0x0, 0x1016e2b9, 0x1016e2ee, 0x173008c, 0x5c0540) ["Traversal.c":1884, 0x5c0b78] 8 Traversal.Start(0x1016e248, 0x1016e248, 0x276, 0x100e181c, 0x5c1810) ["Traversal.c":1582, 0x5c05c8] 9 _XmMgrTraversal(0x0, 0x7ffffdee, 0x5cbd7c, 0x16, 0x59f9dc) ["Traversal.c":1549, 0x5c053c] 10 XmProcessTraversal(0x7fffb038, 0x482, 0xa30270, 0x100ded28, 0xc000d3) ["Traversal.c":2395, 0x5c180c] More (n if no)? y 11 SelectElement(0x7fffb4d0, 0x0, 0x7fffb000, 0x7fffb03c, 0x61bdf8) ["List.c":3624, 0x59f9d8] 12 _XtTranslateEvent(0x1016e278, 0x102c9900, 0x7fffb0a0, 0x102ccf80, 0x7fffb4d0) ["TMstate.c":1186, 0x62460c] 13 DispatchEvent(0x1016e248, 0x4, 0x10159d6c, 0x0, 0x61c5ec) ["Event.c":616, 0x61bcdc] 14 DecideToDispatch(0x100dddf0, 0x4436b0, 0x44349c, 0x100dddf0, 0x61c988) ["Event.c":960, 0x61c518] 15 XtDispatchEvent(0x7fffb4d0, 0x7fffbd78, 0x400554, 0xc, 0x426) ["Event.c":999, 0x61c5e8] 16 XtAppMainLoop(0xc000c1, 0x0, 0x10046610, 0x2, 0x0) ["Event.c":1134, 0x61c984] 17 main(argc = 2, argv = 0x7fffbd94) ["mnpupdt.c":131, 0x400594] (dbx) quit