home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / motif / 8420 < prev    next >
Encoding:
Text File  |  1993-01-07  |  3.9 KB  |  102 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!ulowell!cs.ulowell.edu!vprakash
  3. From: vprakash@cs.ulowell.edu (V G Prakash)
  4. Subject: UIL/Motif program crashes: Weird reasons
  5. Message-ID: <C0IJLC.8Lr@ulowell.ulowell.edu>
  6. Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
  7. Organization: University of Massachusetts at Lowell Computer Science
  8. Date: Fri, 8 Jan 1993 02:15:11 GMT
  9. Lines: 91
  10.  
  11. Hai,
  12.     I have an application program based on UIL. All the widgets are created
  13.     using UIL. For some peculiar reasons the program crashes. 
  14.     The program does not have any functions other than managing the interface. 
  15.  
  16.     I have enclosed a partial list of crashes that I have encountered.
  17.  
  18.     Hope to get some usefull suggestions.
  19.  
  20.     Some observations:
  21.  
  22.     1. It does not crash always.
  23.     2. The event at which it crashed changes. 
  24.     3. Most of crashes happen at the time of 
  25.        1. managing some dialog boxes
  26.        2. changing from very most lengthy pulldown menu 
  27.            and to a new short pulldown menu. 
  28.      4. It always happens only at first occurrence of the event  and 
  29.        if does not crash for the first time then it would never.
  30.  
  31.      5. gdb points to malloc for all crashes. 
  32.  
  33.     6. This started happening when I gave defined the fontname. There is
  34.        nothing wrong with this font. Because it does load this font and
  35.        I can use for writing on text widgets.
  36.  
  37. ---------------------------------------------------------------------
  38.  
  39. Error1: 
  40.      event: When I clicked pushbutton for the first time.
  41.            This should have managed an exit dialog widget.
  42.  
  43. (gdb) where
  44. #0  malloc () at ../malloc.c:623
  45. #1  0x4d07a8 in XtMalloc ()
  46. #2  0x404a18 in UrmGetResourceContext () at Mrmcontext.c:214
  47. #3  0x408064 in Urm__CW_ReadLiteral () at Mrmwcrw.c:1911
  48. #4  0x406e30 in Urm__CW_CreateArglist () at Mrmwcrw.c:872
  49. #5  0x4068a8 in UrmCreateWidgetInstance () at Mrmwcrw.c:572
  50. #6  0x406380 in UrmCreateWidgetTree () at Mrmwcrw.c:265
  51. #7  0x404314 in MrmFetchWidgetOverride () at Mrmappl.c:819
  52. #8  0x404134 in MrmFetchWidget () at Mrmappl.c:679
  53. #9  0x400964 in VUIT_Manage (widget_name=0x10036b20 "exitbox") at utils.c:153
  54. #10 0x402234 in exitbde_callback (w=0x10082800, tag=0x1004c878, 
  55.     reason=0x7fffb7d0) at callbk_exit.c:73
  56. #11 0x4d6834 in XtCallCallbackList ()
  57. #12 0x46bc38 in ActivateCommon () at PushB.c:564
  58. #13 0x46b9c4 in Activate () at PushB.c:499
  59.  
  60. ---------------------------------------------------------------------
  61.  
  62. Error2: 
  63.     
  64. event: I clicked on to Drawing Area, an error dialog should have appeared.
  65.         But instead it crashes.
  66.  
  67. crash message (type 1):
  68. Fixed up unaligned data access for pid 11232 (bde) at pc 0x5365b0
  69.  
  70.  
  71. (gdb) where
  72. #0  _XmStringLineHeight () at XmString.c:2465
  73. #1  0x418f00 in _XmStringHeight () at XmString.c:2521
  74. #2  0x418f84 in _XmStringExtent () at XmString.c:2544
  75. #3  0x423af0 in SetSize () at LabelG.c:1013
  76. #4  0x42548c in SetValues () at LabelG.c:1826
  77. #5  0x4d7030 in XtGetSubvalues ()
  78.  
  79. crash message (type 2):
  80. pid 11239 (bde) was killed on an unaligned access, at pc 0x5365ac 
  81.  
  82. (gdb) where
  83. #0  malloc () at ../malloc.c:623
  84. #1  0x536834 in realloc () at ../malloc.c:791
  85. #2  0x4d085c in XtRealloc ()
  86. #3  0x41a040 in new_line () at XmString.c:3239
  87. #4  0x41a324 in _XmStringNonOptCreate () at XmString.c:3393
  88. #5  0x41a508 in _XmStringCreate () at XmString.c:3479
  89. #6  0x424f6c in SetValues () at LabelG.c:1693
  90. #7  0x4d7030 in XtGetSubvalues ()
  91. _
  92. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  93. /*************************************************************\
  94. /*                                                           *\
  95. /* V.G.Prakash            Ph: off:  508-934-3613             *\ 
  96. /*                           home:  508-454-5286             *\
  97. /* Research Engineer                                         *\
  98. /* Graphics Research Laboratory                              *\
  99. /* University of Massachussets  *  Lowell                     *\
  100. /* Lowell, MA 01854                                          *\
  101. /*************************************************************\
  102.