public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jwmwalrus at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/63494] New: internal compiler error: Bus error, and out of memory allocating ... Date: Thu, 09 Oct 2014 05:23:00 -0000 [thread overview] Message-ID: <bug-63494-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63494 Bug ID: 63494 Summary: internal compiler error: Bus error, and out of memory allocating ... Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jwmwalrus at gmail dot com With the code below I get two errors while compiling. One with the preprocessor, and one without. module my_lrstring implicit none private save type :: lrStringType character(:), allocatable :: left character(:), allocatable :: right end type type, public :: lrString type(lrStringType), allocatable, private :: storage(:) contains procedure :: getRight end type contains pure function getRight(this, left) result(right) character(:), allocatable :: right class(lrString), intent(IN) :: this character(*), intent(IN) :: left integer :: i, j character(:), allocatable :: text right = '' j = INDEX(this%storage(i)%right, '{}') text = this%storage(i)%right(j+2:) end function end module my_lrstring The output I get is: $ gfortran-5.0 -c -g -x f95-cpp-input -Dmy_lrstring=my_lrstring_dbg my_lrstring.f90 f951: internal compiler error: Bus error Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions. $ gfortran -c -g my_lrstring.f90 f951: out of memory allocating 20501133024 bytes after a total of 692224 bytes The compiler and system information is: $ lsb_release -rd Description: Debian GNU/Linux testing (jessie) Release: testing $ gfortran-5.0 -v Using built-in specs. COLLECT_GCC=gfortran-5.0 COLLECT_LTO_WRAPPER=/usr/lib/gcc-snapshot/libexec/gcc/x86_64-linux-gnu/5.0.0/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 20140903-1' --with-bugurl=file:///usr/share/doc/gcc-snapshot/README.Bugs --enable-languages=c,ada,c++,java,go,fortran,objc,obj-c++ --prefix=/usr/lib/gcc-snapshot --enable-shared --enable-linker-build-id --disable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5.0-snap-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5.0-snap-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5.0-snap-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --disable-werror --enable-checking=yes --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 5.0.0 20140904 (experimental) [trunk revision 214924] (Debian 20140903-1) $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 31147 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 65536 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 31147 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
next reply other threads:[~2014-10-09 5:23 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-10-09 5:23 jwmwalrus at gmail dot com [this message] 2014-10-15 8:57 ` [Bug fortran/63494] " dominiq at lps dot ens.fr 2015-01-03 10:03 ` [Bug fortran/63494] ICE with deferred-character-length component janus at gcc dot gnu.org 2015-01-04 3:14 ` bdavis at gcc dot gnu.org 2015-01-04 10:20 ` janus at gcc dot gnu.org 2015-09-10 10:04 ` dominiq at lps dot ens.fr
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-63494-4@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).