Hi,
The X10_STATIC_THREADS environment variable is not supported and, in
general, will cause programs to freeze.
The X10 runtime requires dynamic thread creation for all but the most
trivial programs.
Olivier
Marco Bungart <[email protected]> wrote on 05/23/2014 07:56:30 AM:
> From: Marco Bungart <[email protected]>
> To: [email protected]
> Date: 05/23/2014 07:56 AM
> Subject: [X10-users] Resilient X10, async, X10_STATIC_THREADS and
> DeadPlaceException
>
> Hi there,
>
> I got non-deterministic behaviour with the code appended. Compiling the
> program with the c++ backend and starting it with 2 as parameter results
> almost always in the expected output:
>
> $ ./DPEExample 2
> Place(0): Sending to Place(1).
> Place(0): waiting.
> Place(0): Place(1) has answered. Ending.
> Place(1): received message from Place(0).
> Place(1): Sending to Place(2).
> Place(1): waiting.
> Place(1): Place(2) has answered. Ending.
> Place(1): resetting Place(0).
> Place(2): received message from Place(1).
> Place(2): Sending to Place(3).
> Place(2): waiting.
> Place(2): Place(3) has answered. Ending.
> Place(2): resetting Place(1).
> Place(3): received message from Place(2).
> Place(3): resetting Place(2).
> Place 1 exited unexpectedly with exit code: 1
> Place(0): caught multiple exceptions, size = 2
> Place(0): Place(1) died. Resetting Place(0).
> Place(0): Place(1) died. Resetting Place(0).
> END.
> $
>
> Starting the same program with 3 as parameter, however, freezes the
> program most of the time:
>
> $ ./DPEExample 3
> Place(0): Sending to Place(1).
> Place(0): waiting.
> Place(0): Place(1) has answered. Ending.
> Place(1): received message from Place(0).
> Place(1): Sending to Place(2).
> Place(1): waiting.
> Place(1): Place(2) has answered. Ending.
> Place(1): resetting Place(0).
> Place(2): received message from Place(1).
> Place(2): Sending to Place(3).
> Place(2): waiting.
> Place(2): Place(3) has answered. Ending.
> Place(2): resetting Place(1).
> Place(3): received message from Place(2).
> Place(3): resetting Place(2).
>
> [program freezes here]
>
> Compiling the program with the java backend changes the behaviour:
> - Starting with 2 as parameter: ~50% of all runs show the "correct"
> (first) behaviour, rest freezes
> - Starting with 3 as parameter resulted for me always in a freeze
> (second behaviour)
>
> Environment-variables used:
> export X10_NPLACES=4
> export X10_NTHREADS=1
> export X10_STATIC_THREADS=true
> export X10_RESILIENT_MODE=1
> export X10_RESILENT_NODE_ZERO=1
>
> gcc used: 4.8.2
> java used: openJDK 1.7.0_55
>
> Unsetting X10_STATIC_THREADS seems to fix the problem.
> Am I doing something fundamentally wrong or is this a bug? Might it be
> related to Bug #3368 (http://jira.codehaus.org/browse/XTENLANG-3368)?
>
> Cheers and thanks in advance,
>
> Marco
> [attachment "DPEExample.x10" deleted by Olivier Tardieu/Watson/IBM]
>
------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing
platformavailable
> Simple to use. Nothing to install. Get started now for free."
>
http://p.sf.net/sfu/SauceLabs_______________________________________________
> X10-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/x10-users
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users