This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/1363: Get 'Cannot insert breakpoint -2' everytime when trying to start C++ program


>Number:         1363
>Category:       gdb
>Synopsis:       Get 'Cannot insert breakpoint -2' everytime when trying to start C++ program
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 31 11:48:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     dyp@perchine.com
>Release:        gdb-5.3
>Organization:
>Environment:
SuSE 8.2
gcc-3.3
>Description:
When I try to run any C++ program inside gdb I get:
dyp@dyp:~/src> gdb ./process
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...
(gdb) run missed.txt
Starting program: /home/dyp/src/process missed.txt
Warning:
Cannot insert breakpoint -2.
Error accessing memory address 0x4000bb50: Input/output error.
The same program may be running in another process.

If I build the latest CVS I get:
dyp@dyp:~/src> /opt/gdb/bin/gdb /home/dyp/src/process
GNU gdb 2003-08-31-cvs
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run missed.txt
Starting program: /home/dyp/src/process missed.txt
Warning:
Cannot insert breakpoint -2.
Error accessing memory address 0x4000bb50: Input/output error.

The same problem occurs when trying to debug ls for example.
>How-To-Repeat:
Try to debug any C++ program under SuSE 8.2 with gdb
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]