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]

[Bug c++/18939] New: Could not find the frame base


https://sourceware.org/bugzilla/show_bug.cgi?id=18939

            Bug ID: 18939
           Summary: Could not find the frame base
           Product: gdb
           Version: 7.10
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: bvstraalen at lbl dot gov
  Target Milestone: ---

building with g++ 5.2 and using gdb 7.10 on OSX Macbook.

  It is NOT a gfortran problem.  I get the same error in pure C++ programs as
well.


I don't think it is an error in g++, since I can see my objects fine with other
debuggers.

It might be a gdb configure error though.  Symptoms:

gdb testPoisson3d.Darwin.64.g++.gfortran.DEBUG.ex 
GNU gdb (GDB) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin10".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from testPoisson3d.Darwin.64.g++.gfortran.DEBUG.ex...done.
(gdb) break testPoisson
Breakpoint 1 at 0x100001419: file testPoisson.cpp, line 101.
(gdb) run
Starting program:
/Users/bvs/Chombo/lib/test/MLC/testPoisson3d.Darwin.64.g++.gfortran.DEBUG.ex 
warning:
`/BinaryCache/coreTLS/coreTLS-35.40.1~1/Objects/coretls.build/coretls.build/Objects-normal/x86_64/system_coretls_vers.o':
can't open to read symbols: No such file or directory.
warning: Could not open OSO archive file
"/BinaryCache/coreTLS/coreTLS-35.40.1~1/Symbols/BuiltProducts/libcoretls_ciphersuites.a"
warning: Could not open OSO archive file
"/BinaryCache/coreTLS/coreTLS-35.40.1~1/Symbols/BuiltProducts/libcoretls_handshake.a"
warning: Could not open OSO archive file
"/BinaryCache/coreTLS/coreTLS-35.40.1~1/Symbols/BuiltProducts/libcoretls_record.a"
warning: Could not open OSO archive file
"/BinaryCache/coreTLS/coreTLS-35.40.1~1/Symbols/BuiltProducts/libcoretls_stream_parser.a"
      Beginning testPoisson ...

Breakpoint 1, testPoisson (
    a_dx=<error reading variable: Could not find the frame base for
"testPoisson(RealVect const&, int, int, double (*)(RealVect const&), double
(*)(RealVect const&))".>, 
    low=<error reading variable: Could not find the frame base for
"testPoisson(RealVect const&, int, int, double (*)(RealVect const&), double
(*)(RealVect const&))".>, 
    high=<error reading variable: Could not find the frame base for
"testPoisson(RealVect const&, int, int, double (*)(RealVect const&), double
(*)(RealVect const&))".>, 
    input=<error reading variable: Could not find the frame base for
"testPoisson(RealVect const&, int, int, double (*)(RealVect const&), double
(*)(RealVect const&))".>, 
    exactLap=<error reading variable: Could not find the frame base for
"testPoisson(RealVect const&, int, int, double (*)(RealVect const&), double
(*)(RealVect const&))".>) at testPoisson.cpp:101
101       RealVect dx=a_dx;
(gdb) n
103       unsigned int status = 0;
(gdb) p dx
Could not find the frame base for "testPoisson(RealVect const&, int, int,
double (*)(RealVect const&), double (*)(RealVect const&))".
(gdb) 



The same debug sequence using lldb gives the following:

lldb testPoisson3d.Darwin.64.g++.gfortran.DEBUG.ex
(lldb) target create "testPoisson3d.Darwin.64.g++.gfortran.DEBUG.ex"
Current executable set to 'testPoisson3d.Darwin.64.g++.gfortran.DEBUG.ex'
(x86_64).
(lldb) breakpoint set -name testPoisson
Breakpoint 1: where =
testPoisson3d.Darwin.64.g++.gfortran.DEBUG.ex`testPoisson(RealVect const&, int,
int, double (*)(RealVect const&), double (*)(RealVect const&)) + 47 at
testPoisson.cpp:101, address = 0x0000000100001419
(lldb) run
Process 10401 launched:
'/Users/bvs/Chombo/lib/test/MLC/testPoisson3d.Darwin.64.g++.gfortran.DEBUG.ex'
(x86_64)
      Beginning testPoisson ...
Process 10401 stopped
* thread #1: tid = 0x85ee1, 0x0000000100001419
testPoisson3d.Darwin.64.g++.gfortran.DEBUG.ex`testPoisson(a_dx=0x00007fff5fbff510,
low=-20, high=20, input=0x00000001000030a2,
exactLap=0x0000000100002f07)(RealVect const&), double (*)(RealVect const&)) +
47 at testPoisson.cpp:101, queue = 'com.apple.main-thread', stop reason =
breakpoint 1.1
    frame #0: 0x0000000100001419
testPoisson3d.Darwin.64.g++.gfortran.DEBUG.ex`testPoisson(a_dx=0x00007fff5fbff510,
low=-20, high=20, input=0x00000001000030a2,
exactLap=0x0000000100002f07)(RealVect const&), double (*)(RealVect const&)) +
47 at testPoisson.cpp:101
-> 101    RealVect dx=a_dx;
   102    Real error[3];
   103    unsigned int status = 0;
   104    char phiF[]={"PHI0.hdf5"};
(lldb) n
Process 10401 stopped
* thread #1: tid = 0x85ee1, 0x0000000100001432
testPoisson3d.Darwin.64.g++.gfortran.DEBUG.ex`testPoisson(a_dx=0x00007fff5fbff510,
low=-20, high=20, input=0x00000001000030a2,
exactLap=0x0000000100002f07)(RealVect const&), double (*)(RealVect const&)) +
72 at testPoisson.cpp:103, queue = 'com.apple.main-thread', stop reason = step
over
    frame #0: 0x0000000100001432
testPoisson3d.Darwin.64.g++.gfortran.DEBUG.ex`testPoisson(a_dx=0x00007fff5fbff510,
low=-20, high=20, input=0x00000001000030a2,
exactLap=0x0000000100002f07)(RealVect const&), double (*)(RealVect const&)) +
72 at testPoisson.cpp:103
   101    RealVect dx=a_dx;
   102    Real error[3];
-> 103    unsigned int status = 0;
   104    char phiF[]={"PHI0.hdf5"};
   105    char exactF[]={"EXACT0.hdf5"};
   106    char fF[] ={"F0.hdf5"};
(lldb) p dx
(RealVect) $0 = {
  vect = ([0] = 0.23000000000000001, [1] = 0.23000000000000001, [2] =
0.23000000000000001)
}
(lldb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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