package gdb:/usr/src/gdb> gdb g++
GNU gdb (GDB) 7.9
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-unknown-linux-gnu".
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 g++...done.
(gdb) quit
package gdb:/usr/src/gdb> ls
build  build.conf  foo.cc  gdb-7.9
package gdb:/usr/src/gdb> gdb g++
GNU gdb (GDB) 7.9
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-unknown-linux-gnu".
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 g++...done.
(gdb)  run -c foo.cc
Starting program: /usr/bin/g++ -c foo.cc
In file included from foo.cc:1:0:
/usr/include/c++/4.9.2/limits:1558:7: internal compiler error: Illegal 
instruction
       min() _GLIBCXX_USE_NOEXCEPT { return __FLT_MIN__; }
       ^
0x95017f crash_signal
    ../../gcc-4.9.2/gcc/toplev.c:337
0x7ffff673e51f ???
    
/usr/src/glibc/glibc-2.21/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
[Inferior 1 (process 3467) exited with code 01]
(gdb) display/i $pc
1: x/i $pc
<error: No registers.>
(gdb) bt
No stack.
(gdb)
No stack.
(gdb) quit
package gdb:/usr/src/gdb> gdb g++
GNU gdb (GDB) 7.9
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-unknown-linux-gnu".
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 g++...done.
(gdb)  run -c foo.cc
Starting program: /usr/bin/g++ -c foo.cc
In file included from foo.cc:1:0:
/usr/include/c++/4.9.2/limits:1558:7: internal compiler error: Illegal 
instruction
       min() _GLIBCXX_USE_NOEXCEPT { return __FLT_MIN__; }
       ^
0x95017f crash_signal
    ../../gcc-4.9.2/gcc/toplev.c:337
0x7ffff673e51f ???
    
/usr/src/glibc/glibc-2.21/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
[Inferior 1 (process 3475) exited with code 01]
(gdb) disassemble 0x7ffff673e51f,+32
Dump of assembler code from 0x7ffff673e51f to 0x7ffff673e53f:
   0x00007ffff673e51f:    Cannot access memory at address 0x7ffff673e51f
(gdb) g++ -dH -c foo.cc
Undefined command: "g++".  Try "help".
(gdb)
Undefined command: "g++".  Try "help".
(gdb) quit
package gdb:/usr/src/gdb> g++ -dH -c foo.cc
In file included from foo.cc:1:0:
/usr/include/c++/4.9.2/limits:1558:7: internal compiler error: Illegal 
instruction
       min() _GLIBCXX_USE_NOEXCEPT { return __FLT_MIN__; }
       ^
0x95017f crash_signal
    ../../gcc-4.9.2/gcc/toplev.c:337
0x7fe02006a51f ???
    
/usr/src/glibc/glibc-2.21/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
g++: internal compiler error: Aborted (program cc1plus)
0x40c88c execute
    ../../gcc-4.9.2/gcc/gcc.c:2854
0x40cc54 do_spec_1
    ../../gcc-4.9.2/gcc/gcc.c:4658
0x40f516 process_brace_body
    ../../gcc-4.9.2/gcc/gcc.c:5941
0x40f516 handle_braces
    ../../gcc-4.9.2/gcc/gcc.c:5855
0x40dac9 do_spec_1
    ../../gcc-4.9.2/gcc/gcc.c:5312
0x40f516 process_brace_body
    ../../gcc-4.9.2/gcc/gcc.c:5941
0x40f516 handle_braces
    ../../gcc-4.9.2/gcc/gcc.c:5855
0x40dac9 do_spec_1
    ../../gcc-4.9.2/gcc/gcc.c:5312
0x40d833 do_spec_1
    ../../gcc-4.9.2/gcc/gcc.c:5427
0x40f516 process_brace_body
    ../../gcc-4.9.2/gcc/gcc.c:5941
0x40f516 handle_braces
    ../../gcc-4.9.2/gcc/gcc.c:5855
0x40dac9 do_spec_1
    ../../gcc-4.9.2/gcc/gcc.c:5312
0x40f516 process_brace_body
    ../../gcc-4.9.2/gcc/gcc.c:5941
0x40f516 handle_braces
    ../../gcc-4.9.2/gcc/gcc.c:5855
0x40dac9 do_spec_1
    ../../gcc-4.9.2/gcc/gcc.c:5312
0x40f516 process_brace_body
    ../../gcc-4.9.2/gcc/gcc.c:5941
0x40f516 handle_braces
    ../../gcc-4.9.2/gcc/gcc.c:5855
0x40dac9 do_spec_1
    ../../gcc-4.9.2/gcc/gcc.c:5312
0x40f516 process_brace_body
    ../../gcc-4.9.2/gcc/gcc.c:5941
0x40f516 handle_braces
    ../../gcc-4.9.2/gcc/gcc.c:5855
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
package gdb:/usr/src/gdb> ls
build  build.conf  core  foo.cc  gdb-7.9
package gdb:/usr/src/gdb> gdb -c core g++
GNU gdb (GDB) 7.9
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-unknown-linux-gnu".
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 g++...done.

warning: core file may not match specified executable file.
[New LWP 3483]
Core was generated by `/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/cc1plus 
-quiet -D_GNU_SOURCE fo'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007fe02006a497 in ?? ()
(gdb) bt
#0  0x00007fe02006a497 in ?? ()
#1  0x00007fe02006b86a in ?? ()
#2  0x0000000000000020 in ?? ()
#3  0x0000000000000000 in ?? ()
(gdb) quit
package gdb:/usr/src/gdb>


Wayne Sallee
wa...@waynesallee.com

--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to