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 244920 - Debugger Error: The program is not being run.
Summary: Debugger Error: The program is not being run.
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: henk89
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-06 00:34 UTC by jeff_y
Modified: 2014-07-07 22:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
gdb log (14.42 KB, application/octet-stream)
2014-07-02 21:07 UTC, jeff_y
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jeff_y 2014-06-06 00:34:47 UTC
The breakpoint I set in main() via the IDE is not being respected. The program runs to completion, and I get the following error dialog.

Title: Debugger Error
Message: The program is not being run.

When I launch the same debugger via the command line, I don't get this problem:

(gdb) b infer.cpp:339
Breakpoint 1 at 0x1000055a9: file ../../src/bin/infer.cpp, line 339.
(gdb) r
Starting program: /Users/jeff/Workspaces/NetBeans/my_fastInf/build/bin/infer 

Breakpoint 1, main (argc=1, argv=0x7fff5fbff188) at ../../src/bin/infer.cpp:339
339	  clock_t startClock = 0 ;

The project build result in properties > build > make is set to the executable being debugged.
Comment 1 henk89 2014-06-30 13:11:32 UTC
Could you please provide me with a gdb log (http://wiki.netbeans.org/GdbLog)?
Comment 2 jeff_y 2014-07-02 21:07:19 UTC
Created attachment 147851 [details]
gdb log

gdb log as requested.

The missing source file referenced in the log exists no disk.

otp589361ots:T jeff$ ls -atlrh /Users/jeff/Workspaces/NetBeans/fastInf/src/bin/infer.cpp
-rwxr-xr-x  1 jeff  staff    13K Apr  9 17:03 /Users/jeff/Workspaces/NetBeans/fastInf/src/bin/infer.cpp
Comment 3 henk89 2014-07-07 09:18:35 UTC
As I can see you tried a little bit different scenario in the command line mode:
../../src/bin/infer.cpp refers to /Users/jeff/Workspaces/NetBeans/my_fastInf/src/bin/infer.cpp but not to /Users/jeff/Workspaces/NetBeans/fastInf/src/bin/infer.cpp

PLease try specifying the full path to the file (/Users/jeff/Workspaces/NetBeans/fastInf/src/bin/infer.cpp) in the command line mode and provide me with a result.
Comment 4 henk89 2014-07-07 10:54:28 UTC
> The missing source file referenced in the log exists no disk.

This means that GDB is unable to find an appropriate symbol table for the file in an executable being debugged. It looks like you have 2 projects with the same sources and you tried setting a breakpoint in the binary from the first project using a link to the sources from the second project.
Comment 5 jeff_y 2014-07-07 22:32:18 UTC
That could be the cause of what's happening. I can't remember what I might have done for my Netbeans to be working on Project A but editing files from Project B.

Maybe I copied the whole Netbeans project directory and some of the project links were absolute?

In any case, we can resolve this until I have more info.

Thanks,
Jeff