From: hennecke@microelectronic.e-technik.th-darmstadt.de (Marcus Hennecke)
Newsgroups: comp.soft-sys.khoros
Subject: Plot Data-subform crashes
Date: 12 Aug 92 08:48:13 GMT

Hello Khoros-users,

we have installed KHOROS on our sun2's and everything worked fine until...
I still can't understand why I did such a stupid thing.

Anyway, what I did is this: I had cantata running. In a cmdtool window
I typed:
    % cd $KHOROS_HOME/repos/cantata/subforms/output_plot
    % mv plot.sub plt.sub

Then I tried to select the `Plot Data' subform in the `OUTPUT' menu. I
expected it to either work without problem or print an error message that
the file could not be found. However, instead it complained about some
lines being erronuous. It also printed these offending lines but they
contained only non-ASCII garbage. After that I typed:
    % mv plt.sub plot.sub
thinking this would change everything back to normal, but when I selected
the `Plot Data' subform again, cantata crashed with cantata error 51 and
a segmentation violation. Cantata also crashed when xprism2 or xprism3
where selected from the `ROUTINES' menu. However, the subforms could be
displayed and used with the `UIS Filename' button in the `File Utilities'
subform and also with the previewer. All other subforms could be selected
without any problems.
What makes the crashes really strange is this: Everything works fine again
when the number of guide pane buttons in our self-made toolbox is either
reduced by at least one or increased by several buttons. Our current
work-around is this: we have simply doubled the number of guide pane buttons
in our toolbox subform (currently, there is only one), so that each button
is there twice. However, this is not a very satisfying solution. What could
have gone wrong? Looking at the modification dates of all files in the 
KHOROS home directory showed that no file has been modified that should not 
have been. The plot.sub file seems to be o.k. and the xprism?.pane files
look good, too.
We are running KHOROS 1.0, patch level 2 on SUN 2 sparcstations with
SunOS 4.1.2. A trace of cantata reveiled the following:

Crashing cantata:
[...]
ioctl (3, 0x4004667f, 0xf7fff19c) = 0
ioctl (3, 0x4004667f, 0xf7fff5e4) = 0
ioctl (3, 0x4004667f, 0xf7fff5e4) = 0
gettimeofday (0xf7fff5e0, 0) = 0
select (4, 0xf7fff5a8, 0xf7fff588, 0xf7fff568, 0) = 1
ioctl (3, 0x4004667f, 0xf7fff48c) = 0
read (3, "".., 128) = 128
brk (0x16aae8) = 0
- SIGSEGV (11)
write (2, "\nError! The following cantata er".., 51) = 
Error! The following cantata error has occurred:
	51
write (2, "Segmentation violation...\n", 26) = Segmentation violation...
26
write (2, "\n", 1) = 
1
writev (3, 0xf7ffd7b8, 3) = 108
read (3, "".., 32) = 32
read (3, "".., 32) = 32
read (3, "".., 32) = 32
read (3, "".., 32) = 32
writev (3, 0xf7ffd7b8, 2) = 16
read (3, "".., 32) = 32
- SIGSEGV (11)


Running cantata:
[...]
ioctl (3, 0x4004667f, 0xf7fff19c) = 0
ioctl (3, 0x4004667f, 0xf7fff5e4) = 0
ioctl (3, 0x4004667f, 0xf7fff5e4) = 0
gettimeofday (0xf7fff5e0, 0) = 0
select (4, 0xf7fff5a8, 0xf7fff588, 0xf7fff568, 0) = 1
ioctl (3, 0x4004667f, 0xf7fff48c) = 0
read (3, "".., 128) = 128
brk (0x16aae8) = 0
brk (0x16cae8) = 0
write (3, "".., 280) = 280
read (3, "".., 32) = 32
read (3, "".., 32) = 32
read (3, "".., 32) = 32
read (3, "".., 32) = 32
write (3, "".., 8) = 8
[...]


Please, although we somehow got it run again, answer quickly. We will be
having a demonstration and it is not very satisfying not to know why a
program does or does not crash. The last thing we want is that cantata
crashes during the demonstration and we don't know how to fix it.

Thanks in advance,

Marcus Hennecke
hennecke@microelectronic.e-technik.th-darmstadt.de


Newsgroups: comp.soft-sys.khoros