public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94493] New: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla
@ 2020-04-05 20:34 gcc-bugs at opsec dot eu
2020-04-05 20:35 ` [Bug c++/94493] " gcc-bugs at opsec dot eu
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: gcc-bugs at opsec dot eu @ 2020-04-05 20:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94493
Bug ID: 94493
Summary: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if
building ftp/filezilla
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc-bugs at opsec dot eu
Target Milestone: ---
Created attachment 48200
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48200&action=edit
output of test-compile
ftp/filezilla is at version 3.40.0 in the FreeBSD ports tree.
As maintainer for that port, I try to update to 3.47.2.1, but all newer
versions fail to compile, because the g++9 used (lang/gcc9) crashes.
The generated *.i* file is empty (!)
-rw------- 1 pi wheel 83460096 Apr 5 22:30 cc1plus.core
-rw-rw-r-- 1 pi wheel 0 Apr 5 22:30 engine_context.ii
The coredump can be found at:
https://opsec.eu/backup/cc1plus.core
The script to run the compile is attached, as well as the output.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94493] FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla
2020-04-05 20:34 [Bug c++/94493] New: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla gcc-bugs at opsec dot eu
@ 2020-04-05 20:35 ` gcc-bugs at opsec dot eu
2020-04-05 20:37 ` gcc-bugs at opsec dot eu
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: gcc-bugs at opsec dot eu @ 2020-04-05 20:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94493
--- Comment #1 from Kurt Jaeger <gcc-bugs at opsec dot eu> ---
Created attachment 48201
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48201&action=edit
the compile script
The compile script
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94493] FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla
2020-04-05 20:34 [Bug c++/94493] New: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla gcc-bugs at opsec dot eu
2020-04-05 20:35 ` [Bug c++/94493] " gcc-bugs at opsec dot eu
@ 2020-04-05 20:37 ` gcc-bugs at opsec dot eu
2020-04-05 20:40 ` gcc-bugs at opsec dot eu
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: gcc-bugs at opsec dot eu @ 2020-04-05 20:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94493
--- Comment #2 from Kurt Jaeger <gcc-bugs at opsec dot eu> ---
An attempt to produce a reduced test case failed.
Even commenting the first line of of the first include in engine_context.cpp
cause a crash.
FreeBSD version:
FreeBSD fc.opsec.eu 13.0-CURRENT FreeBSD 13.0-CURRENT #1 r359631M: Sun Apr 5
01:05:13 CEST 2020 pi@fc.opsec.eu:/usr/obj/usr/src/amd64.amd64/sys/GENERIC
amd64
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94493] FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla
2020-04-05 20:34 [Bug c++/94493] New: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla gcc-bugs at opsec dot eu
2020-04-05 20:35 ` [Bug c++/94493] " gcc-bugs at opsec dot eu
2020-04-05 20:37 ` gcc-bugs at opsec dot eu
@ 2020-04-05 20:40 ` gcc-bugs at opsec dot eu
2020-04-05 20:42 ` gcc-bugs at opsec dot eu
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: gcc-bugs at opsec dot eu @ 2020-04-05 20:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94493
--- Comment #3 from Kurt Jaeger <gcc-bugs at opsec dot eu> ---
g++9 -v
Using built-in specs.
COLLECT_GCC=g++9
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc9/gcc/x86_64-portbld-freebsd13.0/9.3.0/lto-wrapper
Target: x86_64-portbld-freebsd13.0
Configured with: /wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/configure
--enable-multilib --enable-plugin --with-build-config=bootstrap-debug
--disable-nls --enable-gnu-indirect-function --libdir=/usr/local/lib/gcc9
--libexecdir=/usr/local/libexec/gcc9 --program-suffix=9
--with-as=/usr/local/bin/as --with-gmp=/usr/local
--with-gxx-include-dir=/usr/local/lib/gcc9/include/c++/
--with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection'
--with-system-zlib --enable-languages=c,c++,objc,fortran --prefix=/usr/local
--localstatedir=/var --mandir=/usr/local/man
--infodir=/usr/local/share/info/gcc9 --build=x86_64-portbld-freebsd13.0
Thread model: posix
gcc version 9.3.0 (FreeBSD Ports Collection)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94493] FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla
2020-04-05 20:34 [Bug c++/94493] New: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla gcc-bugs at opsec dot eu
` (2 preceding siblings ...)
2020-04-05 20:40 ` gcc-bugs at opsec dot eu
@ 2020-04-05 20:42 ` gcc-bugs at opsec dot eu
2020-04-06 6:47 ` marxin at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: gcc-bugs at opsec dot eu @ 2020-04-05 20:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94493
--- Comment #4 from Kurt Jaeger <gcc-bugs at opsec dot eu> ---
Created attachment 48202
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48202&action=edit
The source code
As described, it crashes very early in the compile
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94493] FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla
2020-04-05 20:34 [Bug c++/94493] New: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla gcc-bugs at opsec dot eu
` (3 preceding siblings ...)
2020-04-05 20:42 ` gcc-bugs at opsec dot eu
@ 2020-04-06 6:47 ` marxin at gcc dot gnu.org
2020-04-06 7:29 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-06 6:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94493
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2020-04-06
Status|UNCONFIRMED |WAITING
CC| |marxin at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Can you please provide a pre-processed test-case (-E option)?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94493] FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla
2020-04-05 20:34 [Bug c++/94493] New: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla gcc-bugs at opsec dot eu
` (4 preceding siblings ...)
2020-04-06 6:47 ` marxin at gcc dot gnu.org
@ 2020-04-06 7:29 ` rguenth at gcc dot gnu.org
2020-04-06 16:46 ` gcc-bugs at opsec dot eu
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-04-06 7:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94493
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Can you try if not using PCH fixes the issue?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94493] FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla
2020-04-05 20:34 [Bug c++/94493] New: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla gcc-bugs at opsec dot eu
` (5 preceding siblings ...)
2020-04-06 7:29 ` rguenth at gcc dot gnu.org
@ 2020-04-06 16:46 ` gcc-bugs at opsec dot eu
2020-04-06 16:48 ` gcc-bugs at opsec dot eu
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: gcc-bugs at opsec dot eu @ 2020-04-06 16:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94493
--- Comment #7 from Kurt Jaeger <gcc-bugs at opsec dot eu> ---
This command produces -E output, see attached out.txt and err.txt:
g++9 \
-v \
-E \
-std=c++17 \
-DHAVE_CONFIG_H \
-I. \
-I../../src/include \
-isystem /usr/local/include \
-fpch-preprocess \
-fno-strict-aliasing \
-fwrapv \
-fno-aggressive-loop-optimizations \
-fsanitize=undefined \
-O2 \
-Wl,-rpath=/usr/local/lib/gcc9 \
-Wall \
-Wextra \
-g \
engine_context.cpp
Adding -fstack-protector-strong causes it to crash without producing output.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94493] FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla
2020-04-05 20:34 [Bug c++/94493] New: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla gcc-bugs at opsec dot eu
` (6 preceding siblings ...)
2020-04-06 16:46 ` gcc-bugs at opsec dot eu
@ 2020-04-06 16:48 ` gcc-bugs at opsec dot eu
2020-04-06 18:22 ` gerald at pfeifer dot com
2020-04-06 18:27 ` gcc-bugs at opsec dot eu
9 siblings, 0 replies; 11+ messages in thread
From: gcc-bugs at opsec dot eu @ 2020-04-06 16:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94493
--- Comment #8 from Kurt Jaeger <gcc-bugs at opsec dot eu> ---
Created attachment 48215
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48215&action=edit
stderr of working build
stdout is at: https://people.freebsd.org/~pi/logs/out.txt
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94493] FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla
2020-04-05 20:34 [Bug c++/94493] New: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla gcc-bugs at opsec dot eu
` (7 preceding siblings ...)
2020-04-06 16:48 ` gcc-bugs at opsec dot eu
@ 2020-04-06 18:22 ` gerald at pfeifer dot com
2020-04-06 18:27 ` gcc-bugs at opsec dot eu
9 siblings, 0 replies; 11+ messages in thread
From: gerald at pfeifer dot com @ 2020-04-06 18:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94493
Gerald Pfeifer <gerald at pfeifer dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gerald at pfeifer dot com
--- Comment #9 from Gerald Pfeifer <gerald at pfeifer dot com> ---
Created attachment 48216
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48216&action=edit
Preprocessed sources
(In reply to Kurt Jaeger from comment #8)
> stdout is at: https://people.freebsd.org/~pi/logs/out.txt
I am attaching this here in GCC Bugzilla as x.ii, pre-processed sources.
Kurt, I tried to reproduce this on x86_64-suse-linux (9.2.1 20200306),
i386-unknown-freebsd 11.3 (10.0.1 20200406), but did not succeed with
your input file and the invocation you shared.
Can you run your build with option -save-temps and see whether the resulting
.ii files differs from what you shared? (It should not, I think.)
And once you have that run that through the compiler that crashes and try to
identify the minimal set of options required? -std=c++17 is one of those
necessary to make it build, are the others all required to see the crash?
Probably best to start with the full set and remove one after the other
until it stops failing. Thanks!.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94493] FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla
2020-04-05 20:34 [Bug c++/94493] New: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla gcc-bugs at opsec dot eu
` (8 preceding siblings ...)
2020-04-06 18:22 ` gerald at pfeifer dot com
@ 2020-04-06 18:27 ` gcc-bugs at opsec dot eu
9 siblings, 0 replies; 11+ messages in thread
From: gcc-bugs at opsec dot eu @ 2020-04-06 18:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94493
--- Comment #10 from Kurt Jaeger <gcc-bugs at opsec dot eu> ---
If the option -fstack-protector-strong is used, the *.i* files are empty.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2020-04-06 18:27 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-05 20:34 [Bug c++/94493] New: FreeBSD-ports lang/gcc9 (9.3.0) on FreeBSD 13 crash if building ftp/filezilla gcc-bugs at opsec dot eu
2020-04-05 20:35 ` [Bug c++/94493] " gcc-bugs at opsec dot eu
2020-04-05 20:37 ` gcc-bugs at opsec dot eu
2020-04-05 20:40 ` gcc-bugs at opsec dot eu
2020-04-05 20:42 ` gcc-bugs at opsec dot eu
2020-04-06 6:47 ` marxin at gcc dot gnu.org
2020-04-06 7:29 ` rguenth at gcc dot gnu.org
2020-04-06 16:46 ` gcc-bugs at opsec dot eu
2020-04-06 16:48 ` gcc-bugs at opsec dot eu
2020-04-06 18:22 ` gerald at pfeifer dot com
2020-04-06 18:27 ` gcc-bugs at opsec dot eu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).