[stringtemplate-interest] deadlock during the static initialization
Nils Liebelt
nils.liebelt at serie-a.de
Thu Jan 15 00:53:50 PST 2009
Hi Terence,
thanks for the support. One last note on testcase. It does not fail when
the error occures. But you can see from
the log statements and the thread dump that the worker threads are not
terminating.
Regards,
Nils
Terence Parr schrieb:
>
> On Jan 13, 2009, at 10:38 AM, Nils Liebelt wrote:
>
>> Hi all,
>>
>> I spotted an racing condition that occures during the (static)
>> initialization of StringTemplate and StringTemplateGroup.
>> The result is an deadlock that occures when initializing the classes
>> from different threads. Please find attached a simple junit testcase
>> that illustrates the behaviour. Also attached is a thread dump that
>> shows stacktraces after the deadlock occures. To get around this
>> issue you must statically initialize one of the classes before actual
>> creating the instances of the mentioned classes (see testcase)
>>
>> The problem affects StringTemplate Version 3.2. I can reproduce the
>> behaviour on sun jvm 1.6.0_03-b05 (64bit) and 1.6.0_07-b06 (32bit)
>>
>> Is this a known bug? Can I raise a jira?
>
> Hi Nils, just added:
>
> http://www.antlr.org/jira/browse/ST-48
>
> Ter
>
--
Nils Liebelt
Software Developer
nils.liebelt at serie-a.de
serie a logistics solutions AG
Hülchrather Straße 15
D-50670 Köln
T +49 221 500 60 7-19
F +49 221 500 56 85
Vorstand: Axel Löhr, Erwin Soldo
Aufsichtsrat: Adam Musialik (Vors.), Fritz Pleitgen, Hans Jörg Klofat
Amtsgericht Köln HRB 61725
www.serie-a.de
More information about the stringtemplate-interest
mailing list