[comp.mail.mush] Mushtool coredumps on Click-Right on COMPOSE button

rsalz@bbn.com (Rich Salz) (12/16/89)

Bring up Mushtool 7.1 on a Sun3/50 running SunOS3.5.   Click left on
the COMPOSE button, then in the compose window click right on COMPOSE
to get help.  Instead get a core dump:
prune 30% ./mushtool
pr_open: open failed for /dev/fb
mushtool: Segmentation violation
IOT trap (core dumped)
prune 31% adb ./mushtool
core file = core -- program ``mush''
SIGIOT 6: abort
$c
_kill(?)
_abort() + 6
_cleanup(0xb) + 26c
_bus_n_seg(0xb,0x0,0xeffe274) + 4c
__sigtramp() + 26
_wmgr_winandchildrenexposed(0x0,0xeffe30c) + 10
_wmgr_changelevelonly(0x1a,0x1d,0x1) + 4c
_window_set_avlist(0x1579d8,0xeffe3c0) + 55c
_window_set(0x157c04,0x4a2f0901,0x1,0x4b2a0901,0x1,0x4b280a61,0x604c4,0x0) + 134
_do_pager(0x0,0x0) + 2f2
_help(0x0,0xe28d0,0x13550c) + 190
_do_compose(0x1434cc,0x0,0x10a4a6) + 22
_update_preview(0x1434cc,0x10a4a6) + 138
_update_preview(0x1434cc,0x10a4a6) + 1ca
_panel_accept_menu() + 28
_panel_default_handle_event(0x1434cc,0x10a4a6) + ca
_panel_handle_event(0x1434cc,0x10a4a6) + 1c
_panel_default_event(0x1430cc,0x10a4a6,0x0) + 94
_panel_use_event(0x1430cc,0x10a4a6,0x0) + 26e
_panel_notify_event(0x1430cc,0x10a4a6,0x0,0x0) + fe
_ndet_p_event(0x1430cc,0x10a4a6,0x9,0x0,0x8ab4c,0x8ab88,0xefff178) + a6
_notify_post_event_and_arg(0x1430cc,0x10a4a6,0x0,0x0,0x8ab4c,0x8ab88) + 3e
_win_send(0x14337c,0x10a4a6,0x0,0x0,0x8ab4c,0x8ab88) + 70
_input_pending(0x1430cc,0x13) + 94
_notify_fd(0x1430cc,0x13,0x1) + 4e
_notify_input(0x1430cc,0x13) + 10
_ndis_send_ascending_fd(0x1430cc,0x20,0xefff2a0,0x9333c) + 28
_ndis_default_prioritizer(0x1430cc,0x20,0xefff2a0,0xefff29c,0xefff298,0x20,0xefff2a8,0xefff2a4,0xfab74,0x0,0x0)  + 102
_notify_client(0x1430cc) + 23e
_ndis_default_scheduler(0x1,0x1357f8) + 1a
_ndis_dispatch() + 90
_notify_start() + 2cc
_window_main_loop(0x107698) + 56
_main(0x2,0x13550c,0xefffbd4) + b24
-- 
Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.

schaefer@ogicse.ogc.edu (Barton E. Schaefer) (12/16/89)

In article <2215@prune.bbn.com> rsalz@bbn.com (Rich Salz) writes:
} Bring up Mushtool 7.1 on a Sun3/50 running SunOS3.5.   Click left on
} the COMPOSE button, then in the compose window click right on COMPOSE
} to get help.  Instead get a core dump:

What follows is an UNOFFICIAL, TENTATIVE patch for this problem.  I can't
test it, but if any of you running SunOS 3.5 would care to try it out and
let me know what happens, perhaps we can get an official fix going.

*** /tmp/,RCSt1010215	Fri Dec 15 19:05:52 1989
--- execute.c	Fri Dec 15 12:42:48 1989
***************
*** 66,72 ****
--- 66,76 ----
  {
      print("Starting \"%s\"...\n", *argv);
      msg_rect = *(Rect *)window_get(msg_sw, WIN_RECT);
+ #ifdef ALERT_ATTR /* SunOS 4.0+ */
      window_set(msg_sw, WIN_SHOW, FALSE, NULL);
+ #else /* ALERT_ATTR */
+     textsw_set(msg_sw, WIN_SHOW, FALSE, NULL);
+ #endif /* ALERT_ATTR */
      (void) window_set(tty_sw,
  	WIN_RECT,	&msg_rect,
  	TTY_ARGV,	argv,
*** /tmp/,RCSt1010215	Fri Dec 15 19:06:06 1989
--- misc.c	Fri Dec 15 12:45:26 1989
***************
*** 445,455 ****
--- 445,465 ----
  		NULL);
  	    if (ison(glob_flags, NEW_FRAME)) {
  		turnoff(glob_flags, NEW_FRAME);
+ #ifdef ALERT_ATTR /* SunOS 4.0+ */
  		window_set(window_get(sw, TEXTSW_CLIENT_DATA),
  		    WIN_SHOW,		TRUE,
  		    FRAME_NO_CONFIRM,	TRUE,
  		    FRAME_DONE_PROC,	window_destroy,
  		    NULL);
+ #else /* ALERT_ATTR */
+ 		textsw_set(window_get(sw, TEXTSW_CLIENT_DATA),
+ 		    WIN_SHOW,		TRUE,
+ 		    NULL);
+ 		window_set(window_get(sw, TEXTSW_CLIENT_DATA),
+ 		    FRAME_NO_CONFIRM,	TRUE,
+ 		    FRAME_DONE_PROC,	window_destroy,
+ 		    NULL);
+ #endif /* ALERT_ATTR */
  	    }
  	    if (unlink(file) == -1)
  		error("Cannot unlink %s", file);
-- 
Bart Schaefer     "Miserable miscreant!  Question MY integrity, will you?"
               "I have to see some *evidence* of it before I can question it."
                                                            -- Calvin & Hobbes
schaefer@cse.ogi.edu (used to be cse.ogc.edu)