https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68454

            Bug ID: 68454
           Summary: internal compiler error: Segmentation fault
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: luser.droog at gmail dot com
  Target Milestone: ---

Created attachment 36778
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36778&action=edit
gcc -E -o main.cpp src/lib/xpost_main.c

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-cygwin/5.2.0/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with:
/cygdrive/i/szsz/tmpp/gcc/gcc-5.2.0-1.x86_64/src/gcc-5.2.0/configure
--srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-5.2.0-1.x86_64/src/gcc-5.2.0
--prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc
--docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C
--build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin
--without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib
--enable-shared --enable-shared-libgcc --enable-static
--enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_atexit
--with-dwarf2 --with-tune=generic
--enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-graphite
--enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm
--enable-libquadmath --enable-libquadmath-support --enable-libssp
--enable-libada --enable-libgcj-sublibs --disable-java-awt --disable-symvers
--with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as
--with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix
--without-libintl-prefix --with-system-zlib --enable-linker-build-id
Thread model: posix
gcc version 5.2.0 (GCC) 

FWIW I got the same error from the 4.9.2-3 release.


Here's my complete session, from a fresh clone of the git to the error.

josh@LAPTOP-ILO10OOF ~
$ git clone https://github.com/luser-dr00g/xpost.git
Cloning into 'xpost'...
remote: Counting objects: 7988, done.
remote: Total 7988 (delta 0), reused 0 (delta 0), pack-reused 7988
Receiving objects: 100% (7988/7988), 1.38 MiB | 58.00 KiB/s, done.
Resolving deltas: 100% (5880/5880), done.
Checking connectivity... done.

josh@LAPTOP-ILO10OOF ~
$ cd xpost

josh@LAPTOP-ILO10OOF ~/xpost
$ ./autogen.sh
autoreconf-2.69: Entering directory `.'
autoreconf-2.69: configure.ac: not using Gettext
autoreconf-2.69: running: aclocal --force -I m4
autoreconf-2.69: configure.ac: tracing
autoreconf-2.69: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf-2.69: running: /usr/bin/autoconf-2.69 --force
autoreconf-2.69: running: /usr/bin/autoheader-2.69 --force
autoreconf-2.69: running: automake --add-missing --copy --force-missing
Unescaped left brace in regex is deprecated, passed through in regex; marked by
<-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake-1.14 line
3930.
configure.ac:16: installing './compile'
configure.ac:21: installing './config.guess'
configure.ac:21: installing './config.sub'
configure.ac:18: installing './install-sh'
configure.ac:18: installing './missing'
Makefile.am: installing './depcomp'
autoreconf-2.69: Leaving directory `.'
configure: creating cache config.cache
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/bin/sh: /home/josh/missing: No such file or directory
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-cygwin/bin/ld.exe
checking if the linker (/usr/x86_64-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking how to convert x86_64-unknown-cygwin file names to
x86_64-unknown-cygwin format... func_convert_file_noop
checking how to convert x86_64-unknown-cygwin file names to toolchain format...
func_convert_file_noop
checking for /usr/x86_64-pc-cygwin/bin/ld.exe option to reload object files...
-r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive
import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries...
func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for as... as
checking for dlltool... (cached) dlltool
checking for objdump... (cached) objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports
shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc option to accept ISO C99... none needed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for doxygen... doxygen
checking for splint... splint
checking for wc... wc
checking for life_signs in -lKenny... no
  Oh my god, they killed Kenny! You bastards!
checking for XPOST_LIB... yes
checking whether tests are built... no
checking for mass_quantities_of_bass_ale in -lFridge... no
checking for mass_quantities_of_any_ale in -lFridge... no
Warning: No ales were found in your refrigerator.
  We highly suggest that you rectify this situation immediately.
checking whether to enable assertions... yes
checking whether time.h and sys/time.h may both be included... yes
checking POSIX termios... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking for unistd.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking whether the C compiler supports -Wall -Wextra -Wshadow
-Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes
-Wpointer-arith -Wno-missing-field-initializers -Winline... yes
checking whether the linker supports -fdata-sections -ffunction-sections... yes
checking whether the C compiler supports -Wall -Wextra -Wshadow
-Wdeclaration-after-statement -Wmissing-prototypes -Wpointer-arith
-Wno-missing-field-initializers -Winline... yes
checking whether the linker supports -fdata-sections -ffunction-sections... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for gettimeofday... yes
checking for dirname... yes
checking for sigaction... yes
checking for buckets_of_erogenous_nym... no
checking whether _SC_PAGESIZE is available with sysconf()... yes
checking for buttox... no
checking for mmap... yes
checking for mremap... no
configure: updating cache config.cache
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

xpost 0.0.1

Configuration Options Summary:

  OS...................: cygwin

  mmap support.........: yes (mremap: no)
  Freetype support.....: yes
  Fontconfig support...: yes
  Devices:
    PGM image..........: always
    XCB................: yes
    Win32..............: no
  Documentation........: yes (make doc)
  splint...............: yes (make splint)
  wc...................: yes (make count)
  Tests................: no
  Valgrind.............: no

Compilation............: make (or gmake)
  CPPFLAGS.............: 
  CFLAGS...............: -g -O2
  LDFLAGS..............: 

Installation...........: make install (as root if needed, with 'su' or 'sudo')
  prefix...............: /usr/local

josh@LAPTOP-ILO10OOF ~/xpost
$ make
make  all-am
make[1]: Entering directory '/home/josh/xpost'
  CC       src/lib/src_lib_libxpost_la-xpost_array.lo
  CC       src/lib/src_lib_libxpost_la-xpost_compat.lo
  CC       src/lib/src_lib_libxpost_la-xpost_context.lo
  CC       src/lib/src_lib_libxpost_la-xpost_dev_bgr.lo
src/lib/xpost_dev_bgr.c: In function ‘_emit’:
src/lib/xpost_dev_bgr.c:286:9: warning: variable ‘height’ set but not used
[-Wunused-but-set-variable]
     int height;
         ^
src/lib/xpost_dev_bgr.c:285:9: warning: variable ‘stride’ set but not used
[-Wunused-but-set-variable]
     int stride;
         ^
  CC       src/lib/src_lib_libxpost_la-xpost_dev_raster.lo
src/lib/xpost_dev_raster.c: In function ‘_emit’:
src/lib/xpost_dev_raster.c:371:9: warning: variable ‘height’ set but not used
[-Wunused-but-set-variable]
     int height;
         ^
src/lib/xpost_dev_raster.c:370:9: warning: variable ‘stride’ set but not used
[-Wunused-but-set-variable]
     int stride;
         ^
  CC       src/lib/src_lib_libxpost_la-xpost_dev_generic.lo
  CC       src/lib/src_lib_libxpost_la-xpost_dict.lo
  CC       src/lib/src_lib_libxpost_la-xpost_error.lo
  CC       src/lib/src_lib_libxpost_la-xpost_file.lo
  CC       src/lib/src_lib_libxpost_la-xpost_font.lo
src/lib/xpost_font.c: In function ‘xpost_font_face_transform’:
src/lib/xpost_font.c:232:15: warning: variable ‘pen’ set but not used
[-Wunused-but-set-variable]
     FT_Vector pen;
               ^
  CC       src/lib/src_lib_libxpost_la-xpost_free.lo
  CC       src/lib/src_lib_libxpost_la-xpost_garbage.lo
  CC       src/lib/src_lib_libxpost_la-xpost_interpreter.lo
src/lib/xpost_interpreter.c: In function ‘xpost_create’:
src/lib/xpost_interpreter.c:1076:50: warning: unused parameter ‘set_size’
[-Wunused-parameter]
                                   Xpost_Set_Size set_size,
                                                  ^
src/lib/xpost_interpreter.c:1077:39: warning: unused parameter ‘width’
[-Wunused-parameter]
                                   int width,
                                       ^
src/lib/xpost_interpreter.c:1078:39: warning: unused parameter ‘height’
[-Wunused-parameter]
                                   int height)
                                       ^
  CC       src/lib/src_lib_libxpost_la-xpost_log.lo
  CC       src/lib/src_lib_libxpost_la-xpost_main.lo
src/lib/xpost_main.c: In function ‘xpost_init’:
src/lib/xpost_main.c:114:5: internal compiler error: Segmentation fault
     _xpost_start_time = tv.tv_sec * 1000 + tv.tv_usec / 1000.0;
     ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Makefile:1206: recipe for target 'src/lib/src_lib_libxpost_la-xpost_main.lo'
failed
make[1]: *** [src/lib/src_lib_libxpost_la-xpost_main.lo] Error 1
make[1]: Leaving directory '/home/josh/xpost'
Makefile:739: recipe for target 'all' failed
make: *** [all] Error 2

josh@LAPTOP-ILO10OOF ~/xpost
$ 

Not sure how to produce the "complete preprocessed source" described (vaguely
IMO) in https://gcc.gnu.org/bugs/ but I'll attach the `gcc -E` output of the
xpost_main.c source file where it choked.

Reply via email to