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 256114 - AssertionError: why hasn't stopped after interested file? restore <pthread.h> [131:4/3862-131:24/3882] #0 from line 131 in file PARSED FileImpl @1752398907:2041929660 /home/sova/clucene-core-0.9.11/sr
Summary: AssertionError: why hasn't stopped after interested file? restore <pthread.h>...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-22 18:21 UTC by soldatov
Modified: 2016-03-16 08:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220715


Attachments
stacktrace (4.59 KB, text/plain)
2015-10-22 18:21 UTC, soldatov
Details
stacktrace (4.50 KB, text/plain)
2015-10-22 19:39 UTC, Vladimir Voskresensky
Details
proposed patch (1.08 KB, patch)
2015-10-22 20:58 UTC, Vladimir Voskresensky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-10-22 18:21:44 UTC
Build: NetBeans IDE Dev (Build cnd-trunk-build-2744-on-20151022)
VM: OpenJDK 64-Bit Server VM, 24.85-b03, OpenJDK Runtime Environment, 1.7.0_85-mockbuild_2015_07_15_07_07-b00
OS: Linux

User Comments:
soldatov: open Clucene project




Stacktrace: 
java.lang.AssertionError: why hasn't stopped after interested file? restore <pthread.h> [131:4/3862-131:24/3882] #0 from line 131 in file PARSED FileImpl @1752398907:2041929660 /home/sova/clucene-core-0.9.11/src/CLucene/LuceneThreads.h prj:1923116560KeyBasedUID on ProjectKey /home/sova/clucene-core-0.9.11/N/ NOT_BEING_PARSED
   at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankTokenStreamProducer$VisitIncludeChainPreprocessorCallback.onEnter(ClankTokenStreamProducer.java:532)
   at org.netbeans.modules.cnd.apt.impl.support.clank.ClankPPCallback.onEnter(ClankPPCallback.java:344)
   at org.clang.tools.services.support.FileInfoCallback.FileEnterImpl(FileInfoCallback.java:782)
   at org.clang.tools.services.support.FileInfoCallback.FileChanged(FileInfoCallback.java:339)
   at org.clang.lex.PPCallbacks.FileChanged(PPCallbacks.java:97)
   at org.clang.lex.Preprocessor.EnterSourceFileWithLexer(Preprocessor.java:7165)
Comment 1 soldatov 2015-10-22 18:21:46 UTC
Created attachment 156912 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2015-10-22 19:39:27 UTC
Created attachment 156915 [details]
stacktrace

create clucene project
Comment 3 Vladimir Voskresensky 2015-10-22 20:57:10 UTC
My fault.
Comment 4 Vladimir Voskresensky 2015-10-22 20:58:13 UTC
Created attachment 156917 [details]
proposed patch
Comment 5 Vladimir Voskresensky 2015-10-22 21:39:16 UTC
There is an interesting observation about this bug in both modes (in 8.0.2 as well):
there is an include chain:
from src/CLucene/index/SegmentTermPositions.cpp 
includes
src/CLucene/StdHeader.h
which includes
src/CLucene/LuceneThreads.h
which has inside namespace definition clucene::util {
#include <pthread.h>
}

But structures and enums from <pthread.h> are not visible in Navigator
Comment 6 Vladimir Voskresensky 2015-10-22 21:43:45 UTC
It looks like both preprocessors do not see 
#include <pthread.h>
which is guarded by 
#ifdef...
#endif
when need to create TS for included file
Comment 7 Vladimir Voskresensky 2015-10-23 20:23:49 UTC
fixed on enum
303659:fb31abb61fd4
Comment 8 Quality Engineering 2015-10-29 02:21:45 UTC
Integrated into 'main-silver', will be available in build *201510290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/205a214d60fc
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #256114 - AssertionError: why hasn't stopped after interested file?
- fix working with SEEK_ENTER_TO_INCLUDED_FILE state inside onExit hook
(transplanted from fb31abb61fd4fa859f9b9cb6e501eb40855749a2)
Comment 9 Alexander Simon 2015-11-17 12:58:39 UTC
v.
Comment 10 soldatov 2015-11-23 19:46:49 UTC
Verified in NetBeans 8.1 patch1