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 243755 - ensureFilesCreated vs includeImpl [DeadlockDetectedException]
Summary: ensureFilesCreated vs includeImpl [DeadlockDetectedException]
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
: 242845 244846 248568 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-11 07:53 UTC by Exceptions Reporter
Modified: 2014-11-25 04:31 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 209065


Attachments
stacktrace (4.95 KB, text/plain)
2014-04-11 07:53 UTC, Exceptions Reporter
Details
just for convenience, here is a part of the full thread dump - only concerning code model related threads (16.54 KB, text/plain)
2014-05-27 11:31 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-04-11 07:53:17 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Linux

User Comments:
GUEST: Selected a project group and quickly open a file from one of the opened projects.




Stacktrace: 
org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException: Code Model Parser 3: PARTIAL Reparsing /mnt/devel/EDDI3/TransactionTableAdapter/AI_Configer.h
   at org.netbeans.modules.cnd.apt.support.APTAbstractWalker.includeImpl(APTAbstractWalker.java:157)
   at org.netbeans.modules.cnd.apt.support.APTAbstractWalker.onInclude(APTAbstractWalker.java:122)
   at org.netbeans.modules.cnd.apt.support.APTWalker.onAPT(APTWalker.java:223)
   at org.netbeans.modules.cnd.apt.support.APTWalker.toNextNode(APTWalker.java:333)
   at org.netbeans.modules.cnd.apt.support.APTWalker.visit(APTWalker.java:82)
   at org.netbeans.modules.cnd.modelimpl.parser.apt.APTRestorePreprocStateWalker.visit(APTRestorePreprocStateWalker.java:161)
Comment 1 Exceptions Reporter 2014-04-11 07:53:18 UTC
Created attachment 146687 [details]
stacktrace
Comment 2 Vladimir Kvashin 2014-05-27 11:31:41 UTC
Created attachment 147469 [details]
just for convenience, here is a part of the full thread dump - only concerning code model related threads
Comment 3 Vladimir Kvashin 2014-05-28 11:49:43 UTC
No simple and safe fix, too dangerous to fix in patch2. But in my opinion this should be fixed as soon as patch2 gets out.
Comment 4 Vladimir Kvashin 2014-06-03 18:47:35 UTC
see also issue 244846
Comment 5 Vladimir Kvashin 2014-07-23 17:03:34 UTC
*** Bug 244846 has been marked as a duplicate of this bug. ***
Comment 6 Vladimir Kvashin 2014-08-06 14:41:20 UTC
We discussed the possible fix within the team and found it too risky for 8.0.1
Comment 7 petrk 2014-11-19 12:47:06 UTC
*** Bug 248568 has been marked as a duplicate of this bug. ***
Comment 8 Vladimir Voskresensky 2014-11-20 11:35:31 UTC
have to be fixed in trunk
Comment 9 Vladimir Voskresensky 2014-11-20 12:17:43 UTC
*** Bug 242845 has been marked as a duplicate of this bug. ***
Comment 10 Vladimir Voskresensky 2014-11-24 15:37:13 UTC
when restoring PP do not use entry guarded by lock.
For existing concurrent entry just use it in read only mode
http://hg.netbeans.org/cnd-main/rev/de8d300a554d
http://hg.netbeans.org/cnd-main/rev/d9d7b1c79f93
Comment 11 Quality Engineering 2014-11-25 04:31:34 UTC
Integrated into 'main-silver', will be available in build *201411250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/de8d300a554d
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #243755 - ensureFilesCreated vs includeImpl [DeadlockDetectedException]
(no semantic changes) - prepare read only entries