On Thu, Aug 23, 2018 at 2:14 PM, Amandeep Gautam <amandeepgaut...@gmail.com> wrote: > > /export/home/amandeep/gccgo-obj/./gcc/go1 > /export/home/amandeep/gccgo-src/libgo/go/fmt/doc.go > /export/home/amandeep/gccgo-src/libgo/go/fmt/format.go > /export/home/amandeep/gccgo-src/libgo/go/fmt/print.go > /export/home/amandeep/gccgo-src/libgo/go/fmt/scan.go -quiet -dumpbase doc.go > -mcpu=v9 -auxbase-strip .libs/fmt.o -g -O2 -version -fgo-pkgpath=fmt -fPIC > -I . -L/export/home/amandeep/gccgo-obj/./gcc -o /var/tmp//ccmxS20e.s > > and I got: > > GNU Go (GCC) version 8.2.1 20180814 (sparc-sun-solaris2.10) > compiled by GNU C version 8.2.1 20180814, GMP version 6.1.2, MPFR > version 4.0.0, MPC version 1.0.2, isl version csw-0.18-GMP > > GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 > GNU Go (GCC) version 8.2.1 20180814 (sparc-sun-solaris2.10) > compiled by GNU C version 8.2.1 20180814, GMP version 6.1.2, MPFR > version 4.0.0, MPC version 1.0.2, isl version csw-0.18-GMP > > GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 > /export/home/amandeep/gccgo-src/libgo/go/fmt/format.go:8:9: error: import > file 'strconv' not found > "strconv" > ^ > /export/home/amandeep/gccgo-src/libgo/go/fmt/format.go:9:14: error: import > file 'unicode/utf8' not found > "unicode/utf8" > ^ > ... and many more before ending into ... > > /export/home/amandeep/gccgo-src/libgo/go/fmt/scan.go:688:52: error: expected > integer, floating, complex, or string type > s.errorString("unsigned integer overflow on token " + tok) > ^ > Segmentation Fault (core dumped) > > I tried analyzing the core dumped. so I did: gdb > /export/home/amandeep/gccgo-obj/./gcc/go1 ./core and below is how the promt > looks: > > GNU gdb (GDB) 7.7 > Copyright (C) 2014 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 "sparc-sun-solaris2.10". > 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 /export/home/amandeep/gccgo-obj/./gcc/go1...done. > > warning: Couldn't find general-purpose registers in core file. > > warning: Wrong size fpregset in core file. > [Thread debugging using libthread_db enabled] > [New Thread 1 (LWP 1)] > > warning: Couldn't find general-purpose registers in core file. > > warning: Couldn't find general-purpose registers in core file. > Error in re-setting breakpoint -1: PC register is not available > Error in re-setting breakpoint -2: PC register is not available > Error in re-setting breakpoint -3: PC register is not available > Error in re-setting breakpoint -4: PC register is not available > Error in re-setting breakpoint -5: PC register is not available > Core was generated by `/export/home/amandeep/gccgo-obj/./gcc/go1 > /export/home/amandeep/gccgo-src/libgo'. > > warning: Couldn't find general-purpose registers in core file. > > warning: Wrong size fpregset in core file. > PC not available > #-1 <unavailable> in ?? () > (gdb) bt > #-1 <unavailable> in ?? () > #0 <unavailable> in ?? () > frame.c:472: internal-error: get_frame_id: Assertion `fi->this_id.p' failed. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Quit this debugging session? (y or n) n > frame.c:472: internal-error: get_frame_id: Assertion `fi->this_id.p' failed. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Create a core file of GDB? (y or n) y > Command aborted. > > Have I steps mentioned correctly? Any suggestions on the next steps?
There is something badly wrong with your gdb. Unfortunately I can't help you with that. I have not seen that behavior before. I guess you could hope that the problem is only with the core file, and run the program inside gdb rather than trying to look at the core. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.