2 Replies Latest reply on Jun 24, 2009 8:20 AM by santoshz

    Compiler crash

    jnavia
      Compiler crashes when compiling c++ file


      ### Assertion failure at line 6275 of ../../be/cg/x8664/expand.cxx:
      ### Compiler Error in file ReservationDataNodes.cpp during Code_Expansion phase:
      ### UNIMPLEMENTED
      *** glibc detected *** /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be: free(): invalid pointer: 0x000000000240f300 ***
      ======= Backtrace: =========
      /lib/libc.so.6[0x2afa3d826cb8]
      /lib/libc.so.6(cfree+0x76)[0x2afa3d829276]
      /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so(_ZN23RELATED_SEGMENTED_ARRAYI7BE_PREGLj128EED1Ev+0x59)[0x2afa3ce73dff]
      /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so[0x2afa3ce71edc]
      /lib/libc.so.6(__cxa_finalize+0xb0)[0x2afa3d7e5ab0]
      /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so[0x2afa3ce1aa53]
      ======= Memory map: ========
      00400000-0042d000 r-xp 00000000 08:02 1007644                            /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be
      0052d000-00531000 rw-p 0002d000 08:02 1007644                            /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be
      023d5000-026f3000 rw-p 023d5000 00:00 0                                  [heap]
      2afa3caf5000-2afa3cb15000 r-xp 00000000 08:05 48308                      /lib/ld-2.9.so
      2afa3cb15000-2afa3cb18000 rw-p 2afa3cb15000 00:00 0
      2afa3cd14000-2afa3cd15000 r--p 0001f000 08:05 48308                      /lib/ld-2.9.so
      2afa3cd15000-2afa3cd16000 rw-p 00020000 08:05 48308                      /lib/ld-2.9.so
      2afa3cd16000-2afa3d17e000 r-xp 00000000 08:02 1007665                    /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so
      2afa3d17e000-2afa3d27e000 ---p 00468000 08:02 1007665                    /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so
      2afa3d27e000-2afa3d2bf000 rw-p 00468000 08:02 1007665                    /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so
      2afa3d2bf000-2afa3d319000 rw-p 2afa3d2bf000 00:00 0
      2afa3d325000-2afa3d327000 r-xp 00000000 08:05 48342                      /lib/libdl-2.9.so
      2afa3d327000-2afa3d527000 ---p 00002000 08:05 48342                      /lib/libdl-2.9.so
      2afa3d527000-2afa3d528000 r--p 00002000 08:05 48342                      /lib/libdl-2.9.so
      2afa3d528000-2afa3d529000 rw-p 00003000 08:05 48342                      /lib/libdl-2.9.so
      2afa3d529000-2afa3d5ad000 r-xp 00000000 08:05 48361                      /lib/libm-2.9.so
      2afa3d5ad000-2afa3d7ac000 ---p 00084000 08:05 48361                      /lib/libm-2.9.so
      2afa3d7ac000-2afa3d7ad000 r--p 00083000 08:05 48361                      /lib/libm-2.9.so
      2afa3d7ad000-2afa3d7ae000 rw-p 00084000 08:05 48361                      /lib/libm-2.9.so
      2afa3d7ae000-2afa3d7af000 rw-p 2afa3d7ae000 00:00 0
      2afa3d7af000-2afa3d917000 r-xp 00000000 08:05 48328                      /lib/libc-2.9.so
      2afa3d917000-2afa3db17000 ---p 00168000 08:05 48328                      /lib/libc-2.9.so
      2afa3db17000-2afa3db1b000 r--p 00168000 08:05 48328                      /lib/libc-2.9.so
      2afa3db1b000-2afa3db1c000 rw-p 0016c000 08:05 48328                      /lib/libc-2.9.so
      2afa3db1c000-2afa3db22000 rw-p 2afa3db1c000 00:00 0
      2afa3db22000-2afa3db3b000 r-xp 00000000 08:02 1007646                    /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/core.so
      2afa3db3b000-2afa3dc3a000 ---p 00019000 08:02 1007646                    /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/core.so
      2afa3dc3a000-2afa3dc3d000 rw-p 00018000 08:02 1007646                    /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/core.so
      2afa3dc3d000-2afa3df1b000 r-xp 00000000 08:02 1007676                    /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/cg.so
      2afa3df1b000-2afa3e01a000 ---p 002de000 08:02 1007676                    /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/cg.so
      2afa3e01a000-2afa3e03b000 rw-p 002dd000 08:02 1007676                    /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/cg.so
      2afa3e03b000-2afa3e050000 rw-p 2afa3e03b000 00:00 0
      2afa3e050000-2afa3e336000 r-xp 00000000 08:02 1007653                    /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/wopt.so
      2afa3e336000-2afa3e435000 ---p 002e6000 08:02 1007653                    /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/wopt.so
      2afa3e435000-2afSignal: Aborted in Code_Expansion phase.
      Error: Signal Aborted in phase Code_Expansion -- processing aborted
      *** Internal stack backtrace:
          /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so [0x2afa3d01003e]
          /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so [0x2afa3d00fe69]
          /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so [0x2afa3d00ee7c]
          /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so [0x2afa3d00ea26]
          /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so(ErrMsgLine+0xb8) [0x2afa3d011332]
          /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so [0x2afa3d0102cd]
          /lib/libc.so.6 [0x2afa3d7e2040]
          /lib/libc.so.6(gsignal+0x35) [0x2afa3d7e1fb5]
          /lib/libc.so.6(abort+0x183) [0x2afa3d7e3bc3]
          /lib/libc.so.6 [0x2afa3d821228]
          /lib/libc.so.6 [0x2afa3d826cb8]
          /lib/libc.so.6(cfree+0x76) [0x2afa3d829276]
          /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so(_ZN23RELATED_SEGMENTED_ARRAYI7BE_PREGLj128EED1Ev+0x59) [0x2afa3ce73dff]
          /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so [0x2afa3ce71edc]
          /lib/libc.so.6(__cxa_finalize+0xb0) [0x2afa3d7e5ab0]
          /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be.so [0x2afa3ce1aa53]
      openCC INTERNAL ERROR: /home/jacob/open64-4.2.1/lib/gcc-lib/x86_64-open64-linux/4.2.1/be died due to signal 4
      make[1]: *** [Release/ReservationDataNodes.lo] Error 1
      make[1]: Leaving directory `/home/jacob/srcnew/DataBaseLibrary'
      make: *** [dblib] Error 2

      Machine: amd64 ubuntu 9

        • Compiler crash
          kvikrant

          Hi,

          What compiler options did you use?

          Can you provide the source file for us to reproduce this problem at our end.

          Thanks

          Vikrant

           

            • Compiler crash
              santoshz

               

              Hello Jacob,

              First of all I have a confusion on which compiler you are using Open64-4.2.1 available on open64.net or AMD 4.2.2.1.

              If its former one then please file your bug on https://bugs.open64.net. 

              If it’s from AMD Open64 then:

              As a developer you must be aware that it would take lot of time to reproduce this problem here without much information.

              So would request you to  make a test case out of this application to reproduce the problem?  Or I can help you make one if it’s possible for you to give us the source of your application. 

              A workaround: try using -O0 instead of -O2 or by not using some of the compiler options you are using in  your command line now and also check what exactly you are doing on the reported line number in the source.

              Will be waiting for your reply.

              Thanks & Regards,

              Santosh



               

              ------------------------
              -------------------------
              The information presented in this document is for informational purposes only and may contain technical inaccuracies, omissions and typographical errors. Links to third party sites are for convenience only, and no endorsement is implied.