public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
@ 2014-01-24 14:43 ` trippels at gcc dot gnu.org
2014-01-24 15:30 ` trippels at gcc dot gnu.org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-01-24 14:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2014-1-24
CC| |dodji at gcc dot gnu.org
Target Milestone|--- |4.9.0
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
@ 2014-01-24 14:43 trippels at gcc dot gnu.org
2014-01-24 14:43 ` [Bug preprocessor/59935] " trippels at gcc dot gnu.org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-01-24 14:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
Bug ID: 59935
Summary: [4.9 Regression] Firefox build fails with: <built-in>:
internal compiler error: Segmentation fault
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
Assignee: unassigned at gcc dot gnu.org
Reporter: trippels at gcc dot gnu.org
markus@x4 src % gcc -P --save-temps -O3 -o cairo-ft-font.o -c
-I../../../../dist/system_wrappers -include
/var/tmp/mozilla-central/config/gcc_hidden.h -DPACKAGE_VERSION='"moz"'
-DPACKAGE_BUGREPORT='"http://bugzilla.mozilla.org/"' -DCAIRO_HAS_PTHREAD
-D_GNU_SOURCE -DMOZ_TREE_CAIRO -DMOZ_TREE_PIXMAN -DMOZ_GLUE_IN_PROGRAM
-DNO_NSPR_10_SUPPORT -I/var/tmp/mozilla-central/gfx/cairo/cairo/src -I.
-I../../../../dist/include -I/var/tmp/moz-build-dir/dist/include/nspr
-I/var/tmp/moz-build-dir/dist/include/nss -I/usr/include/freetype2
-I/usr/include/freetype2 -fPIC -include ../../../../mozilla-config.h
-DMOZILLA_CLIENT -MD -MP -MF .deps/cairo-ft-font.o.pp -Wall -Wpointer-arith
-Wdeclaration-after-statement -Werror=return-type -Werror=int-to-pointer-cast
-Wtype-limits -Wempty-body -Wsign-compare -Wno-unused -Wcast-align
-march=native -std=gnu99 -fgnu89-inline -fno-strict-aliasing -fno-math-errno
-pthread -pipe -DNDEBUG -DTRIMMED -O3 -fomit-frame-pointer
-Wno-missing-field-initializers -Wno-conversion
/var/tmp/mozilla-central/gfx/cairo/cairo/src/cairo-ft-font.c
gcc: warning: -pipe ignored because -save-temps specified
/var/tmp/mozilla-central/gfx/cairo/cairo/src/cairo-ft-font.c:64:0: warning:
"_GNU_SOURCE" redefined [enabled by default]
#define _GNU_SOURCE /* for RTLD_DEFAULT */
^
<command-line>:0:0: note: this is the location of the previous definition
<built-in>: internal compiler error: Segmentation fault
0x99c78f crash_signal
../../gcc/gcc/toplev.c:337
0xf0d0a7 add_file_to_cache_tab
../../gcc/gcc/input.c:296
0xf0d0a7 lookup_or_add_file_to_cache_tab
../../gcc/gcc/input.c:330
0xf0d0a7 location_get_source_line(expanded_location, int*)
../../gcc/gcc/input.c:704
0xf07feb diagnostic_show_locus(diagnostic_context*, diagnostic_info const*)
../../gcc/gcc/diagnostic.c:304
0xf0902b diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
../../gcc/gcc/diagnostic.c:800
0x5cde84 c_cpp_error(cpp_reader*, int, int, unsigned int, unsigned int, char
const*, __va_list_tag (*) [1])
../../gcc/gcc/c-family/c-common.c:9638
0xf17856 cpp_error_with_line(cpp_reader*, int, unsigned int, unsigned int, char
const*, ...)
../../gcc/libcpp/errors.c:163
0xf278ff _cpp_create_definition
../../gcc/libcpp/macro.c:3124
0xf14051 do_define
../../gcc/libcpp/directives.c:584
0xf15887 _cpp_handle_directive
../../gcc/libcpp/directives.c:492
0xf223dc _cpp_lex_token
../../gcc/libcpp/lex.c:2067
0xf26fcf cpp_get_token_1
../../gcc/libcpp/macro.c:2362
0x5e9d5f scan_translation_unit
../../gcc/gcc/c-family/c-ppoutput.c:176
0x5e9d5f preprocess_file(cpp_reader*)
../../gcc/gcc/c-family/c-ppoutput.c:101
0x5e8778 c_common_init()
../../gcc/gcc/c-family/c-opts.c:1040
0x57ad4d c_objc_common_init()
../../gcc/gcc/c/c-objc-common.c:65
0x99e7e6 lang_dependent_init
../../gcc/gcc/toplev.c:1712
0x99e7e6 do_compile
../../gcc/gcc/toplev.c:1900
Perhaps not surprisingly compiling the preprocessed file works fine.
Started with r206957.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
2014-01-24 14:43 ` [Bug preprocessor/59935] " trippels at gcc dot gnu.org
@ 2014-01-24 15:30 ` trippels at gcc dot gnu.org
2014-01-24 15:40 ` dodji at gcc dot gnu.org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-01-24 15:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 /tmp % cat foo.c
#define _GNU_SOURCE
markus@x4 /tmp % gcc -D_GNU_SOURCE -c foo.c
foo.c:1:0: warning: "_GNU_SOURCE" redefined [enabled by default]
#define _GNU_SOURCE
^
<command-line>:0:0: note: this is the location of the previous definition
foo.c:1:0: internal compiler error: Segmentation fault
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
2014-01-24 14:43 ` [Bug preprocessor/59935] " trippels at gcc dot gnu.org
2014-01-24 15:30 ` trippels at gcc dot gnu.org
@ 2014-01-24 15:40 ` dodji at gcc dot gnu.org
2014-01-25 8:05 ` nheghathivhistha at gmail dot com
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: dodji at gcc dot gnu.org @ 2014-01-24 15:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
Dodji Seketeli <dodji at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |dodji at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Dodji Seketeli <dodji at gcc dot gnu.org> ---
I am looking into that.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
` (2 preceding siblings ...)
2014-01-24 15:40 ` dodji at gcc dot gnu.org
@ 2014-01-25 8:05 ` nheghathivhistha at gmail dot com
2014-01-25 8:47 ` trippels at gcc dot gnu.org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-01-25 8:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
--- Comment #3 from David Kredba <nheghathivhistha at gmail dot com> ---
Is this having the same cause please?
It is a seamonkey-2.23 configure stage.
configure:24169: checking size of int *
configure:24188: x86_64-pc-linux-gnu-gcc -o conftest -fPIC -ggdb -pipe
-march=native -mtune=native -mno-avx -mno-sse4.2 -mno-3dnow -mno-avx
-std=gnu99 -fgnu89-inline -fno-strict-aliasing -fno-math-errno -pthread
-lpthread -Wl,--as-needed -Wl,-O2 -ggdb -pipe -march=native -mtune=native
-mno-avx -mno-sse4.2 -mno-3dnow -fPIC -Wl,-z,noexecstack -Wl,-z,text -B
/var/tmp/portage/www-client/seamonkey-2.23/work/comm-release/seamonk/mozilla/build/unix/gold
conftest.c -ldl 1>&5
configure:24179:1: warning: return type defaults to 'int' [enabled by default]
x86_64-pc-linux-gnu-gcc: internal compiler error: Segmentation fault (program
cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
configure: failed program was:
#line 24177 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", sizeof(int *));
exit(0);
}
configure: error: Unexpected pointer size
trunk revision 207070
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
` (3 preceding siblings ...)
2014-01-25 8:05 ` nheghathivhistha at gmail dot com
@ 2014-01-25 8:47 ` trippels at gcc dot gnu.org
2014-01-25 18:34 ` trippels at gcc dot gnu.org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-01-25 8:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to David Kredba from comment #3)
> Is this having the same cause please?
Yes. It's caused by the same revision.
Jabub's patch fixes both issues:
http://gcc.gnu.org/ml/gcc-patches/2014-01/msg01589.html
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
` (4 preceding siblings ...)
2014-01-25 8:47 ` trippels at gcc dot gnu.org
@ 2014-01-25 18:34 ` trippels at gcc dot gnu.org
2014-01-25 19:08 ` nheghathivhistha at gmail dot com
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-01-25 18:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Bernhard.Rosenkranzer@linar
| |o.org
--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
*** Bug 59943 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
` (5 preceding siblings ...)
2014-01-25 18:34 ` trippels at gcc dot gnu.org
@ 2014-01-25 19:08 ` nheghathivhistha at gmail dot com
2014-01-27 10:14 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-01-25 19:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
--- Comment #6 from David Kredba <nheghathivhistha at gmail dot com> ---
The patch works as you said.
Thank you.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
` (6 preceding siblings ...)
2014-01-25 19:08 ` nheghathivhistha at gmail dot com
@ 2014-01-27 10:14 ` jakub at gcc dot gnu.org
2014-01-27 13:49 ` mpolacek at gcc dot gnu.org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-27 10:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcb314 at hotmail dot com
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
*** Bug 59954 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
` (7 preceding siblings ...)
2014-01-27 10:14 ` jakub at gcc dot gnu.org
@ 2014-01-27 13:49 ` mpolacek at gcc dot gnu.org
2014-01-28 15:03 ` dodji at gcc dot gnu.org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-01-27 13:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
*** Bug 59957 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
` (8 preceding siblings ...)
2014-01-27 13:49 ` mpolacek at gcc dot gnu.org
@ 2014-01-28 15:03 ` dodji at gcc dot gnu.org
2014-01-28 15:22 ` trippels at gcc dot gnu.org
2014-01-31 13:15 ` trippels at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: dodji at gcc dot gnu.org @ 2014-01-28 15:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
--- Comment #9 from Dodji Seketeli <dodji at gcc dot gnu.org> ---
Author: dodji
Date: Tue Jan 28 15:03:19 2014
New Revision: 207195
URL: http://gcc.gnu.org/viewcvs?rev=207195&root=gcc&view=rev
Log:
PR preprocessor/59935 - caret diagnostics crashes on non-file locations
gcc/ChangeLog
* input.c (location_get_source_line): Bail out on when line number
is zero, and test the return value of
lookup_or_add_file_to_cache_tab.
gcc/testsuite/ChangeLog
* c-c++-common/cpp/warning-zero-location.c: New test.
* c-c++-common/cpp/warning-zero-location-2.c: Likewise.
Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
Added:
trunk/gcc/testsuite/c-c++-common/cpp/warning-zero-location-2.c
trunk/gcc/testsuite/c-c++-common/cpp/warning-zero-location.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/input.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
` (9 preceding siblings ...)
2014-01-28 15:03 ` dodji at gcc dot gnu.org
@ 2014-01-28 15:22 ` trippels at gcc dot gnu.org
2014-01-31 13:15 ` trippels at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-01-28 15:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #10 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Fixed. Thank you.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug preprocessor/59935] [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
` (10 preceding siblings ...)
2014-01-28 15:22 ` trippels at gcc dot gnu.org
@ 2014-01-31 13:15 ` trippels at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-01-31 13:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59935
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lutzwei at gmx dot de
--- Comment #11 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
*** Bug 60007 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2014-01-31 13:15 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-24 14:43 [Bug preprocessor/59935] New: [4.9 Regression] Firefox build fails with: <built-in>: internal compiler error: Segmentation fault trippels at gcc dot gnu.org
2014-01-24 14:43 ` [Bug preprocessor/59935] " trippels at gcc dot gnu.org
2014-01-24 15:30 ` trippels at gcc dot gnu.org
2014-01-24 15:40 ` dodji at gcc dot gnu.org
2014-01-25 8:05 ` nheghathivhistha at gmail dot com
2014-01-25 8:47 ` trippels at gcc dot gnu.org
2014-01-25 18:34 ` trippels at gcc dot gnu.org
2014-01-25 19:08 ` nheghathivhistha at gmail dot com
2014-01-27 10:14 ` jakub at gcc dot gnu.org
2014-01-27 13:49 ` mpolacek at gcc dot gnu.org
2014-01-28 15:03 ` dodji at gcc dot gnu.org
2014-01-28 15:22 ` trippels at gcc dot gnu.org
2014-01-31 13:15 ` trippels at gcc dot gnu.org
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).