home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!ulowell!cs.ulowell.edu!vprakash
- From: vprakash@cs.ulowell.edu (V G Prakash)
- Subject: UIL/Motif program crashes: Weird reasons
- Message-ID: <C0IJLC.8Lr@ulowell.ulowell.edu>
- Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
- Organization: University of Massachusetts at Lowell Computer Science
- Date: Fri, 8 Jan 1993 02:15:11 GMT
- Lines: 91
-
- Hai,
- I have an application program based on UIL. All the widgets are created
- using UIL. For some peculiar reasons the program crashes.
- The program does not have any functions other than managing the interface.
-
- I have enclosed a partial list of crashes that I have encountered.
-
- Hope to get some usefull suggestions.
-
- Some observations:
-
- 1. It does not crash always.
- 2. The event at which it crashed changes.
- 3. Most of crashes happen at the time of
- 1. managing some dialog boxes
- 2. changing from very most lengthy pulldown menu
- and to a new short pulldown menu.
- 4. It always happens only at first occurrence of the event and
- if does not crash for the first time then it would never.
-
- 5. gdb points to malloc for all crashes.
-
- 6. This started happening when I gave defined the fontname. There is
- nothing wrong with this font. Because it does load this font and
- I can use for writing on text widgets.
-
- ---------------------------------------------------------------------
-
- Error1:
- event: When I clicked pushbutton for the first time.
- This should have managed an exit dialog widget.
-
- (gdb) where
- #0 malloc () at ../malloc.c:623
- #1 0x4d07a8 in XtMalloc ()
- #2 0x404a18 in UrmGetResourceContext () at Mrmcontext.c:214
- #3 0x408064 in Urm__CW_ReadLiteral () at Mrmwcrw.c:1911
- #4 0x406e30 in Urm__CW_CreateArglist () at Mrmwcrw.c:872
- #5 0x4068a8 in UrmCreateWidgetInstance () at Mrmwcrw.c:572
- #6 0x406380 in UrmCreateWidgetTree () at Mrmwcrw.c:265
- #7 0x404314 in MrmFetchWidgetOverride () at Mrmappl.c:819
- #8 0x404134 in MrmFetchWidget () at Mrmappl.c:679
- #9 0x400964 in VUIT_Manage (widget_name=0x10036b20 "exitbox") at utils.c:153
- #10 0x402234 in exitbde_callback (w=0x10082800, tag=0x1004c878,
- reason=0x7fffb7d0) at callbk_exit.c:73
- #11 0x4d6834 in XtCallCallbackList ()
- #12 0x46bc38 in ActivateCommon () at PushB.c:564
- #13 0x46b9c4 in Activate () at PushB.c:499
-
- ---------------------------------------------------------------------
-
- Error2:
-
- event: I clicked on to Drawing Area, an error dialog should have appeared.
- But instead it crashes.
-
- crash message (type 1):
- Fixed up unaligned data access for pid 11232 (bde) at pc 0x5365b0
-
-
- (gdb) where
- #0 _XmStringLineHeight () at XmString.c:2465
- #1 0x418f00 in _XmStringHeight () at XmString.c:2521
- #2 0x418f84 in _XmStringExtent () at XmString.c:2544
- #3 0x423af0 in SetSize () at LabelG.c:1013
- #4 0x42548c in SetValues () at LabelG.c:1826
- #5 0x4d7030 in XtGetSubvalues ()
-
- crash message (type 2):
- pid 11239 (bde) was killed on an unaligned access, at pc 0x5365ac
-
- (gdb) where
- #0 malloc () at ../malloc.c:623
- #1 0x536834 in realloc () at ../malloc.c:791
- #2 0x4d085c in XtRealloc ()
- #3 0x41a040 in new_line () at XmString.c:3239
- #4 0x41a324 in _XmStringNonOptCreate () at XmString.c:3393
- #5 0x41a508 in _XmStringCreate () at XmString.c:3479
- #6 0x424f6c in SetValues () at LabelG.c:1693
- #7 0x4d7030 in XtGetSubvalues ()
- _
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- /*************************************************************\
- /* *\
- /* V.G.Prakash Ph: off: 508-934-3613 *\
- /* home: 508-454-5286 *\
- /* Research Engineer *\
- /* Graphics Research Laboratory *\
- /* University of Massachussets * Lowell *\
- /* Lowell, MA 01854 *\
- /*************************************************************\
-