Internal Compiler Error Bus Error Gcc
Format For Printing -XML -Clone This Bug -Last Comment First Last Prev Next This bug is not in your last search results. Bug1063327 - gcc: internal compiler error: Bus error (program cc1) Summary: gcc: internal compiler error: Bus error (program cc1) Status: CLOSED WORKSFORME Aliases: None Product: Fedora Classification: Fedora Component: gcc (Show other bugs) Sub Component: --- Version: 19 Hardware: i686 Linux Priority unspecified Severity high TargetMilestone: --- TargetRelease: --- Assigned To: Jakub Jelinek QA Contact: Fedora Extras Quality Assurance Docs Contact: URL: Whiteboard: Keywords: Depends On: Blocks: Show dependency tree /graph Reported: 2014-02-10 09:03 EST by Srdan Suka Modified: 2015-02-17 05:24 EST (History) CC List: 4 users (show) jakub law mpolacek srdan.suka See Also: Fixed In Version: Doc Type: Bug Fix Doc Text: Story Points: --- Clone Of: Environment: Last Closed: 2015-02-17 05:24:08 EST Type: Bug Regression: --- Mount Type: --- Documentation: --- CRM: Verified Versions: Category: --- oVirt Team: --- RHEL 7.3 requirements from Atomic Host: Cloudforms Team: --- Attachments (Terms of Use) Add an attachment (proposed patch, testcase, etc.) Groups: None (edit) Description Srdan Suka 2014-02-10 09:03:52 EST Description of problem: bytecode_api.c: In function 'cli_bcapi_ilog2': bytecode_api.c:1012:5: internal compiler error: Bus error f = (1<<26)*log((double)a / b) / log(2); ^ gcc: internal compiler error: Bus error (program cc1) This is the critical funcion: int32_t cli_bcapi_ilog2(struct cli_bc_ctx *ctx, uint32_t a, uint32_t b) { double f; if (!b) return 0x7fffffff; /* log(a/b) is -32..32, so 2^26*32=2^31 covers the entire range of int32 */ f = (1<<26)*log((double)a / b) / log(2); return (int32_t)myround(f); } If I replace log(2) with log(x) and define x=2, or replace log(2) with numeric value, compiler does not register any problem. Version-Release number of selected component (if applicable): Name : kernel Arch : i686 Version : 3.12.9 Release : 201.fc19 Name : cpp Arch : i686 Version : 4.8.2 Release : 7.fc19 Name : gcc Arch : i686 Version : 4.8.2 Release : 7.fc19 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: Comment 1 Jakub Jelinek 2014-02-10 09:09:20 EST Please provide preprocessed testcase on which it can be reproduced, plus compiler options with which it can be reproduced. Comment 2 Srdan Suka 2014-02-10 09:20:27 EST Example test.c #ifdef HAVE_UNISTD_H #include Login: [x] User account creation filtered due to spam. Bug47441 - g++ Introduces Internal Compiler Error: Bus error during compilation Summary: g++ Introduces Internal Compiler Error: Bus error during compilation Status: RESOLVED WORKSFORME Alias: None Product: gcc Classification: Unclassified Component: c++ (show other bugs) Version: 4.4.5 Importance: P3 major https://bugzilla.redhat.com/show_bug.cgi?id=1063327 Target Milestone: --- Assignee: Not yet assigned to anyone URL: Keywords: Depends on: Blocks: Reported: 2011-01-24 17:34 UTC by erkanbostanci Modified: 2011-01-24 18:06 UTC (History) CC List: 0 users See Also: Host: Target: Build: Known to work: Known to fail: Last reconfirmed: Attachments Add http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47441 an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description erkanbostanci 2011-01-24 17:34:44 UTC Hello, I am having this problem even when I am trying to compile a simple file such as (I presented this to show that the problem is not a bug in my own code): #include Login: [x] User account creation filtered due to spam. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=13906 Bug13906 - genmodes.c:964: internal compiler error: Bus error in md5_process_block Summary: genmodes.c:964: internal compiler error: Bus error in md5_process_block Status: RESOLVED FIXED Alias: None Product: gcc Classification: Unclassified Component: other (show other bugs) Version: 3.4.0 Importance: P2 normal Target Milestone: 3.4.6 Assignee: Not yet assigned to anyone internal compiler URL: Keywords: build Depends on: Blocks: Reported: 2004-01-28 23:45 UTC by John David Anglin Modified: 2006-02-06 14:07 UTC (History) CC List: 2 users (show) gcc-bugs ghazi See Also: Host: hppa2.0-hp-hpux11.00 Target: hppa2.0-hp-hpux11.00 Build: hppa2.0-hp-hpux11.00 Known to work: Known to fail: Last reconfirmed: 2004-01-29 01:03:40 Attachments Add an internal compiler error attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description John David Anglin 2004-01-28 23:45:28 UTC stage1/xgcc -Bstage1/ -B/opt/gnu/gcc/gcc-3.4/hppa2.0w-hp-hpux11.00/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -Werror -fno-common -DHAVE_CO NFIG_H -DGENERATOR_FILE -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc /gcc/../include ../../gcc/gcc/genmodes.c -o genmodes.o ../../gcc/gcc/genmodes.c: In function `emit_mode_mask': ../../gcc/gcc/genmodes.c:964: internal compiler error: Bus error The configure command was: ../gcc/configure --with-gnu-as --with-as=/opt/gnu/bin/as --enable-shared --with- local-prefix=/opt/gnu --prefix=/opt/gnu/gcc/gcc-3.4 --enable-debug=no --disable- nls --enable-checking="misc,tree,rtl,rtlflag,gc,gcac,fold" && The problem does not occur if `--enable-checking' is not specified. The stack trace is: Program received signal SIGBUS, Bus error. md5_process_block (buffer=0x7aed3f6e, len=64, ctx=0x7eff1500) at ../../gcc/libiberty/md5.c:325 325 OP (A, B, C, D, 7, (md5_uint32) 0xd76aa478); #0 md5_process_block (buffer=0x7aed3f6e, len=64, ctx=0x7eff1500) at ../../gcc/libiberty/md5.c:325 #1 0x00af0064 in md5_process_bytes (buffer=0x7aed3fae, len=96, ctx=0x7eff1500) at ../../gcc/libiberty/md5.c:239 #2 0x00270b84 in fold_checksum_tree (expr=0x7aed3f00, c