public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/60436] [4.8/4.9 Regression] C preprocessor segfaults on assembly file Date: Thu, 06 Mar 2014 10:40:00 -0000 [thread overview] Message-ID: <bug-60436-4-6AjXf6Cecf@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-60436-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60436 --- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- markus@x4 tmp % gdb --args /var/tmp/gcc_test/usr/local/bin/g++ -DTABLES_NEXT_TO_CODE -x assembler-with-cpp -c ghc3240_8.s Reading symbols from /var/tmp/gcc_test/usr/local/bin/g++...done. (gdb) run Starting program: /var/tmp/gcc_test/usr/local/bin/g++ -DTABLES_NEXT_TO_CODE -x assembler-with-cpp -c ghc3240_8.s [New process 7553] process 7553 is executing new program: /var/tmp/gcc_test/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/cc1 Program received signal SIGABRT, Aborted. [Switching to process 7553] 0x00007ffff7604ff4 in raise () from /lib/libc.so.6 (gdb) bt #0 0x00007ffff7604ff4 in raise () from /lib/libc.so.6 #1 0x00007ffff76063e7 in abort () from /lib/libc.so.6 #2 0x0000000000f25198 in linemap_location_from_macro_expansion_p (set=<optimized out>, location=<optimized out>, location@entry=2147483542) at ../../gcc/libcpp/line-map.c:948 #3 0x0000000000f252ff in linemap_lookup (set=set@entry=0x7ffff7ff8000, line=line@entry=2147483542) at ../../gcc/libcpp/line-map.c:642 #4 0x0000000000f253bc in linemap_macro_loc_to_exp_point (set=0x7ffff7ff8000, location=2147483542, original_map=original_map@entry=0x7fffffffdfb8) at ../../gcc/libcpp/line-map.c:1181 #5 0x0000000000f25611 in linemap_resolve_location (set=<optimized out>, loc=<optimized out>, loc@entry=2147483542, lrk=<optimized out>, map=map@entry=0x7fffffffdfb8) at ../../gcc/libcpp/line-map.c:1262 #6 0x0000000000f0e3ae in expand_location_1 (loc=loc@entry=2147483542, expansion_point_p=expansion_point_p@entry=true) at ../../gcc/gcc/input.c:164 #7 0x0000000000f0f08e in expand_location (loc=loc@entry=2147483542) at ../../gcc/gcc/input.c:724 #8 0x00000000005ec236 in maybe_print_line_1 (stream=0x15e2860, src_loc=2147483542) at ../../gcc/gcc/c-family/c-ppoutput.c:314 #9 maybe_print_line (src_loc=src_loc@entry=2147483542) at ../../gcc/gcc/c-family/c-ppoutput.c:351 #10 0x00000000005ec7fb in do_line_change (pfile=0x15d8cd0, token=0x15d9210, src_loc=2147483542, parsing_args=0) at ../../gcc/gcc/c-family/c-ppoutput.c:420 #11 0x0000000000f240b4 in _cpp_lex_token (pfile=0x15d8cd0) at ../../gcc/libcpp/lex.c:2078 #12 0x0000000000f28d10 in cpp_get_token_1 (pfile=0x15d8cd0, location=0x1d81, location@entry=0x7fffffffe134) at ../../gcc/libcpp/macro.c:2359 #13 0x0000000000f28f75 in cpp_get_token_with_location (pfile=pfile@entry=0x15d8cd0, loc=loc@entry=0x7fffffffe134) at ../../gcc/libcpp/macro.c:2541 #14 0x00000000005ec9d8 in scan_translation_unit (pfile=0x15d8cd0) at ../../gcc/gcc/c-family/c-ppoutput.c:176 #15 preprocess_file (pfile=0x15d8cd0) at ../../gcc/gcc/c-family/c-ppoutput.c:101 #16 0x00000000005eb3e9 in c_common_init () at ../../gcc/gcc/c-family/c-opts.c:1040 #17 0x000000000057dd7e in c_objc_common_init () at ../../gcc/gcc/c/c-objc-common.c:65 #18 0x000000000099f477 in lang_dependent_init (name=0x7fffffffe73b "ghc3240_8.s") at ../../gcc/gcc/toplev.c:1712 #19 do_compile () at ../../gcc/gcc/toplev.c:1900 #20 toplev_main (argc=14, argv=0x7fffffffe2c8) at ../../gcc/gcc/toplev.c:1990 #21 0x00007ffff75f0fb0 in __libc_start_main () from /lib/libc.so.6 #22 0x00000000005306a1 in _start () (gdb) location@entry=2147483542 = 0x7FFFFF96 is near "#define MAX_SOURCE_LOCATION 0x7FFFFFFF"
next prev parent reply other threads:[~2014-03-06 10:40 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-03-06 2:05 [Bug preprocessor/60436] New: " dan.doel at gmail dot com 2014-03-06 8:30 ` [Bug preprocessor/60436] [4.8/4.9 Regression] " trippels at gcc dot gnu.org 2014-03-06 9:24 ` jakub at gcc dot gnu.org 2014-03-06 10:29 ` trippels at gcc dot gnu.org 2014-03-06 10:40 ` trippels at gcc dot gnu.org [this message] 2014-03-06 14:09 ` trippels at gcc dot gnu.org 2014-03-06 14:31 ` trippels at gcc dot gnu.org 2014-03-06 18:09 ` joseph at codesourcery dot com 2014-03-31 9:31 ` rguenth at gcc dot gnu.org 2014-11-24 12:29 ` [Bug preprocessor/60436] [4.8/4.9/5 " jakub at gcc dot gnu.org 2014-11-25 11:17 ` jakub at gcc dot gnu.org 2014-11-28 13:37 ` jakub at gcc dot gnu.org 2014-11-28 17:06 ` jakub at gcc dot gnu.org 2014-11-28 17:11 ` jakub at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-60436-4-6AjXf6Cecf@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).