[now to lesstif@ only again]
Ok, some missing info I got via email frmo Rob. It contained additional stuff
which is not of major interest here. So I just cut out some pieces and
add 1-2 comments.
Referring to the XmTextSetString() call:
> 1) I commented it out and recompiled: no SIGSEGV error!
> The Results window is not cleared when clicked on <clear>,
> obviously. New fits will add text to the Results window,
> so the Results window is not become numb.
> So it must be in the XmTextSetString() routine, I suppose,
> the causes all of the problems.
[...]
On another machine [also an i86 linux] with a non-debug version of lesstif (0.90.0,
if I understood correctly), same crash.
> So I do the test without a newly compiled debug version of LessTif.
> Just a debug version of Grace. Don't know whether that's useful, but
> here is the debug report:
>
> GNU gdb 20000105
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for
> details.
> This GDB was configured as "i386-accel-linux"...
> (gdb) break clear_results
> Breakpoint 1 at 0x80c7182: file monwin.c, line 123.
> (gdb) run -sync
> Starting program: /home/lahaye/GRACE/grace-5.1.0/./src/xmgrace -sync
>
> Breakpoint 1, clear_results (data=0x0) at monwin.c:123
> 123 XmTextSetString(monText, "");
> (gdb) print *{XmTextWidget}monText
> $1 = {core = {self = 0x832ed08, widget_class = 0xe16ada0, parent =
> 0x832eb70,
> xrm_name = 267, being_destroyed = 0 '\000', destroy_callbacks =
> 0x832b900,
> constraints = 0x0, x = 0, y = 0, width = 578, height = 158,
> border_width = 0, managed = 1 '\001', sensitive = 1 '\001',
> ancestor_sensitive = 1 '\001', event_table = 0x832eea0, tm = {
> translations = 0x817bd28, proc_table = 0x8331548, current_state =
> 0x0,
> lastEventTime = 699230010}, accelerators = 0x0, border_pixel = 0,
> border_pixmap = 2, popup_list = 0x0, num_popups = 0,
> name = 0x81684d1 "monText", screen = 0x8170188, colormap = 33,
> window = 46139696, depth = 16, background_pixel = 53052,
> background_pixmap = 2, visible = 1 '\001',
> mapped_when_managed = 1 '\001'}, primitive = {foreground = 0,
> shadow_thickness = 2, top_shadow_color = 42455, top_shadow_pixmap =
> 2,
> bottom_shadow_color = 29679, bottom_shadow_pixmap = 2,
> highlight_thickness = 2, highlight_color = 0, highlight_pixmap = 2,
> help_callback = 0x0, user_data = 0x0, traversal_on = 1 '\001',
> highlight_on_enter = 0 '\000', have_traversal = 0 '\000',
> unit_type = 0 '\000', navigation_type = 1 '\001',
> highlight_drawn = 0 '\000', highlighted = 0 '\000',
> highlight_GC = 0x817bfe8, top_shadow_GC = 0x817c118,
> bottom_shadow_GC = 0x817c080}, text = {source = 0x83300e8,
> activate_callback = 0x0, focus_callback = 0x0,
> losing_focus_callback = 0x0, value_changed_callback = 0x0,
> modify_verify_callback = 0x0, wcs_modify_verify_callback = 0x0,
> motion_verify_callback = 0x0, gain_primary_callback = 0x0,
> lose_primary_callback = 0x0, value = 0xe153e16 "", wc_value = 0x0,
> margin_height = 5, margin_width = 5, cursor_position_x = 9,
> output_create = 0xe11e22c <_XmTextOutputCreate>,
> input_create = 0xe118160 <_XmTextInputCreate>, top_character = 50,
> bottom_position = 2147483647, cursor_position = 243,
> max_length = 2147483647, edit_mode = 0,
> auto_show_cursor_position = 1 '\001', editable = 0 '\000',
> verify_bell = 0 '\000', add_mode = 0 '\000', traversed = 0 '\000',
> in_redisplay = 0 '\000', needs_redisplay = 0 '\000',
> in_refigure_lines = 0 '\000', needs_refigure_lines = 0 '\000',
> in_setvalues = 0 '\000', in_resize = 0 '\000', in_expose = 0 '\000',
> highlight_changed = 0 '\000', pendingoff = 1 '\001', char_size = 1
> '\001',
> on_or_off = on, output = 0x832efe8, input = 0x83300c8,
> first_position = 0,
> last_position = 243, forget_past = 2147483647, force_display = -1,
> new_top = 0, last_top_char = 0, dest_position = 0, disable_depth =
> 0,
> pending_scroll = 0, total_lines = 12, top_line = 2, vsbar_scrolling
> = 0,
> number_lines = 10, maximum_lines = 16, line = 0x8331558, repaint = {
> number = 1, maximum = 1, range = 0x83304c8}, highlight = {number =
> 3,
> maximum = 32, list = 0x83303b0}, old_highlight = {number = 0,
> maximum = 1, list = 0x83304b8}, inner_widget = 0x832eeb8,
> line_table = 0x83302a8, table_size = 64, table_index = 0}}
> (gdb)
Reportedly OM doesn't show the bug ...
This call is making trouble not only on Rob's system, but other people
observe problems as well which are likely related. Citing from
a bug report for grace:
After pressing the CLEAR button in the Results window, any
further regressions/fits will not have their information logged in this
window.
This appears to be LessTif-Related since the linux build with gcc/LessTif
shows this
problem, but the Solaris build with cc/Motif does not. Does anyone else
see this
behaviour?
----"Broken Build"----
Grace-5.1.0
GUI toolkit: @(#)GNU/LessTif Version 1.2 Release 0.89.4
This report can be confirmed by me with both grace and lesstif from CVS.
Rob's system is probably just a bit more picky and decides to crash a bit
earlier ;-)
--
Alexander Mai
[EMAIL PROTECTED]