9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Alef & par
@ 1994-08-27 17:45 philw
  0 siblings, 0 replies; 2+ messages in thread
From: philw @ 1994-08-27 17:45 UTC (permalink / raw)


I have not been able to reproduce this error.






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Alef & par
@ 1994-08-25 12:04 Hans-Peter
  0 siblings, 0 replies; 2+ messages in thread
From: Hans-Peter @ 1994-08-25 12:04 UTC (permalink / raw)



Dear Plan 9 fan,

I have some trouble with alef's
par control statement.

Everything works fine
with two statements in the par block.

The program core dumpes, if there are
more statements in the par block.

Can you help me?

Hans-Peter

-----------------------------------------------

The source code, an example for a execution of the program,
some 'ps | grep par_test' lines, and some debugger information
follows.


The source:
--------------------
/* par_test.l                                           */
#include <alef.h>
void main(void)
{
int index;

        print("pid = %d\n", getpid());
        for ( index = 0; index < 200; index ++ )
        {
                par 
                {       print("@");
                        print("#");
                        print("X");
                }
        }
}

Execution:
--------------------
term% file p*t
par_test: sparc plan 9 executable
term% par_test
pid = 1899
@par_test 1901: suicide: sys: trap: fault write addr=0xfffffff8 pc=0x10f0
X

	Where is prozess with the pid 1900?


Ps info:
--------------------
term% ps -aux | grep par_test
none       1899    1:10   0:00    76K Ready    par_test		# cpu
none       1901    0:00   0:00    76K Broken   par_test
term%  ps -aux | grep par_test
none       1899    1:18   0:00    76K Ready    par_test		# time grows
none       1901    0:00   0:00    76K Broken   par_test

Debugger:
--------------------
term% db 1901
sparc binary
last exception: data access exception
par_2.l:12 main+#d0?             MOVW   R10, #4(R8)
$c
main() /sys/include/alef/alef.h:250 called from ALEF_linksp+#10 alefasm.s:12
ALEF_linksp() alefasm.s:6 called from ALEF_pfork+#54 alef.l:2
ALEF_pfork(n=#0, stack=#0) alef.l:796 called from #fffffff8 
1

Thanks for reading und thinking.






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-08-27 17:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-08-27 17:45 Alef & par philw
  -- strict thread matches above, loose matches on Subject: below --
1994-08-25 12:04 Hans-Peter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).