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 192946 - Debugger does not work with msys due to NullPointerException at java.io.File.<init>
Summary: Debugger does not work with msys due to NullPointerException at java.io.File....
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-06 22:20 UTC by Wierrat
Modified: 2010-12-10 06:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 174747


Attachments
stacktrace (1.05 KB, text/plain)
2010-12-06 22:20 UTC, Wierrat
Details
stacktrace (1.05 KB, text/plain)
2010-12-07 18:36 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wierrat 2010-12-06 22:20:39 UTC
Build: NetBeans IDE Dev (Build 201012060001)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Windows 7

User Comments:
Wierrat: Run debug on simple c++ project




Stacktrace: 
java.lang.NullPointerException
   at java.io.File.<init>(File.java:222)
   at org.netbeans.modules.cnd.debugger.common2.utils.IpeUtils.findFileObject(IpeUtils.java:361)
   at org.netbeans.modules.cnd.debugger.common2.debugger.EditorBridge.getLine(EditorBridge.java:290)
   at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerImpl$5.run(NativeDebuggerImpl.java:862)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
Comment 1 Wierrat 2010-12-06 22:20:43 UTC
Created attachment 103647 [details]
stacktrace
Comment 2 Alexander Pepin 2010-12-07 18:36:38 UTC
Created attachment 103697 [details]
stacktrace

Steps to reproduce:
- create Quote sample
- set BP in line 115
- start debugging
Result: Exception occurs. Debugger starts incorrectly
Comment 3 Alexander Pepin 2010-12-07 18:39:52 UTC
This blocks debugger from working on Windows XP with MINGW/msys
Comment 4 Alexander Pepin 2010-12-07 18:43:41 UTC
gdb log is:
~"GNU gdb (GDB) 7.0\n"
~"Copyright (C) 2009 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
~"This is free software: you are free to change and redistribute it.\n"
~"There is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\n"
~"and \"show warranty\" for details.\n"
~"This GDB was configured as \"mingw32\".\n"
~"For bug reporting instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
&"C:\\\\Documents and Settings\\\\CndTester/.gdbinit: No such file or directory.\n"
(gdb) 
1-gdb-set print repeat 0
2-gdb-set backtrace limit 1024
3-file-exec-and-symbols  "C:\\Documents and Settings\\CndTester\\Мои документы\\NetBeansProjects\\Quote_1\\dist/Debug/MinGW-Windows/quote_1"
1^done
(gdb) 
2^done
(gdb) 
3^done
(gdb) 
4-file-list-exec-source-file
4^done,line="104",file="quote.cc",fullname="C:/Documents and Settings/CndTester/\314\356\350 \344\356\352\363\354\345\355\362\373/NetBeansProjects/Quote_1/quote.cc",macro-info="0"
(gdb) 
5cd C:\Documents and Settings\CndTester\Мои документы\NetBeansProjects\Quote_1
6-exec-arguments 
7-break-insert C:/Documents and Settings/CndTester/Мои документы/NetBeansProjects/Quote_1/quote.cc:115
1
&"cd C:\\Documents and Settings\\CndTester\\\314\356\350 \344\356\352\363\354\345\355\362\373\\NetBeansProjects\\Quote_1\n"
~"Working directory C:\\Documents and Settings\\CndTester\\\314\356\350 \344\356\352\363\354\345\355\362\373\\NetBeansProjects\\Quote_1.\n"
5^done
(gdb) 
6^done
(gdb) 
7^error,msg="mi_cmd_break_insert: Garbage following <location>"
(gdb) 
&"\n"
1^done
(gdb) 
8-break-insert -t _start
No command for record 1^done
8^error,msg="Function \"_start\" not defined."
(gdb) 
9-break-insert -t main
9^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x0040329c",func="main",file="quote.cc",fullname="C:/Documents and Settings/CndTester/\314\356\350 \344\356\352\363\354\345\355\362\373/NetBeansProjects/Quote_1/quote.cc",line="113",times="0",original-location="main"}
(gdb) 
10-exec-run
=thread-group-created,id="2568"
=thread-created,id="1",group-id="2568"
~"[New Thread 2568.0x588]\n"
10^running
*running,thread-id="all"
(gdb) 
=library-loaded,id="C:\\WINDOWS\\system32\\ntdll.dll",target-name="C:\\WINDOWS\\system32\\ntdll.dll",host-name="C:\\WINDOWS\\system32\\ntdll.dll",symbols-loaded="0"
=library-loaded,id="C:\\WINDOWS\\system32\\kernel32.dll",target-name="C:\\WINDOWS\\system32\\kernel32.dll",host-name="C:\\WINDOWS\\system32\\kernel32.dll",symbols-loaded="0"
=library-loaded,id="C:\\WINDOWS\\system32\\msvcrt.dll",target-name="C:\\WINDOWS\\system32\\msvcrt.dll",host-name="C:\\WINDOWS\\system32\\msvcrt.dll",symbols-loaded="0"
*stopped,reason="breakpoint-hit",disp="del",bkptno="1",frame={addr="0x0040329c",func="main",args=[{name="argc",value="1"},{name="argv",value="0x3e2528"}],file="quote.cc",fullname="C:/Documents and Settings/CndTester/\314\356\350 \344\356\352\363\354\345\355\362\373/NetBeansProjects/Quote_1/quote.cc",line="113"},thread-id="1",stopped-threads="all"
(gdb) 
11-stack-list-frames
11^done,stack=[frame={level="0",addr="0x0040329c",func="main",file="quote.cc",fullname="C:/Documents and Settings/CndTester/\314\356\350 \344\356\352\363\354\345\355\362\373/NetBeansProjects/Quote_1/quote.cc",line="113"}]
(gdb) 
No answer for: 10-exec-run
12-stack-list-arguments 1
12^done,stack-args=[frame={level="0",args=[{name="argc",value="1"},{name="argv",value="0x3e2528"}]}]
(gdb) 
13-data-evaluate-expression "discount"
13^done,value="4263286"
(gdb)
Comment 5 Egor Ushakov 2010-12-09 09:07:04 UTC
I the log I see also some issues with unicode characters and spaces in filenames, fixing that also
Comment 6 Egor Ushakov 2010-12-09 13:25:01 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/ba728d2c7dd9

also fixed some issues with russian filenames
Comment 7 Quality Engineering 2010-12-10 06:15:33 UTC
Integrated into 'main-golden', will be available in build *201012100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ba728d2c7dd9
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #192946 (NPE on windows) - also fixed some issues with russian names