Josh Milthorpe <josh.miltho...@anu.edu.au> wrote on 10/13/2009 10:18:35 
PM:

> Hi all,
> 
> has anyone ever seen something like the exception below?  It occurred 
> when running a single-place program that usually works fine.  The only 
> slightly unusual thing was that I had compiled it (including the X10 
> runtime) for profiling.  However the same executable has since run 
> correctly many times.
> 
> This is the first time I've noticed this exception in many thousands of 
> runs of X10 programs... so perhaps a very rare condition.

My bad -- this is coming from the static initialization code, which is
apparently using the monitors incorrectly (trying to do an await() on
an unlocked monitor).  Please add a JIRA with this stack trace and
assign it to me.  Thanks for catching it.
        Igor

> Platform: Linux x86
> Compiler: X10C++ 2.0 (SVN HEAD) -O -g -pg
> Env: X10_NO_CHECKS=true
> 
> Cheers
> 
> Josh
> 
> Uncaught exception at place 0: x10.lang.MultipleExceptions:
> x10.lang.Exception:
>     at x10::lang::Throwable::fillInStackTrace()
>     at x10aux::throwException(x10aux::ref<x10::lang::Throwable>)
>     at void 
> x10aux::throwException<x10::runtime::IllegalMonitorStateException>()
>     at x10::runtime::Lock::unlock()
>     at x10::runtime::Monitor::unlock()
>     at x10::runtime::Monitor::await()
>     at x10::runtime::Runtime::await()
>     at x10aux::StaticInitBroadcastDispatcher::await()
>     at x10::array::BaseArray<void>::x10__x10NoChecks__init()
>     at x10::array::BaseArray<void>::x10__x10NoChecks__get()
>     at x10::array::BaseArray<void>::x10__checkPlace__do_init()
>     at x10::array::BaseArray<void>::x10__checkPlace__init()
>     at InitClosure::apply()
>     at x10::runtime::Activity::run()
>     at x10_runtime_Runtime__closure__20::apply()
>     at x10::runtime::NativeRuntime::runAtLocal(int, 
> x10aux::ref<x10::lang::VoidFun_0_0>)
>     at x10::runtime::Runtime::run(x10aux::ref<x10::runtime::Activity>)
>     at x10::runtime::Worker::loop(x10aux::ref<x10::runtime::Latch>, 
bool)
>     at x10::runtime::Worker::join(x10aux::ref<x10::runtime::Latch>)
>     at x10_runtime_Runtime__closure__19::apply()
>     at x10::runtime::NativeRuntime::runAtLocal(int, 
> x10aux::ref<x10::lang::VoidFun_0_0>)
>     at x10::runtime::Runtime::join(x10aux::ref<x10::runtime::Latch>)
>     at x10::runtime::RootFinish::waitForFinish(bool)
>     at x10::runtime::Runtime::stopFinish()
>     at x10_runtime_Runtime__closure__1::apply()
>     at x10::runtime::Activity::run()
>     at x10_runtime_Runtime__closure__20::apply()
>     at x10::runtime::NativeRuntime::runAtLocal(int, 
> x10aux::ref<x10::lang::VoidFun_0_0>)
>     at x10::runtime::Runtime::run(x10aux::ref<x10::runtime::Activity>)
>     at x10::runtime::Worker::loop(x10aux::ref<x10::runtime::Latch>, 
bool)
>     at x10::runtime::Worker::apply()
>     at x10::runtime::Pool::apply()
>     at x10::runtime::Runtime::start(x10aux::ref<x10::lang::VoidFun_0_0>, 

> x10aux::ref<x10::lang::VoidFun_0_0>)
>     at int x10aux::template_main<x10::runtime::Runtime, 
> au::edu::anu::mm::TestFmm3d>(int, char**)
>     at main
>     at __libc_start_main
>     at a.out [0x8323ff1]
-- 
Igor Peshansky  (note the spelling change!)
IBM T.J. Watson Research Center
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
X10: Parallel Productivity and Performance (http://x10.sf.net/)


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to