runtime $ gdb gopack GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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 "arm-none-linux-gnueabi"... (gdb) run grc _obj/runtime.a _go_.5 asm.5 cgocall.5 chan.5 closure.5 float.5 hashmap.5 iface.5 malloc.5 mcache.5 mcentral.5 mem.5 mfixalloc.5 mgc0.5 mheap.5 mheapmap32.5 msize.5 print.5 proc.5 reflect.5 rune.5 runtime.5 rt0.5 sema.5 signal.5 slice.5 string.5 symtab.5 sys.5 thread.5 traceback.5 cas.5 memset.5 vlop.5 vlrt.5 Starting program: /mnt/ext/home/bzhou/bin/gopack grc _obj/runtime.a _go_.5 asm.5 cgocall.5 chan.5 closure.5 float.5 hashmap.5 iface.5 malloc.5 mcache.5 mcentral.5 mem.5 mfixalloc.5 mgc0.5 mheap.5 mheapmap32.5 msize.5 print.5 proc.5 reflect.5 rune.5 runtime.5 rt0.5 sema.5 signal.5 slice.5 string.5 symtab.5 sys.5 thread.5 traceback.5 cas.5 memset.5 vlop.5 vlrt.5 Program received signal SIGSEGV, Segmentation fault. 0x4009c538 in strcmp () from /lib/libc.so.6 (gdb) bt #0 0x4009c538 in strcmp () from /lib/libc.so.6 #1 0x00009c68 in duplicate (name=0x5b188 "breakpoint", ofile=0xbedd3eec) at /mnt/ext/home/bzhou/go/src/cmd/gopack/ar.c:801 #2 0x00009d64 in objsym (s=0x28ad8, p=0x26008) at /mnt/ext/home/bzhou/go/src/cmd/gopack/ar.c:760 #3 0x0000c43c in objtraverse (fn=0x9cb8 , pointer=0x26008) at /mnt/ext/home/bzhou/go/src/libmach/obj.c:317 #4 0x0000b560 in scanobj (b=0x26038, ap=0x26008, size=) at /mnt/ext/home/bzhou/go/src/cmd/gopack/ar.c:625 #5 0x0000bf94 in rcmd (arname=0x26
, count=35, files=0xbedd4120) at /mnt/ext/home/bzhou/go/src/cmd/gopack/ar.c:361 #6 0x0000a18c in p9main (argc=35, argv=0xbedd4114) at /mnt/ext/home/bzhou/go/src/cmd/gopack/ar.c:246 #7 0x0000ea50 in main (argc=0, argv=0x5b188) at /mnt/ext/home/bzhou/go/src/lib9/main.c:35 (gdb)