[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2356.0. "Crash in DEC Intrinsics under Ultrix" by PWDVL::BERNEIS (Michael B. Berneis) Mon Feb 26 1990 12:48

I am using XtAddInput to monitor a DECNET connection to VMS and to get
notified when a new package arrives. This works fine so far.

But when the VMS side stops the DECNET connection, my program crashes
in the Intrinsics:

(dbx) run
pid 3316 (dxpw) was killed on unaligned access, at pc 0x446810

Bus error [DoOtherSources:676 ,0x446810]
         Source not available
(dbx)
 
An earlier (pure XLib) version of my program used a select on 
ConnectionNumber(display) and the DECNET channel and I did my own dispatching.
Now that I use the Toolkit I get this problem...

Any idea how I can avoid that crash ???

PS: I use the filedescriptor of dnet_connect and XtInputReadMask in my
call to XtAddInput.
T.RTitleUserPersonal
Name
DateLines
2356.1FLUME::dikeMon Feb 26 1990 13:344
Are you calling XtRemoveInput from within the callback routine?  It is my
recollection that that is a bad thing to do.  I have registered a work proc
from inside the callback, and called XtRemoveInput from there.
				Jeff
2356.2That was it.PWDVL::BERNEISMichael B. BerneisMon Feb 26 1990 15:354
You are absolutely correct, that was the problem!
Thanks again...

mike