[M3devel] cm3cg failing on linuxlibc6
Rodney M. Bates
rodney_bates at lcwb.coop
Fri May 27 20:38:07 CEST 2016
On 05/22/2016 09:28 PM, Peter McKinna wrote:
> I dont know what changed but the backend is crashing on linuxlibc6 when compiled with -O Try compiling m3core.
>
I get crashes compiling with -O -O1 -O2 -O3, with different symptoms. -O and -O2
just segfault. -O2 and -O3 get:
...
/usr/local/cm3//bin/cm3cg -march=i686 -quiet -fno-reorder-blocks -funwind-tables -fPIC -m32 -O3 -gstabs+ Main.mc -o Main.ms
*** glibc detected *** /usr/local/cm3//bin/cm3cg: double free or corruption (fasttop): 0x0a20b0d8 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6e0a1)[0xac00a1]
/lib/tls/i686/cmov/libc.so.6(+0x6f8f8)[0xac18f8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0xac4a6d]
/usr/local/cm3//bin/cm3cg[0x81c7df8]
======= Memory map: ========
00180000-002ef000 r-xp 00000000 08:05 5507589 /usr/lib/libstdc++.so.6.0.21
002ef000-002f5000 r--p 0016e000 08:05 5507589 /usr/lib/libstdc++.so.6.0.21
002f5000-002f6000 rw-p 00174000 08:05 5507589 /usr/lib/libstdc++.so.6.0.21
002f6000-002f9000 rw-p 00000000 00:00 0
00360000-0037c000 r-xp 00000000 08:05 4337255 /lib/libgcc_s.so.1
0037c000-0037d000 r--p 0001b000 08:05 4337255 /lib/libgcc_s.so.1
0037d000-0037e000 rw-p 0001c000 08:05 4337255 /lib/libgcc_s.so.1
0087a000-00895000 r-xp 00000000 08:05 4336906 /lib/ld-2.11.1.so
00895000-00896000 r--p 0001a000 08:05 4336906 /lib/ld-2.11.1.so
00896000-00897000 rw-p 0001b000 08:05 4336906 /lib/ld-2.11.1.so
00a52000-00bae000 r-xp 00000000 08:05 4467785 /lib/tls/i686/cmov/libc-2.11.1.so
00bae000-00bb0000 r--p 0015b000 08:05 4467785 /lib/tls/i686/cmov/libc-2.11.1.so
00bb0000-00bb1000 rw-p 0015d000 08:05 4467785 /lib/tls/i686/cmov/libc-2.11.1.so
00bb1000-00bb4000 rw-p 00000000 00:00 0
00deb000-00e0f000 r-xp 00000000 08:05 4467782 /lib/tls/i686/cmov/libm-2.11.1.so
00e0f000-00e10000 r--p 00023000 08:05 4467782 /lib/tls/i686/cmov/libm-2.11.1.so
00e10000-00e11000 rw-p 00024000 08:05 4467782 /lib/tls/i686/cmov/libm-2.11.1.so
00f24000-00f25000 r-xp 00000000 00:00 0 [vdso]
08048000-088cd000 r-xp 00000000 08:05 5778669 /usr/local/cm3-githead/bin/cm3cg
088cd000-088ce000 r--p 00885000 08:05 5778669 /usr/local/cm3-githead/bin/cm3cg
088ce000-088d4000 rw-p 00886000 08:05 5778669 /usr/local/cm3-githead/bin/cm3cg
088d4000-089fe000 rw-p 00000000 00:00 0
0a149000-0a216000 rw-p 00000000 00:00 0 [heap]
b7300000-b7321000 rw-p 00000000 00:00 0
b7321000-b7400000 ---p 00000000 00:00 0
b74d4000-b771a000 rw-p 00000000 00:00 0
b772b000-b7733000 rw-p 00000000 00:00 0
bff93000-bffa8000 rw-p 00000000 00:00 0 [stack]
../src/Main.m3: In function 'Main__Normalize':
../src/Main.m3:41:0: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Were you compiling things earlier with -O successfully? I vaguely recall something
to the effect that cm3cg never has worked with optimization. Anybody remember about
this?
> Also some of my low level tests with Long.And and Long.Shift are not working with
> normal compile without the optimisations on that platform. Bit suspicious. I'm still investigating.
>
> Anyone got any clues or can replicate?
>
> Thanks Peter
>
>
>
>
> _______________________________________________
> M3devel mailing list
> M3devel at elegosoft.com
> https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel
>
--
Rodney Bates
rodney.m.bates at acm.org
More information about the M3devel
mailing list