Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2016 00:06:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 215350] devel/powerpc64-gcc -r4428604: The 6.2.0 based gcc (indirectly?) gets SIGSEGV building src/sys/modules/agp/agp_if.o but ctfconvert involved
Message-ID:  <bug-215350-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215350

            Bug ID: 215350
           Summary: devel/powerpc64-gcc -r4428604: The 6.2.0 based gcc
                    (indirectly?) gets SIGSEGV building
                    src/sys/modules/agp/agp_if.o but ctfconvert involved
           Product: Ports & Packages
           Version: Latest
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: bapt@FreeBSD.org
          Reporter: markmi@dsl-only.net
          Assignee: bapt@FreeBSD.org
             Flags: maintainer-feedback?(bapt@FreeBSD.org)

[This is from a amd64 -> powerpc64 cross build.]

This seems to involve ctfconvert, not just powerpc64-gcc

# grep "ERROR"
/root/sys_typescripts/typescript_make_powerpc64vtsc_nodebug_incl_clang_xtoo=
lchain_kernel-amd64-host-2016-12-16:14:43:08
| more
ERROR: ctfconvert: die 10273: failed to get ref: No entry found
[dwarf_attrval_unsigned(177)]
ERROR: ctfmerge: No ctf sections found to merge
.ERROR_TARGET=3D'agp_if.o'
.ERROR_META_FILE=3D'/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerp=
c64/usr/src/sys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/agp/agp_if.=
o.meta'
.ERROR_TARGET=3D'agp_if.o'
.ERROR_META_FILE=3D'/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerp=
c64/usr/src/sys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/agp/agp_if.=
o.meta'
.ERROR_TARGET=3D'all_subdir_agp'
.ERROR_META_FILE=3D''
ERROR: ctfconvert: die 26932: failed to get ref: No entry found
[dwarf_attrval_unsigned(177)]
.ERROR_TARGET=3D''
.ERROR_META_FILE=3D''
.ERROR_TARGET=3D'all_subdir_acl_posix1e'
.ERROR_META_FILE=3D''
.ERROR_TARGET=3D''
.ERROR_META_FILE=3D''
.ERROR_TARGET=3D'all_subdir_acl_nfs4'
.ERROR_META_FILE=3D''
ERROR: ctfconvert: die 46063: failed to get ref: No entry found
[dwarf_attrval_unsigned(177)]
.ERROR_TARGET=3D''
.ERROR_META_FILE=3D''
.ERROR_TARGET=3D'all_subdir_ae'
.ERROR_META_FILE=3D''
ERROR: ctfconvert: die 52618: failed to get ref: No entry found
[dwarf_attrval_unsigned(177)]
. . .

First looking at the ERROR_META_FILE contents (same file as listed twice
above):

# less
/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GENE=
RIC64vtsc-NODBG/modules/usr/src/sys/modules/agp/agp_if.o.meta
# Meta data file
/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GENE=
RIC64vtsc-NODBG/modules/usr/src/sys/modules/agp/agp_if.o.meta
CMD /usr/local/bin/powerpc64-unknown-freebsd12.0-gcc -isystem
/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/tmp/usr/=
include
-L/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/tmp/us=
r/lib
-B/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/tmp/us=
r/lib
--sysroot=3D/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/=
src/tmp
-B/usr/local/powerpc64-freebsd/bin/  -O2 -pipe  -fno-strict-aliasing -Werror
-D_KERNEL -DKLD_MODULE -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GENE=
RIC64vtsc-NODBG/opt_global.h
-I. -I/usr/src/sys -fno-common -g -mlongcall -fno-omit-frame-pointer
-I/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GE=
NERIC64vtsc-NODBG
 -mno-altivec -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign
-fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option
-Wno-unknown-pragmas -Wno-error=3Daddress
-Wno-error=3Daggressive-loop-optimizations -Wno-error=3Darray-bounds
-Wno-error=3Dattributes -Wno-error=3Dcast-qual -Wno-error=3Denum-compare
-Wno-error=3Dinline -Wno-error=3Dmaybe-uninitialized -Wno-error=3Doverflow
-Wno-error=3Dsequence-point -Wno-error=3Dstrict-overflow
-Wno-error=3Dunused-but-set-variable -Wno-error=3Dmisleading-indentation
-Wno-error=3Dnonnull-compare -Wno-error=3Dshift-overflow
-Wno-error=3Dtautological-compare  -v -finline-limit=3D15000 -fms-extensions
--param inline-unit-growth=3D100 --param large-function-growth=3D1000 -msof=
t-float
-mcall-aixdesc  -std=3Diso9899:1999 -c agp_if.c -o agp_if.o
CMD ctfconvert -L VERSION -g agp_if.o
CWD
/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GENE=
RIC64vtsc-NODBG/modules/usr/src/sys/modules/agp
TARGET agp_if.o
-- command output --
Using built-in specs.
COLLECT_GCC=3D/usr/local/bin/powerpc64-unknown-freebsd12.0-gcc
Target: powerpc64-unknown-freebsd12.0
Configured with:
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/gcc-6.2.0/configure
--target=3Dpowerpc64-unknown-freebsd12.0 --disable-nls --enable-languages=
=3Dc,c++
--without-headers --with-gmp=3D/usr/local --with-pkgversion=3D'FreeBSD Ports
Collection for powerpc64' --with-system-zlib
--with-gcc-include-dir=3D/usr/include/c++/v1/
--with-as=3D/usr/local/bin/powerpc64-freebsd-as
--with-ld=3D/usr/local/bin/powerpc64-freebsd-ld --prefix=3D/usr/local
--localstatedir=3D/var --mandir=3D/usr/local/man --infodir=3D/usr/local/inf=
o/
--build=3Dx86_64-unknown-freebsd12.0
Thread model: posix
gcc version 6.2.0 (FreeBSD Ports Collection for powerpc64)=20
COLLECT_GCC_OPTIONS=3D'-isystem'
'/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/tmp/usr=
/include'
'-L/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/tmp/u=
sr/lib'
'-B'
'/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/tmp/usr=
/lib'
'-B' '/usr/local/powerpc64-freebsd/bin/' '-O2' '-pipe' '-fno-strict-aliasin=
g'
'-Werror' '-D' '_KERNEL' '-D' 'KLD_MODULE' '-nostdinc' '-D'
'HAVE_KERNEL_OPTION_HEADERS' '-include'
'/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GEN=
ERIC64vtsc-NODBG/opt_global.h'
'-I' '.' '-I' '/usr/src/sys' '-fno-common' '-g' '-mlongcall'
'-fno-omit-frame-pointer' '-I'
'/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GEN=
ERIC64vtsc-NODBG'
'-mno-altivec' '-ffreestanding' '-fwrapv' '-fstack-protector' '-gdwarf-2'
'-Wall' '-Wredundant-decls' '-Wnested-externs' '-Wstrict-prototypes'
'-Wmissing-prototypes' '-Wpointer-arith' '-Winline' '-Wcast-qual' '-Wundef'
'-Wno-pointer-sign' '-fformat-extensions' '-Wmissing-include-dirs'
'-fdiagnostics-show-option' '-Wno-unknown-pragmas' '-Wno-error=3Daddress'
'-Wno-error=3Daggressive-loop-optimizations' '-Wno-error=3Darray-bounds'
'-Wno-error=3Dattributes' '-Wno-error=3Dcast-qual' '-Wno-error=3Denum-compa=
re'
'-Wno-error=3Dinline' '-Wno-error=3Dmaybe-uninitialized' '-Wno-error=3Dover=
flow'
'-Wno-error=3Dsequence-point' '-Wno-error=3Dstrict-overflow'
'-Wno-error=3Dunused-but-set-variable' '-Wno-error=3Dmisleading-indentation'
'-Wno-error=3Dnonnull-compare' '-Wno-error=3Dshift-overflow'
'-Wno-error=3Dtautological-compare' '-v' '-finline-limit=3D15000' '-fms-ext=
ensions'
'--param' 'inline-unit-growth=3D100' '--param' 'large-function-growth=3D100=
0'
'-msoft-float' '-mcall-aixdesc' '-std=3Dc99' '-c' '-o' 'agp_if.o'
 /usr/local/libexec/gcc/powerpc64-unknown-freebsd12.0/6.2.0/cc1 -quiet
-nostdinc -v -I . -I /usr/src/sys -I
/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GENE=
RIC64vtsc-NODBG
-isysroot
/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/tmp -D
_KERNEL -D KLD_MODULE -D HAVE_KERNEL_OPTION_HEADERS -isystem
/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/tmp/usr/=
include
-include
/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GENE=
RIC64vtsc-NODBG/opt_global.h
agp_if.c -quiet -dumpbase agp_if.c -mlongcall -mno-altivec -msoft-float
-mcall-aixdesc -auxbase-strip agp_if.o -g -gdwarf-2 -O2 -Werror -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign
-Wmissing-include-dirs -Wno-unknown-pragmas -Wno-error=3Daddress
-Wno-error=3Daggressive-loop-optimizations -Wno-error=3Darray-bounds
-Wno-error=3Dattributes -Wno-error=3Dcast-qual -Wno-error=3Denum-compare
-Wno-error=3Dinline -Wno-error=3Dmaybe-uninitialized -Wno-error=3Doverflow
-Wno-error=3Dsequence-point -Wno-error=3Dstrict-overflow
-Wno-error=3Dunused-but-set-variable -Wno-error=3Dmisleading-indentation
-Wno-error=3Dnonnull-compare -Wno-error=3Dshift-overflow
-Wno-error=3Dtautological-compare -std=3Dc99 -version -fno-strict-aliasing
-fno-common -fno-omit-frame-pointer -ffreestanding -fwrapv -fstack-protector
-fformat-extensions -fdiagnostics-show-option -finline-limit=3D15000
-fms-extensions --param inline-unit-growth=3D100 --param
large-function-growth=3D1000 -o - |
 /usr/local/bin/powerpc64-freebsd-as -v -I . -I /usr/src/sys -I
/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GENE=
RIC64vtsc-NODBG
--traditional-format -a64 -mppc64 -many -o agp_if.o
GNU C99 (FreeBSD Ports Collection for powerpc64) version 6.2.0
(powerpc64-unknown-freebsd12.0)
        compiled by GNU C version 4.2.1 Compatible FreeBSD Clang 3.9.0
(tags/RELEASE_390/final 280324), GMP version 5.1.3, MPFR version 3.1.5, MPC
version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131=
072
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/src/sys

/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GENE=
RIC64vtsc-NODBG

/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/tmp/usr/=
include
End of search list.
GNU C99 (FreeBSD Ports Collection for powerpc64) version 6.2.0
(powerpc64-unknown-freebsd12.0)
        compiled by GNU C version 4.2.1 Compatible FreeBSD Clang 3.9.0
(tags/RELEASE_390/final 280324), GMP version 5.1.3, MPFR version 3.1.5, MPC
version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131=
072
GNU assembler version 2.27 (powerpc64-freebsd) using BFD version (GNU Binut=
ils)
2.27
Compiler executable checksum: 4c33be12b12e9d0fcc40f435efb66e04
COMPILER_PATH=3D/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/=
usr/src/tmp/usr/lib/:/usr/local/powerpc64-freebsd/bin/:/usr/local/libexec/g=
cc/powerpc64-unknown-freebsd12.0/6.2.0/:/usr/local/libexec/gcc/powerpc64-un=
known-freebsd12.0/6.2.0/:/usr/local/libexec/gcc/powerpc64-unknown-freebsd12=
.0/:/usr/local/lib/gcc/powerpc64-unknown-freebsd12.0/6.2.0/:/usr/local/lib/=
gcc/powerpc64-unknown-freebsd12.0/
LIBRARY_PATH=3D/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/u=
sr/src/tmp/usr/lib/:/usr/local/powerpc64-freebsd/bin/:/usr/local/lib/gcc/po=
werpc64-unknown-freebsd12.0/6.2.0/:/usr/obj/powerpc64vtsc_xtoolchain_kernel=
/powerpc.powerpc64/usr/src/tmp/lib/:/usr/obj/powerpc64vtsc_xtoolchain_kerne=
l/powerpc.powerpc64/usr/src/tmp/usr/lib/
COLLECT_GCC_OPTIONS=3D'-isystem'
'/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/tmp/usr=
/include'
'-L/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/tmp/u=
sr/lib'
'-B'
'/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/tmp/usr=
/lib'
'-B' '/usr/local/powerpc64-freebsd/bin/' '-O2' '-pipe' '-fno-strict-aliasin=
g'
'-Werror' '-D' '_KERNEL' '-D' 'KLD_MODULE' '-nostdinc' '-D'
'HAVE_KERNEL_OPTION_HEADERS' '-include'
'/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GEN=
ERIC64vtsc-NODBG/opt_global.h'
'-I' '.' '-I' '/usr/src/sys' '-fno-common' '-g' '-mlongcall'
'-fno-omit-frame-pointer' '-I'
'/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc64/usr/src/sys/GEN=
ERIC64vtsc-NODBG'
'-mno-altivec' '-ffreestanding' '-fwrapv' '-fstack-protector' '-gdwarf-2'
'-Wall' '-Wredundant-decls' '-Wnested-externs' '-Wstrict-prototypes'
'-Wmissing-prototypes' '-Wpointer-arith' '-Winline' '-Wcast-qual' '-Wundef'
'-Wno-pointer-sign' '-fformat-extensions' '-Wmissing-include-dirs'
'-fdiagnostics-show-option' '-Wno-unknown-pragmas' '-Wno-error=3Daddress'
'-Wno-error=3Daggressive-loop-optimizations' '-Wno-error=3Darray-bounds'
'-Wno-error=3Dattributes' '-Wno-error=3Dcast-qual' '-Wno-error=3Denum-compa=
re'
'-Wno-error=3Dinline' '-Wno-error=3Dmaybe-uninitialized' '-Wno-error=3Dover=
flow'
'-Wno-error=3Dsequence-point' '-Wno-error=3Dstrict-overflow'
'-Wno-error=3Dunused-but-set-variable' '-Wno-error=3Dmisleading-indentation'
'-Wno-error=3Dnonnull-compare' '-Wno-error=3Dshift-overflow'
'-Wno-error=3Dtautological-compare' '-v' '-finline-limit=3D15000' '-fms-ext=
ensions'
'--param' 'inline-unit-growth=3D100' '--param' 'large-function-growth=3D100=
0'
'-msoft-float' '-mcall-aixdesc' '-std=3Dc99' '-c' '-o' 'agp_if.o'
Segmentation fault (core dumped)
*** Error code 139




Despite the above /var/crash/ has only a ctfconvert.21118.core:

# /usr/local/bin/gdb ctfconvert /var/crash/ctfconvert.21118.core=20
GNU gdb (GDB) 7.11.1 [GDB v7.11.1 for FreeBSD]
. . .
Reading symbols from ctfconvert...Reading symbols from
/usr/lib/debug//usr/bin/ctfconvert.debug...done.
done.
[New LWP 100803]
Core was generated by `ctfconvert -L VERSION -g agp_if.o'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000410e52 in strtab_copyin (sp=3D<optimized out>, str=3D0x49 <=
error:
Cannot access memory at address 0x49>, len=3D<optimized out>) at
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ct=
f/cvt/strtab.c:138
138             while (len !=3D 0) {
(gdb) bt
#0  0x0000000000410e52 in strtab_copyin (sp=3D<optimized out>, str=3D0x49 <=
error:
Cannot access memory at address 0x49>, len=3D<optimized out>) at
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ct=
f/cvt/strtab.c:138
#1  strtab_insert (sp=3D<optimized out>, str=3D<optimized out>) at
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ct=
f/cvt/strtab.c:193
#2  0x000000000040592b in parseterminate (fmt=3D0x800a74000 "") at
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ct=
f/cvt/ctf.c:85
#3  0x0000000000405880 in ctf_load (file=3D<optimized out>, buf=3D<optimize=
d out>,
bufsz=3D34370992512, si=3D0x0, label=3D0x0) at
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ct=
f/cvt/ctf.c:1359
#4  0x000000000040412b in ctf_buf_write (p=3D<optimized out>, n=3D<error re=
ading
variable: Cannot access memory at address 0x8>, b=3D<optimized out>) at
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ct=
f/cvt/ctf.c:133
#5  write_unsized_type_rec (b=3D<optimized out>, ctt=3D<optimized out>) at
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ct=
f/cvt/ctf.c:277
#6  write_type (arg1=3D0x800b02800, arg2=3D<optimized out>) at
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ct=
f/cvt/ctf.c:467
#7  0x0000000000403bcc in write_type (arg1=3D0x800abd140, arg2=3D<optimized=
 out>)
at
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ct=
f/cvt/ctf.c:412
#8  0x0000000000403641 in compress_start (rb=3D<optimized out>) at
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ct=
f/cvt/ctf.c:561
#9  write_compressed_buffer (h=3D<optimized out>, resszp=3D<optimized out>,
buf=3D<optimized out>) at
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ct=
f/cvt/ctf.c:680
#10 ctf_gen (iiburst=3D0x800a100a0, resszp=3D0x49c700, do_compress=3D0) at
/usr/src/cddl/usr.bin/ctfconvert/../../../cddl/contrib/opensolaris/tools/ct=
f/cvt/ctf.c:757
#11 0x000000000040035f in ?? ()
#12 0x0000000000000000 in ?? ()

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215350-13>