This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 179909 - deadlock in lexer infrastructure
Summary: deadlock in lexer infrastructure
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: RANDOM, THREAD
Depends on:
Blocks:
 
Reported: 2010-01-27 05:22 UTC by Alexey Vladykin
Modified: 2012-10-30 10:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (16.46 KB, text/plain)
2010-01-27 05:23 UTC, Alexey Vladykin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Vladykin 2010-01-27 05:22:34 UTC
A deadlock sometimes happens in lexer infrastructure if MakefileLanguageProvider has static final field assigned from new MakefileLanguageHierarchy.language().
I've already fixed it by removing the static field, but still want to let you know about the potential problem.

Steps to reproduce:
- update to changeset 7b34677e168c
- rebuild netbeans
- run tests of cnd.script module
- deadlock happens (not every time but quite often)

Thread dump is attached.
Comment 1 Alexey Vladykin 2010-01-27 05:23:30 UTC
Created attachment 93589 [details]
Thread dump
Comment 2 Miloslav Metelka 2012-10-30 10:20:10 UTC
The code is changed significantly the LanguageHierarchy no longer calls LanguageManager so hopefully the deadlock should not occur. Please reopen if the problem would still be present.