This is the mail archive of the gdb-prs@sourceware.org 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]

breakpoints/2194: Cannot insert breakpoint 1: Error accessing memory address 0x87414: I/O error


>Number:         2194
>Category:       breakpoints
>Synopsis:       Cannot insert breakpoint 1: Error accessing memory address 0x87414: I/O error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 05 00:38:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dave Anglin
>Release:        GNU gdb 6.5.50.20061104-cvs
>Organization:
>Environment:
hppa2.0w-hp-hpux11.11
>Description:
# gdb ../../gcc/jc1
GNU gdb 6.5.50.20061104-cvs
Copyright (C) 2006 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 "hppa2.0w-hp-hpux11.11"...
(gdb) break main
Breakpoint 1 at 0x87414: file ../../gcc/gcc/main.c, line 35.
(gdb) r `cat xx.sh`
Starting program: /mnt/gnu/gcc/objdir/gcc/jc1 `cat xx.sh`
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x87414: I/O error.

This possibly has something to do with argument processing:

# gdb ../../gcc/jc1
GNU gdb 6.5.50.20061104-cvs
Copyright (C) 2006 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 "hppa2.0w-hp-hpux11.11"...
(gdb) break main
Breakpoint 1 at 0x87414: file ../../gcc/gcc/main.c, line 35.
(gdb) r
Starting program: /mnt/gnu/gcc/objdir/gcc/jc1
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.


Breakpoint 1, main (argc=1, argv=0x7eff051c) at ../../gcc/gcc/main.c:35
35        return toplev_main (argc, (const char **) argv);

(gdb) r `cat xx.sh`
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /mnt/gnu/gcc/objdir/gcc/jc1 `cat xx.sh`
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x87414: I/O error.

# cat xx.sh
 /var/tmp/jbug -fuse-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -fkeep-inline-functions -quiet -dumpbase jbug -auxbase-strip .libs/gnu-xml.s -g -O2 -Wno-deprecated -version -ffilelist-file -fclasspath= -fbootclasspath=/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libjava/classpath/lib -fencoding=UTF-8 -fbootstrap-classes -fjni -findirect-dispatch -fno-indirect-classes -fPIC -o .libs/gnu-xml.s

As a work around, "set args" works.  However, `cat file`
used to work and I find it convenient when there is a long
list of arguments.

As a side note, gdb isn't correctly detecting when shared
libraries are privately mapped.  In the above example, I
used "chatr +dbg enable ../../gcc/jc1" to privately map
jc1's shared libraries.

-bash-2.05b$ chatr ../../gcc/jc1
../../gcc/jc1:
         shared executable
         shared library dynamic path search:
             SHLIB_PATH     disabled  second
             embedded path  disabled  first  Not Defined
         shared library list:
             dynamic   /usr/lib/libc.2
         shared library binding:
             deferred
         global hash table disabled
         plabel caching disabled
         global hash array size:1103
         global hash array nbuckets:3
         shared vtable support disabled
         explicit unloading enabled
         static branch prediction disabled
         executable from stack: D (default)
         kernel assisted branch prediction enabled
         lazy swap allocation disabled
         text segment locking disabled
         data segment locking disabled
         third quadrant private data space disabled
         fourth quadrant private data space disabled
         third quadrant global data space disabled
         data page size: D (default)
         instruction page size: D (default)
         nulptr references enabled
         shared library private mapping enabled
         shared library text merging disabled
>How-To-Repeat:

>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]