Rick Scott <[EMAIL PROTECTED]> writes:

> These seem to be comments that seem to have found a solution that is
> happy with LessTif and Motif. However, if it's not correct we should
> attempt to fix it. Some sounded sort of trivial (famous last words).

Here is one that works with Motif but not with LessTif:

In xfaces.c, change the #if 0 in function
xm_set_menu_resources_from_menu_face to #if 1, so that the code
creating the font list gets compiled in.

diff -c -r1.1 xfaces.c
*** xfaces.c    2001/03/13 13:09:39     1.1
--- xfaces.c    2001/03/13 13:10:03
***************
*** 4430,4436 ****
          || !UNSPECIFIEDP (LFACE_SLANT (lface))
          || !UNSPECIFIEDP (LFACE_HEIGHT (lface))))
      {
! #if 0 /* Setting the font leads to an infinite loop somewhere
         in LessTif during geometry computation.  */
        XmFontListEntry fe;
        fe = XmFontListEntryCreate ("menu_font", XmFONT_IS_FONT, face->font);
--- 4430,4436 ----
          || !UNSPECIFIEDP (LFACE_SLANT (lface))
          || !UNSPECIFIEDP (LFACE_HEIGHT (lface))))
      {
! #if 1 /* Setting the font leads to an infinite loop somewhere
         in LessTif during geometry computation.  */
        XmFontListEntry fe;
        fe = XmFontListEntryCreate ("menu_font", XmFONT_IS_FONT, face->font);

Start Emacs 

  $ gdb ./emacs
  (gdb) set args --eval "(set-face-attribute 'menu nil :height 160)"
  (gdb) run

Emacs starts up, but is unresponsive.  Stopping it in GDB with C-z
gives

Program received signal SIGTSTP, Stopped (user).
0x2857eb36 in strcat () from /usr/lib/libc.so.4
(gdb) bt 10
#0  0x2857eb36 in strcat () from /usr/lib/libc.so.4
#1  0x28335840 in o1.88 () from /gd/gnu/lesstif/lib/libXm.so.2
#2  0x2820de1b in _XmMakeGeometryRequest (w=0x861d408, desired=0xbfbfe5f8)
    at GeoUtils.c:2111
#3  0x28247521 in _XmRCAdjustSize (rc=0x861d408, instig=0x8627e08, 
    instig_request=0xbfbfe7f8) at RCUtils.c:1651
#4  0x28250fb9 in geometry_manager (w=0x8627e08, request=0xbfbfe810, 
    reply=0xbfbfe7f8) at RowColumn.c:1434
#5  0x281cb8cf in GeometryHandlerWrapper (w=0x8627e08, request=0xbfbfe810, 
    reply=0xbfbfe7f8, IntentedWrapperDepth=6) at BaseClass.c:1349
#6  0x281caaca in GeometryHandlerWrapper6 (w=0x8627e08, request=0xbfbfe810, 
    reply=0xbfbfe7f8) at BaseClass.c:605
#7  0x283646f9 in _XtMakeGeometryRequest () from /usr/X11R6/lib/libXt.so.6
#8  0x28375e6a in XtSetValues () from /usr/X11R6/lib/libXt.so.6
#9  0x809b3a9 in xm_apply_resources (w=0x8627e08, p=0xbfbff0d8)
    at xfaces.c:4381
(More stack frames follow...)

Continuing and stopping it again:

(gdb) bt 20
#0  0x2859681c in write () from /usr/lib/libc.so.4
#1  0x284c3097 in _X11TransSocketWrite () from /usr/X11R6/lib/libX11.so.6
#2  0x284c3bff in _X11TransWrite () from /usr/X11R6/lib/libX11.so.6
#3  0x284a94d6 in _XFlushInt () from /usr/X11R6/lib/libX11.so.6
#4  0x284a940c in _XFlush () from /usr/X11R6/lib/libX11.so.6
#5  0x284a2a3a in XConfigureWindow () from /usr/X11R6/lib/libX11.so.6
#6  0x2837821c in RootGeometryManager () from /usr/X11R6/lib/libXt.so.6
#7  0x283646f9 in _XtMakeGeometryRequest () from /usr/X11R6/lib/libXt.so.6
#8  0x28364a1d in XtMakeGeometryRequest () from /usr/X11R6/lib/libXt.so.6
#9  0x2820dec7 in _XmMakeGeometryRequest (w=0x85d7908, desired=0xbfbfe3ec)
    at GeoUtils.c:2139
#10 0x28230690 in geometry_manager (w=0x861d408, request=0xbfbfe5f8, 
    reply=0xbfbfe5b0) at MenuShell.c:419
#11 0x281cb8cf in GeometryHandlerWrapper (w=0x861d408, request=0xbfbfe5f8, 
    reply=0xbfbfe5b0, IntentedWrapperDepth=6) at BaseClass.c:1349
#12 0x281caaca in GeometryHandlerWrapper6 (w=0x861d408, request=0xbfbfe5f8, 
    reply=0xbfbfe5b0) at BaseClass.c:605
#13 0x283646f9 in _XtMakeGeometryRequest () from /usr/X11R6/lib/libXt.so.6
#14 0x28364a1d in XtMakeGeometryRequest () from /usr/X11R6/lib/libXt.so.6
#15 0x2820dec7 in _XmMakeGeometryRequest (w=0x861d408, desired=0xbfbfe5f8)
    at GeoUtils.c:2139
#16 0x28247521 in _XmRCAdjustSize (rc=0x861d408, instig=0x8627e08, 
    instig_request=0xbfbfe7f8) at RCUtils.c:1651
#17 0x28250fb9 in geometry_manager (w=0x8627e08, request=0xbfbfe810, 
    reply=0xbfbfe7f8) at RowColumn.c:1434
#18 0x281cb8cf in GeometryHandlerWrapper (w=0x8627e08, request=0xbfbfe810, 
    reply=0xbfbfe7f8, IntentedWrapperDepth=6) at BaseClass.c:1349
#19 0x281caaca in GeometryHandlerWrapper6 (w=0x8627e08, request=0xbfbfe810, 
    reply=0xbfbfe7f8) at BaseClass.c:605
(More stack frames follow...)

Same again

(gdb) bt 20
#0  0x2858e865 in vfprintf () from /usr/lib/libc.so.4
#1  0x285813ad in sprintf () from /usr/lib/libc.so.4
#2  0x281de535 in XdbWidgetGeometry2String (g=0x85dc49c) at DebugUtil.c:879
#3  0x28246060 in _XmRCGetKidGeo (w=0x861d408, instig=0x8627e08, 
    instig_request=0xbfbfe7f8, uniform_border=0, border=0, 
    uniform_width_margins=0, uniform_height_margins=0, help=0x0, toc=0x0, 
    geoType=2) at RCUtils.c:1239
#4  0x28247295 in _XmRCAdjustSize (rc=0x861d408, instig=0x8627e08, 
    instig_request=0xbfbfe7f8) at RCUtils.c:1554
#5  0x28250fb9 in geometry_manager (w=0x8627e08, request=0xbfbfe810, 
    reply=0xbfbfe7f8) at RowColumn.c:1434
#6  0x281cb8cf in GeometryHandlerWrapper (w=0x8627e08, request=0xbfbfe810, 
    reply=0xbfbfe7f8, IntentedWrapperDepth=6) at BaseClass.c:1349
#7  0x281caaca in GeometryHandlerWrapper6 (w=0x8627e08, request=0xbfbfe810, 
    reply=0xbfbfe7f8) at BaseClass.c:605
#8  0x283646f9 in _XtMakeGeometryRequest () from /usr/X11R6/lib/libXt.so.6
#9  0x28375e6a in XtSetValues () from /usr/X11R6/lib/libXt.so.6
#10 0x809b3a9 in xm_apply_resources (w=0x8627e08, p=0xbfbff0d8)
    at xfaces.c:4381
#11 0x8169b3e in XtApplyToWidgets (w=0x861d408, 
    proc=0x809b384 <xm_apply_resources>, arg=0xbfbff0d8) at lwlib-utils.c:87
#12 0x809b3e8 in xm_apply_resources (w=0x863d408, p=0xbfbff0d8)
    at xfaces.c:4386
#13 0x8169b3e in XtApplyToWidgets (w=0x8574a08, 
    proc=0x809b384 <xm_apply_resources>, arg=0xbfbff0d8) at lwlib-utils.c:87
#14 0x809b550 in xm_set_menu_resources_from_menu_face (f=0x851ce08, 
    widget=0x8574a08) at xfaces.c:4451

etc.

Reply via email to