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 194661 - Can not attach to process: No such file or directory
Summary: Can not attach to process: No such file or directory
Status: REOPENED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.2
Hardware: All All
: P2 normal (vote)
Assignee: henk89
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-24 16:15 UTC by Alexander Pepin
Modified: 2018-11-25 08:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2011-01-24 16:15:42 UTC
Windows 7 x64, cygwin, gdb 
Steps to reproduce:
- create Quote
- run it
- call attach debugger
- select appropriate process and press OK
Result: Debugger Error window appears with the message: ":No such file or directory"

Debugger console gives:
~"GNU gdb 6.8.0.20080328-cvs (cygwin-special)\n"
~"Copyright (C) 2008 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 \"i686-pc-cygwin\".\n"
&"C:\\\\Users\\\\ap153252/.gdbinit: No such file or directory.\n"
(gdb) 
2-gdb-set print repeat 0
3-gdb-set backtrace limit 1024
4-file-symbol-file  ""
2^done
(gdb) 
3^done
(gdb) 
&": No such file or directory.\n"
4^error,msg=": No such file or directory."
(gdb)
Comment 1 Egor Ushakov 2011-01-25 14:44:14 UTC
project configuration was assigned after we changed executable in debug target
fixed in:
http://hg.netbeans.org/cnd-main/rev/b31bec1fca61
Comment 2 Quality Engineering 2011-01-27 08:36:05 UTC
Integrated into 'main-golden', will be available in build *201101270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b31bec1fca61
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #194661 (Can not attach to process: No such file or directory)
Comment 3 Quality Engineering 2011-01-27 20:45:57 UTC
Integrated into 'main-golden', will be available in build *201101271430* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b31bec1fca61
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #194661 (Can not attach to process: No such file or directory)
Comment 4 mortazavi 2012-11-18 07:51:55 UTC
FYI -- There continues to be some lingering problems, with this, it seems. 

I tried to attach to this process, using the obvious steps from the debug menu (attach debugger, and the select the relevant process form the list) and ran into similar problems.

The process was executing a command line such as the following . . .

/usr/local/bin/mserver5 --set gdk_dbfarm /Users/masood/dbfarm --dbname=voc --set merovingian_uri mapi:monetdb://unknown0026bb13fde6:50000/voc --set mapi_open false --set mapi_port 0 --set mapi_usock /Users/masood/dbfarm/voc/.mapi.sock --set monet_vault_key /Users/masood/dbfarm/voc/.vaultkey --set gdk_nr_threads
Comment 5 henk89 2012-11-23 13:40:25 UTC
Could you provide me with the GDB log (http://wiki.netbeans.org/GdbLog) from the session and your environment details?
Comment 6 Egor Ushakov 2013-06-19 14:52:44 UTC
may be fixed within the bug 230518
Comment 7 leon_lessing 2018-11-25 08:49:00 UTC
Problem seems to be back, this is an embedded system, I use it on another machine but with netbeans 7.4 and no issues whatsoever.
See end of list to see difference if I specify the symboltable



This log is saved to: /tmp/gdb-cmds6244444025913149675.log
^M
NB build: 201705191307
^M
=thread-group-added,id="i1"
~"GNU gdb (7.10-1ubuntu3+9) 7.10\n"
~"Copyright (C) 2015 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"--host=x86_64-linux-gnu --target=arm-none-eabi\".\nType \"show configuration\" for configuration details."
~"\nFor bug reporting instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
~"For help, type \"help\".\n"
~"Type \"apropos word\" to search for commands related to \"word\".\n"
=cmd-param-changed,param="output-radix",value="16"
(gdb)
2-list-features
3info signals
4-gdb-set print repeat 0
5-gdb-set backtrace limit 1024
6-gdb-set print elements 400
7-gdb-set follow-fork-mode parent
8-gdb-set detach-on-fork on
9-enable-pretty-printing
10-file-exec-and-symbols ""
2^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-bytes","breakpoint-notifications","ada-task-info","language-option","info-gdb-mi-command","undefined-command-error-code","exec-run-start-option","python"]
(gdb)
&"info signals\n"
~"Signal        Stop\tPrint\tPass to program\tDescription\n"
~"\n"
~"SIGHUP        Yes\tYes\tYes\t\tHangup\n"
~"SIGINFO       Yes\tYes\tYes\t\tInformation request\n"
~"EXC_BAD_ACCESS Yes\tYes\tYes\t\tCould not access memory\n"
~"EXC_BAD_INSTRUCTION Yes\tYes\tYes\t\tIllegal instruction/operand\n"
~"EXC_ARITHMETIC Yes\tYes\tYes\t\tArithmetic exception\n"
~"EXC_EMULATION Yes\tYes\tYes\t\tEmulation instruction\n"
~"EXC_SOFTWARE  Yes\tYes\tYes\t\tSoftware generated exception\n"
~"EXC_BREAKPOINT Yes\tYes\tYes\t\tBreakpoint\n"
~"32            Yes\tYes\tYes\t\tLinuxThreads restart signal\n"
~"33            Yes\tYes\tYes\t\tLinuxThreads cancel signal\n"
~"34            Yes\tYes\tYes\t\tLinuxThreads debug signal\n"
~"\nUse the \"handle\" command to change these tables.\n"
3^done
(gdb)
4^done
(gdb)
5^done
(gdb)
6^done
(gdb)
7^done
(gdb)
8^done
(gdb)
9^done
(gdb)
10^error,msg=": No such file or directory."
(gdb)

specifying the symbol file I get this:

2-list-features
3info signals
4-gdb-set print repeat 0
5-gdb-set backtrace limit 1024
6-gdb-set print elements 400
7-gdb-set follow-fork-mode parent
8-gdb-set detach-on-fork on
9-enable-pretty-printing
10-file-symbol-file "/u/clients/cds/Delay3/build/Delay3.elf"
11-file-exec-file  ""
2^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-bytes","breakpoint-notifications","ada-task-info","language-option","info-gdb-mi-command","undefined-command-error-code","exec-run-start-option","python"]
<snip>
3^done
(gdb)
4^done
(gdb)
5^done
(gdb)
6^done
(gdb)
7^done
(gdb)
8^done
(gdb)
9^done
(gdb)
10^done
(gdb)
11^error,msg=": No such file or directory."

Any ideas ??
Leon