Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363886

Summary: Crash on Debug when virtual folders exist, java.lang.NullPointerException
Product: [Tools] CDT Reporter: S Barnes <ironictoo>
Component: cdt-debugAssignee: cdt-debug-inbox <cdt-debug-inbox>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3 CC: cdtdoug, marc.khouzam, nobody, pawel.1.piech
Version: 6.1   
Target Milestone: 7.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Log file with stack dump none

Description S Barnes CLA 2011-11-15 20:17:50 EST
Build Identifier: I20110613-1736

Projects that contain virtual folders crash when you attempt to run the debugger. It appears to be the same problem that was reported here:
http://www.eclipse.org/forums/index.php/m/652159/
And might be related to bug 33518
https://bugs.eclipse.org/bugs/show_bug.cgi?id=335180

Reproducible: Always

Steps to Reproduce:
1. Create C++ Hello World Project
2. Create virtual folder
3. Run debugger (gdb)
Comment 1 Marc Khouzam CLA 2011-11-15 21:05:29 EST
Can you post the NPE stack dump?
Comment 2 S Barnes CLA 2011-11-17 12:28:03 EST
Created attachment 207160 [details]
Log file with stack dump
Comment 3 S Barnes CLA 2011-11-17 12:29:18 EST
I attached the log file which I believe contains the stack dump you are looking for. If not let me know.

Also I meant to say might be related to bug 335180, I missed a zero on accident.
Comment 4 Nobody - feel free to take it CLA 2014-04-10 16:14:00 EDT
I don't think 8.1 is the correct version for this bug. The NPE protection was added in 7.0 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=314303). In 8.0 the the step that calls CSourcelookup.setSourceLookupPath() was completely removed from FinalLaunchSequence (https://bugs.eclipse.org/bugs/show_bug.cgi?id=225805).
https://bugs.eclipse.org/bugs/show_bug.cgi?id=335180 refers the CDI session and is not related to DSF/GDB.
Marc, should we close this?
Comment 5 Marc Khouzam CLA 2014-04-14 10:15:58 EDT
(In reply to Mikhail Khodjaiants from comment #4)

> Marc, should we close this?
+1
Comment 6 Nobody - feel free to take it CLA 2014-04-14 11:07:58 EDT
I changed the version to the latest before the issues was fixed (6.1).