[96] in Zephyr_Comments
zephyr library (6.0R)
daemon@ATHENA.MIT.EDU (Tom Coppeto)
Sun Sep 18 01:50:19 1988
To: vs-testers@ATHENA.MIT.EDU
Cc: zephyr-comments@ATHENA.MIT.EDU
Date: Sun, 18 Sep 88 01:48:28 EDT
From: Tom Coppeto <tjcoppet@ATHENA.MIT.EDU>
Any reason why ZSendNotice() should return a value of -772103670
when there is no host manager running? Is there a problem with this
function when there is no host manager running?
It seems to ge by when I call the function in a stand alone program but as
soon as it is called from within olcd, it bombs (and it's the same code
with no global/local screwups). You can take a look in
/mit/olcdev/src/olcd_io.c for a reference. Here's the dbx version of the
story...
Bus error in botch at 0x71cc
000071cc clrl
(dbx) where
botch(0x17453) at 0x71cc
free(0x7fffb770) at 0x6f45
Z_SendFragmentedNotice(0x7fffbc2c, 0xfa, 0x94f6) at 0x94c1
ZSrvSendNotice(0x7fffbfb8, 0x0, 0x94f6) at 0x8457
ZSendNotice(0x7fffbfb8, 0x0) at 0x8404
zsend(notice = 0x7fffbfb8), line 371 in "olcd_io.c"
zsend_message(class = "Message", instance = "Personal", opcode = "", username =
"tjcoppet", message = "Hello World"), line 351 in "olcd_io.c"
The notice before the call to ZSendNotice():
(z_packet = (nil), z_version = (nil), z_kind = ACKED, z_uid = (zuid_addr =
(s_addr = 0), tv = (tv_sec = 0, tv_usec = 0)), z_time = (tv_sec = 0,
tv_usec = 0), z_port = 0, z_auth = 0, z_authent_len = 0, z_ascii_authent =
(nil), z_class = "Message", z_class_inst = "Personal", z_opcode = "opcode",
z_sender = "OLC_daemon", z_recipient = "tjcoppet", z_default_format =
"Message from $sender at $time:\n\n $message", z_multinotice = (nil),
z_multiuid = (zuid_addr = (s_addr = 0), tv = ( tv_sec = 0, tv_usec = 0)),
z_checksum = 0, z_num_other_fields = 0, z_other_field s = ((nil), (nil),
(nil), (nil), (nil), (nil), (nil), (nil), (nil), (nil)), z_message =
"Hello World", z_message_len = 12)
And after the call:
(z_packet = (nil), z_version = "ZEPH0.2", z_kind = ACKED, z_uid =
(zuid_addr = (s_addr = 1996507154), tv = (tv_sec = 1431122723, tv_usec =
807079680)), z_time = (tv_sec = 0, tv_usec = 0), z_port = 0, z_auth = 0,
z_authent_len = 0, z_ascii_authent = "", z_class = "Message", z_class_inst
= "Personal", z_opcode = "opcode" , z_sender = "OLC_daemon", z_recipient =
"tjcoppet", z_default_format = "Message from $sender at
$time:\n\n$message", z_multinotice = "", z_multiuid = (zuid_add r = (s_addr
= 1996507154), tv = (tv_sec = 1431122723, tv_usec = 807079680)), z_checksum
= 0, z_num_other_fields = 0, z_other_fields = ((nil), (nil), (nil), (nil),
(nil), (nil), (nil), (nil), (nil), (nil)), z_message = "Hello World",
z_message_len = 12)
Everything is just peachy when the host manager responds.
- Tom