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.
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)
Created attachment 156912 [details] stacktrace
Created attachment 156915 [details] stacktrace create clucene project
My fault.
Created attachment 156917 [details] proposed patch
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
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
fixed on enum 303659:fb31abb61fd4
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)
v.
Verified in NetBeans 8.1 patch1